diff options
author | Eric Andersen <andersen@codepoet.org> | 2003-11-01 04:40:10 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2003-11-01 04:40:10 +0000 |
commit | fabd08e8543c01b41f277eb2eb9f731c7b424c36 (patch) | |
tree | e6f38c07b1fa9a3d37f73201e360a039606f6fd9 /libc/pwd_grp/__getpwent_r.c | |
parent | 9eae73f74c4eee0c661778acc09c5bbf2e42709b (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/__getpwent_r.c')
-rw-r--r-- | libc/pwd_grp/__getpwent_r.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/libc/pwd_grp/__getpwent_r.c b/libc/pwd_grp/__getpwent_r.c index ae9c187d8..6e6de4038 100644 --- a/libc/pwd_grp/__getpwent_r.c +++ b/libc/pwd_grp/__getpwent_r.c @@ -47,9 +47,6 @@ int __getpwent_r(struct passwd * passwd, char * line_buff, size_t buflen, int pw return ERANGE; } - if (pwd_fd == -1) - setpwent(); - /* We use the restart label to handle malformatted lines */ restart: /* Read the passwd line into the buffer for processing */ |