Legend:
- Unmodified
- Added
- Removed
-
trunk/src/samhain.c
r34 r52 1449 1449 1450 1450 #if (defined(WITH_GPG) || defined(WITH_PGP)) 1451 /* do nothing -- we exit earlier if error 1452 if (0 != sh_gpg_check_sign (1)) 1453 aud_exit(FIL__, __LINE__, EXIT_FAILURE); 1454 */ 1451 /* do nothing -- we exit earlier if error */ 1455 1452 #else 1456 1453 sh_error_handle ((-1), FIL__, __LINE__, 0, MSG_START_1H, … … 1474 1471 { 1475 1472 #if (defined(WITH_GPG) || defined(WITH_PGP)) 1476 /* do nothing -- we exit earlier if error 1477 if (0 != sh_gpg_check_sign (2)) 1478 aud_exit(FIL__, __LINE__, EXIT_FAILURE); 1479 */ 1480 ; 1473 /* do nothing -- we exit earlier if error */ 1481 1474 #else 1482 1475 sh_error_handle ((-1), FIL__, __LINE__, 0, MSG_START_2H, … … 1489 1482 { 1490 1483 #if (defined(WITH_GPG) || defined(WITH_PGP)) 1491 /* do nothing -- we exit earlier if error 1492 if (0 != sh_gpg_check_sign (1)) 1493 aud_exit(FIL__, __LINE__, EXIT_FAILURE); 1494 */ 1495 ; 1484 /* do nothing -- we exit earlier if error */ 1496 1485 #else 1497 1486 sh_error_handle ((-1), FIL__, __LINE__, 0, MSG_START_1H, -
trunk/src/sh_unix.c
r49 r52 4122 4122 int sh_unix_getline_stealth (SL_TICKET fd, char * str, int len) 4123 4123 { 4124 int add_off, llen;4125 unsigned long off_data = 0;4126 unsigned long max_data = 0;4127 static int stealth_init = BAD;4124 int add_off, llen; 4125 static unsigned long off_data = 0; 4126 static unsigned long max_data = 0; 4127 static int stealth_init = BAD; 4128 4128 4129 4129 SL_ENTER(_("sh_unix_getline_stealth")); … … 4144 4144 } 4145 4145 stealth_init = GOOD; 4146 max_data += off_data; 4146 4147 } 4147 4148 4148 4149 /* --- Seek to proper position. --- 4149 4150 */ 4151 if (off_data >= max_data) 4152 { 4153 dlog(1, FIL__, __LINE__, 4154 _("The capacity of the container image file for the stealth config file seems to be too small. Your config file is likely truncated.\n")); 4155 sh_error_handle ((-1), FIL__, __LINE__, EIO, MSG_P_NODATA, 4156 _("Stealth config file.")); 4157 aud_exit (FIL__, __LINE__, EXIT_FAILURE); 4158 } 4150 4159 sl_seek(fd, off_data); 4151 4160 … … 4154 4163 add_off = hideout_hex_block(fd, (unsigned char *) str, len); 4155 4164 off_data += add_off; 4156 4157 4165 4158 4166 llen = sl_strlen(str);
Note:
See TracChangeset
for help on using the changeset viewer.