about summary refs log tree commit diff
path: root/src/legacy/getusershell.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-09-29 18:14:46 -0400
committerRich Felker <dalias@aerifal.cx>2012-09-29 18:14:46 -0400
commitd712dd396d7d69686f7001fd986bfc59217b72dd (patch)
tree97fa1f57688e106fb0fe94c27b6d7484b8720db5 /src/legacy/getusershell.c
parent8582a6e9f25dd7b87d72961f58008052a4cac473 (diff)
downloadmusl-d712dd396d7d69686f7001fd986bfc59217b72dd.tar.gz
musl-d712dd396d7d69686f7001fd986bfc59217b72dd.tar.xz
musl-d712dd396d7d69686f7001fd986bfc59217b72dd.zip
more close-on-exec fixes, mostly using new "e" flag to fopen
Diffstat (limited to 'src/legacy/getusershell.c')
-rw-r--r--src/legacy/getusershell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/legacy/getusershell.c b/src/legacy/getusershell.c
index 683158c8..f31f4042 100644
--- a/src/legacy/getusershell.c
+++ b/src/legacy/getusershell.c
@@ -17,7 +17,7 @@ void endusershell(void)
 
 void setusershell(void)
 {
-	if (!f) f = fopen("/etc/shells", "rb");
+	if (!f) f = fopen("/etc/shells", "rbe");
 	if (!f) f = fmemopen((void *)defshells, sizeof defshells - 1, "rb");
 }