Legend:
- Unmodified
- Added
- Removed
-
trunk/src/samhain.c
r160 r162 362 362 sh.prg_name[7] = '\0'; 363 363 #endif 364 365 sh.pid = (UINT64) getpid(); 364 366 365 367 /* The flags. -
trunk/src/sh_hash.c
r160 r162 1206 1206 { 1207 1207 dlog(1, FIL__, __LINE__, 1208 _("The checksum of the file signature database has changed since startup.\n")); 1208 _("The checksum of the file signature database has changed since startup: %s -> %s\n"), 1209 sh.data.hash, sh_tiger_hash (file_path('D', 'R'), fd, TIGER_NOLIM, 1210 hashbuf, sizeof(hashbuf))); 1209 1211 sh_error_handle ((-1), FIL__, __LINE__, 0, MSG_E_AUTH, 1210 1212 ( (NULL == file_path('D', 'R')) ? _("(null)") : -
trunk/src/sh_kern.c
r146 r162 266 266 * Interrupt Descriptor Table 267 267 */ 268 268 #ifdef HAVE_ASM_SEGMENT_H 269 269 #include <asm/segment.h> 270 #endif 270 271 271 272 #define SH_MAXIDT 256 … … 276 277 { 277 278 switch (segment) { 279 #ifdef __KERNEL_CS 278 280 case __KERNEL_CS: 279 281 return _("KERNEL_CS"); 282 #endif 283 #ifdef __KERNEL_DS 280 284 case __KERNEL_DS: 281 285 return _("KERNEL_DS"); 286 #endif 287 #ifdef __USER_CS 282 288 case __USER_CS: 283 289 return _("USER_CS"); 290 #endif 291 #ifdef __USER_DS 284 292 case __USER_DS: 285 293 return _("USER_DS"); 294 #endif 286 295 default: 287 296 return _("unknown"); … … 903 912 (void) sl_strlcpy (theFile.fullpath, pcipath, PATH_MAX); 904 913 theFile.check_mask = sh_files_maskof(SH_LEVEL_READONLY); 905 theFile.check_mask &= ~(MODI_MTM|MODI_CTM );914 theFile.check_mask &= ~(MODI_MTM|MODI_CTM|MODI_INO); 906 915 CLEAR_SH_FFLAG_REPORTED(theFile.file_reported); 907 916 theFile.attr_string = NULL; … … 938 947 struct stat buf; 939 948 int fd; 949 int status; 940 950 941 951 if (0 == stat(pcipath, &buf)) … … 945 955 */ 946 956 fd = open ( pcipath, O_RDWR ); 947 write( fd, "1", 1 ); 957 do { 958 status = write( fd, "1", 1 ); 959 } while (status < 0 && errno == EINTR); 948 960 close ( fd ); 949 961 … … 951 963 952 964 fd = open ( pcipath, O_RDWR ); 953 write( fd, "0", 1 ); 965 do { 966 status = write( fd, "0", 1 ); 967 } while (status < 0 && errno == EINTR); 954 968 close ( fd ); 955 969 } -
trunk/src/sh_portcheck.c
r149 r162 129 129 #include "sh_utils.h" 130 130 #include "sh_modules.h" 131 #include "sh_static.h" 131 132 #include "sh_pthread.h" 132 133 … … 897 898 898 899 SH_MUTEX_LOCK(mutex_resolv); 899 hent = gethostbyname(portchk_hostname);900 hent = sh_gethostbyname(portchk_hostname); 900 901 901 902 while (hent && hent->h_addr_list[i] && (iface_list.used < SH_IFACE_MAX)) -
trunk/src/sh_unix.c
r160 r162 1866 1866 1867 1867 setsid(); /* should not fail */ 1868 sh.pid = (UINT64) getpid(); 1868 1869 1869 1870 switch (aud_fork(FIL__, __LINE__)) { … … 1876 1877 */ 1877 1878 sh_unix_memlock(); 1879 sh.pid = (UINT64) getpid(); 1878 1880 1879 1881 } else { … … 3844 3846 sl_close(fd); 3845 3847 3846 if (status == (int) getpid())3848 if (status > 0 && (unsigned int) status == sh.pid) 3847 3849 { 3848 3850 if (filename != NULL) … … 4007 4009 SL_ENTER(_("sh_unix_lock")); 4008 4010 4009 sprintf (myPid, "%ld\n", (long) getpid());/* known to fit */4011 sprintf (myPid, "%ld\n", (long) sh.pid); /* known to fit */ 4010 4012 4011 4013 fd = sl_open_safe_rdwr (lockfile, SL_YESPRIV); /* fails if file exists */ -
trunk/src/slib.c
r144 r162 577 577 } 578 578 579 #if !defined(HOST_IS_I86SOLARIS)580 #if !defined (_GNU_SOURCE) && !defined(__linux__)581 /* flawfinder: ignore */582 extern int vsnprintf ( char *str, size_t n,583 const char *format, va_list ap );584 #endif585 #endif586 579 587 580 #if !defined (VA_COPY)
Note:
See TracChangeset
for help on using the changeset viewer.