Changeset 153 for trunk/src/samhain.c


Ignore:
Timestamp:
Jan 11, 2008, 11:47:17 PM (17 years ago)
Author:
katerina
Message:

Use -D_FORTIFY_SOURCE=1 -fstack-protector-all if supported. Compiler warnings fixed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/samhain.c

    r149 r153  
    13911391          my_argv[0] = argv[0]; ++my_argc; 
    13921392          command_line[0] = '\0';
    1393           (void*) fgets (command_line, sizeof(command_line), stdin);
    1394           command_line[sizeof(command_line)-1] = '\0';
     1393          if (NULL != fgets (command_line, sizeof(command_line), stdin))
     1394            command_line[sizeof(command_line)-1] = '\0';
     1395
    13951396          do {
    13961397#if defined(HAVE_PTHREAD) && defined (_POSIX_THREAD_SAFE_FUNCTIONS) && defined(HAVE_STRTOK_R)
     
    19611962              (void) sh_dirs_chk  (1);
    19621963#ifndef SH_PROFILE
    1963               (void) chdir ("/");
     1964              (void) retry_aud_chdir (FIL__, __LINE__, "/");
    19641965#endif
    19651966            }
     
    19681969              (void) sh_dirs_chk  (2);
    19691970#ifndef SH_PROFILE
    1970               (void) chdir ("/");
     1971              (void) retry_aud_chdir (FIL__, __LINE__, "/");
    19711972#endif
    19721973            }
Note: See TracChangeset for help on using the changeset viewer.