summaryrefslogtreecommitdiff
path: root/libc/pwd_grp/__getgrent_r.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-11-01 04:40:10 +0000
committerEric Andersen <andersen@codepoet.org>2003-11-01 04:40:10 +0000
commitfabd08e8543c01b41f277eb2eb9f731c7b424c36 (patch)
treee6f38c07b1fa9a3d37f73201e360a039606f6fd9 /libc/pwd_grp/__getgrent_r.c
parent9eae73f74c4eee0c661778acc09c5bbf2e42709b (diff)
Fix things (properly) to open /etc/passd and /etc/group if
they have not yet been opened. My last try was completely and embarrasingly broken. -Erik
Diffstat (limited to 'libc/pwd_grp/__getgrent_r.c')
-rw-r--r--libc/pwd_grp/__getgrent_r.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/libc/pwd_grp/__getgrent_r.c b/libc/pwd_grp/__getgrent_r.c
index d5b2e99f1..69559bdb1 100644
--- a/libc/pwd_grp/__getgrent_r.c
+++ b/libc/pwd_grp/__getgrent_r.c
@@ -44,9 +44,6 @@ int __getgrent_r (struct group *__restrict group,
return ERANGE;
}
- if (grp_fd==-1)
- setgrent();
-
/* We use the restart label to handle malformatted lines */
restart:
/* Read the group line into the buffer for processing */