more close-on-exec fixes, mostly using new "e" flag to fopen
[musl] / src / legacy / getusershell.c
index 683158c..f31f404 100644 (file)
@@ -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");
 }