Changeset 153 for trunk/src/sh_gpg.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/sh_gpg.c

    r137 r153  
    489489      sh_unix_closeall (3, -1); /* in child process */
    490490
    491       freopen(_("/dev/null"), "r+", stderr);
     491      if (NULL == freopen(_("/dev/null"), "r+", stderr))
     492        {
     493          dlog(1, FIL__, __LINE__, _("Internal error: freopen failed\n"));
     494          aud__exit(FIL__, __LINE__, EXIT_FAILURE);
     495        }
    492496
    493497      /* We should become privileged if SUID,
Note: See TracChangeset for help on using the changeset viewer.