- Timestamp:
- Dec 7, 2008, 7:26:17 PM (16 years ago)
- Location:
- trunk/src
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/make-tests.sh
r172 r203 20 20 #include <stdio.h> 21 21 #include "CuTest.h" 22 #include "config.h" 22 23 23 24 ' -
trunk/src/samhain.c
r174 r203 824 824 ino = (long) buf.st_ino; 825 825 826 if (NULL == (dp = opendir( "/proc")))826 if (NULL == (dp = opendir(_("/proc")))) 827 827 { 828 828 return NULL; -
trunk/src/sh_gpg.c
r198 r203 257 257 char cc3[32]; 258 258 char cc4[SH_PATHBUF+32]; 259 char cc5[32] = "--no-tty";259 char cc5[32]; 260 260 #endif 261 261 … … 283 283 /* sl_strlcpy (cc4, sh.effective.home, SH_PATHBUF+32); */ 284 284 sl_strlcpy (cc4, homedir, SH_PATHBUF+32); 285 sl_strlcat (cc4, _("/.gnupg"), SH_PATHBUF+32); 285 sl_strlcat (cc4, _("/.gnupg"), SH_PATHBUF+32); 286 sl_strlcpy (cc5, _("--no-tty"), 32); 286 287 287 288 /* fprintf(stderr, "YULE: homedir=%s\n", homedir); */ … … 416 417 envp[0] = malloc (len); /* free() ok */ 417 418 if (envp[0] != NULL) 418 sl_snprintf (envp[0], len, "HOME=%s", sh.effective.home);419 sl_snprintf (envp[0], len, _("HOME=%s"), sh.effective.home); 419 420 envp[1] = NULL; 420 421 } -
trunk/src/sh_log_check.c
r199 r203 14 14 15 15 /* Debian/Ubuntu: libpcre3-dev */ 16 #ifdef HAVE_PCRE_PCRE_H 17 #include <pcre/pcre.h> 18 #else 16 19 #include <pcre.h> 20 #endif 17 21 18 22 #include "samhain.h" -
trunk/src/sh_log_evalrule.c
r186 r203 15 15 16 16 /* Debian/Ubuntu: libpcre3-dev */ 17 #ifdef HAVE_PCRE_PCRE_H 18 #include <pcre/pcre.h> 19 #else 17 20 #include <pcre.h> 21 #endif 22 23 #ifndef PCRE_NO_AUTO_CAPTURE 24 #define PCRE_NO_AUTO_CAPTURE 0 25 #endif 18 26 19 27 #include "samhain.h" -
trunk/src/sh_log_parse_apache.c
r186 r203 29 29 30 30 /* Debian/Ubuntu: libpcre3-dev */ 31 #ifdef HAVE_PCRE_PCRE_H 32 #include <pcre/pcre.h> 33 #else 31 34 #include <pcre.h> 35 #endif 32 36 33 37 #include "samhain.h" -
trunk/src/sh_log_parse_pacct.c
r199 r203 227 227 sh_string * sh_read_pacct (sh_string * record, struct sh_logfile * logfile) 228 228 { 229 #if defined(__linux__) 229 #if defined(__linux__) && defined(HAVE_ACCT_V3) 230 230 # define STRUCT_ACCT struct acct_v3 231 231 #else -
trunk/src/sh_processcheck.c
r183 r203 196 196 char * tmp; 197 197 198 sl_snprintf (path, sizeof(path), "/proc/%ld/exe", (unsigned long) pid);198 sl_snprintf (path, sizeof(path), _("/proc/%ld/exe"), (unsigned long) pid); 199 199 200 200 if (0 == retry_lstat(FIL__, __LINE__, path, &sbuf) && S_ISLNK(sbuf.st_mode)) … … 203 203 } 204 204 205 sl_snprintf (path, sizeof(path), "/proc/%ld/file", (unsigned long) pid);205 sl_snprintf (path, sizeof(path), _("/proc/%ld/file"), (unsigned long) pid); 206 206 207 207 if (0 == retry_lstat(FIL__, __LINE__, path, &sbuf) && S_ISLNK(sbuf.st_mode)) … … 210 210 } 211 211 212 sl_snprintf (path, sizeof(path), "/proc/%ld/path/a.out", (unsigned long) pid);212 sl_snprintf (path, sizeof(path), _("/proc/%ld/path/a.out"), (unsigned long) pid); 213 213 214 214 if (0 == retry_lstat(FIL__, __LINE__, path, &sbuf) && S_ISLNK(sbuf.st_mode)) -
trunk/src/sh_unix.c
r200 r203 2083 2083 int r; 2084 2084 2085 while((r = waitpid(pid, &status, W CONTINUED|WUNTRACED)) != pid && r != -1) ;2085 while((r = waitpid(pid, &status, WUNTRACED)) != pid && r != -1) ; 2086 2086 2087 2087 #if !defined(USE_UNO) -
trunk/src/sh_userfiles.c
r149 r203 215 215 * So, compare longest strings first */ 216 216 if( s == NULL ) /* The default */ new->level = default_level; 217 else if ( strstr(s, "attributes")!= NULL ) new->level = SH_LEVEL_ATTRIBUTES;218 else if ( strstr(s, "allignore") != NULL ) new->level = SH_LEVEL_ALLIGNORE;219 else if ( strstr(s, "noignore") != NULL ) new->level = SH_LEVEL_NOIGNORE;220 else if ( strstr(s, "logfiles") != NULL ) new->level = SH_LEVEL_LOGFILES;221 else if ( strstr(s, "readonly") != NULL ) new->level = SH_LEVEL_READONLY;222 else if ( strstr(s, "loggrow") != NULL ) new->level = SH_LEVEL_LOGGROW;223 else if ( strstr(s, "user0") != NULL ) new->level = SH_LEVEL_USER0;224 else if ( strstr(s, "user1") != NULL ) new->level = SH_LEVEL_USER1;225 else if ( strstr(s, "user2") != NULL ) new->level = SH_LEVEL_USER2;226 else if ( strstr(s, "user3") != NULL ) new->level = SH_LEVEL_USER3;227 else if ( strstr(s, "user4") != NULL ) new->level = SH_LEVEL_USER4;228 else if ( strstr(s, "prelink") != NULL ) new->level = SH_LEVEL_PRELINK;217 else if ( strstr(s, _("attributes"))!= NULL ) new->level = SH_LEVEL_ATTRIBUTES; 218 else if ( strstr(s, _("allignore")) != NULL ) new->level = SH_LEVEL_ALLIGNORE; 219 else if ( strstr(s, _("noignore")) != NULL ) new->level = SH_LEVEL_NOIGNORE; 220 else if ( strstr(s, _("logfiles")) != NULL ) new->level = SH_LEVEL_LOGFILES; 221 else if ( strstr(s, _("readonly")) != NULL ) new->level = SH_LEVEL_READONLY; 222 else if ( strstr(s, _("loggrow")) != NULL ) new->level = SH_LEVEL_LOGGROW; 223 else if ( strstr(s, _("user0")) != NULL ) new->level = SH_LEVEL_USER0; 224 else if ( strstr(s, _("user1")) != NULL ) new->level = SH_LEVEL_USER1; 225 else if ( strstr(s, _("user2")) != NULL ) new->level = SH_LEVEL_USER2; 226 else if ( strstr(s, _("user3")) != NULL ) new->level = SH_LEVEL_USER3; 227 else if ( strstr(s, _("user4")) != NULL ) new->level = SH_LEVEL_USER4; 228 else if ( strstr(s, _("prelink")) != NULL ) new->level = SH_LEVEL_PRELINK; 229 229 else /* The default */ new->level = default_level; 230 230 -
trunk/src/slib.c
r200 r203 1094 1094 { 1095 1095 #ifndef HAVE_STRSTR 1096 insigned int i;1096 unsigned int i; 1097 1097 size_t needle_len; 1098 1098 size_t haystack_len;
Note:
See TracChangeset
for help on using the changeset viewer.