about summary refs log tree commit diff
path: root/src/legacy/getusershell.c
diff options
context:
space:
mode:
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");
 }