diff options
| -rw-r--r-- | lib/libc/gen/getpwent.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/gen/getpwent.c b/lib/libc/gen/getpwent.c index 01f3bcc90fe6..31a88c8f1cfc 100644 --- a/lib/libc/gen/getpwent.c +++ b/lib/libc/gen/getpwent.c @@ -141,7 +141,7 @@ getpwnam(name) * are in /etc/master.passwd. */ if (rval && _pw_passwd.pw_name[0] == '+') rval = 0; -#endif + if (!_pw_stayopen) { (void)(_pw_db->close)(_pw_db); _pw_db = (DB *)NULL; |
