diff options
| author | Mike Pritchard <mpp@FreeBSD.org> | 1997-04-02 06:20:04 +0000 |
|---|---|---|
| committer | Mike Pritchard <mpp@FreeBSD.org> | 1997-04-02 06:20:04 +0000 |
| commit | 1595890a1f1e2694e568b0070ec58038dcf7fbf9 (patch) | |
| tree | 1a4f1afc0dc9c16e29367c16d284719852f61b89 /lib/libc/gen/pwcache.c | |
| parent | dbf299abbeca86f1edd737cf18a8822a98e53ab9 (diff) | |
Notes
Diffstat (limited to 'lib/libc/gen/pwcache.c')
| -rw-r--r-- | lib/libc/gen/pwcache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/gen/pwcache.c b/lib/libc/gen/pwcache.c index a4328aeafea8..3213f4b54b9c 100644 --- a/lib/libc/gen/pwcache.c +++ b/lib/libc/gen/pwcache.c @@ -79,7 +79,7 @@ user_from_uid(uid, nouser) return (NULL); } } - return (cp->name); + return (cp->found ? cp->name : NULL); } char * @@ -115,5 +115,5 @@ group_from_gid(gid, nogroup) return (NULL); } } - return (cp->name); + return (cp->found ? cp->name : NULL); } |
