about summary refs log tree commit diff
path: root/src/passwd/getgr_r.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/passwd/getgr_r.c')
-rw-r--r--src/passwd/getgr_r.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/passwd/getgr_r.c b/src/passwd/getgr_r.c
index 1dc5f7e0..234c9013 100644
--- a/src/passwd/getgr_r.c
+++ b/src/passwd/getgr_r.c
@@ -16,7 +16,7 @@ static int getgr_r(const char *name, gid_t gid, struct group *gr, char *buf, siz
 
 	pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &cs);
 
-	f = fopen("/etc/group", "rb");
+	f = fopen("/etc/group", "rbe");
 	if (!f) {
 		rv = errno;
 		goto done;