Changeset 486
- Timestamp:
- Sep 1, 2015, 8:28:42 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/docs/Changelog
r485 r486 1 1 4.1.0: 2 * fix safe_logger() - uses the logger utility with a non-posix option 2 3 * fix missing reporting on shell expansion capability in --version 3 4 * fix missing error message on invalid list for skipchecksum -
trunk/src/sh_unix.c
r481 r486 369 369 370 370 char l0[64], l1[64], l2[64], l3[64]; 371 char a0[32] , a1[32], a2[32];371 char a0[32]; 372 372 char e0[128]; 373 373 char msg[128]; … … 375 375 char * locations[] = { NULL, NULL, NULL, NULL, NULL }; 376 376 char * envp[] = { NULL, NULL }; 377 char * argp[] = { NULL, NULL, NULL , NULL, NULL};377 char * argp[] = { NULL, NULL, NULL }; 378 378 379 379 pid_t thepid = getpid(); … … 390 390 391 391 envp[0] = e0; 392 393 392 argp[0] = a0; 394 argp[1] = a1;395 argp[2] = a2;396 393 397 394 sl_strlcpy(msg, _("samhain["), 128); … … 436 433 437 434 sl_strlcpy (a0, _("logger"), 32); 438 sl_strlcpy (a1, _("-p"), 32);439 sl_strlcpy (a2, _("daemon.alert"), 32);440 441 435 sl_strlcpy (e0, 442 436 _("PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/ucb:/usr/local/bin"), … … 451 445 452 446 if (locations[i] != NULL) { 453 argp[ 3] = msg;447 argp[1] = msg; 454 448 newpid = fork(); 455 449 if (newpid == 0) {
Note:
See TracChangeset
for help on using the changeset viewer.