summaryrefslogtreecommitdiff
path: root/src/passwd/getpwent.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/passwd/getpwent.c')
-rw-r--r--src/passwd/getpwent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/passwd/getpwent.c b/src/passwd/getpwent.c
index e8501461..c655135e 100644
--- a/src/passwd/getpwent.c
+++ b/src/passwd/getpwent.c
@@ -15,7 +15,7 @@ struct passwd *getpwent()
static char *line;
static struct passwd pw;
size_t size=0;
- if (!f) f = fopen("/etc/passwd", "rb");
+ if (!f) f = fopen("/etc/passwd", "rbe");
if (!f) return 0;
return __getpwent_a(f, &pw, &line, &size);
}