diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-09-29 18:14:46 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-09-29 18:14:46 -0400 |
commit | d712dd396d7d69686f7001fd986bfc59217b72dd (patch) | |
tree | 97fa1f57688e106fb0fe94c27b6d7484b8720db5 /src/passwd/getgrent.c | |
parent | 8582a6e9f25dd7b87d72961f58008052a4cac473 (diff) | |
download | musl-d712dd396d7d69686f7001fd986bfc59217b72dd.tar.gz musl-d712dd396d7d69686f7001fd986bfc59217b72dd.tar.bz2 musl-d712dd396d7d69686f7001fd986bfc59217b72dd.tar.xz musl-d712dd396d7d69686f7001fd986bfc59217b72dd.zip |
more close-on-exec fixes, mostly using new "e" flag to fopen
Diffstat (limited to 'src/passwd/getgrent.c')
-rw-r--r-- | src/passwd/getgrent.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/passwd/getgrent.c b/src/passwd/getgrent.c index 4cbe1ebf..429a3e58 100644 --- a/src/passwd/getgrent.c +++ b/src/passwd/getgrent.c @@ -15,7 +15,7 @@ struct group *getgrent() static char *line, **mem; static struct group gr; size_t size=0, nmem=0; - if (!f) f = fopen("/etc/group", "rb"); + if (!f) f = fopen("/etc/group", "rbe"); if (!f) return 0; return __getgrent_a(f, &gr, &line, &size, &mem, &nmem); } |