diff options
| author | Jacques Vidrine <nectar@FreeBSD.org> | 2003-04-18 16:24:25 +0000 |
|---|---|---|
| committer | Jacques Vidrine <nectar@FreeBSD.org> | 2003-04-18 16:24:25 +0000 |
| commit | 71cc8f0764fca8c0979dbbcf51bc9f694d3bc974 (patch) | |
| tree | 7d88979bad20f0c569bdd06ce017f5e581d40d34 | |
| parent | 97f91728969018c8e6db0df8c86f2a036f2b1214 (diff) | |
Notes
| -rw-r--r-- | lib/libc/gen/getpwent.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/libc/gen/getpwent.c b/lib/libc/gen/getpwent.c index eb1825fd3c0a5..f00b20bb8e11a 100644 --- a/lib/libc/gen/getpwent.c +++ b/lib/libc/gen/getpwent.c @@ -623,8 +623,12 @@ fin: (void)st->db->close(st->db); st->db = NULL; } - if (rv == NS_SUCCESS && retval != NULL) - *(struct passwd **)retval = pwd; + if (rv == NS_SUCCESS) { + pwd->pw_fields &= ~_PWF_SOURCE; + pwd->pw_fields |= _PWF_FILES; + if (retval != NULL) + *(struct passwd **)retval = pwd; + } return (rv); } |
