summaryrefslogtreecommitdiff
path: root/lib/libc/gen/getpwent.c
diff options
context:
space:
mode:
authorBill Paul <wpaul@FreeBSD.org>1995-02-01 20:06:33 +0000
committerBill Paul <wpaul@FreeBSD.org>1995-02-01 20:06:33 +0000
commitc768efa1a8ef820fbae506eaeb5c7dbfeaaa9eb5 (patch)
treee7e6d57cb6b8074b0d53b0dbc37da5f1f0415de7 /lib/libc/gen/getpwent.c
parentf4df96ec7eb36e0d727d87d2addb7afc52f8373a (diff)
Notes
Diffstat (limited to 'lib/libc/gen/getpwent.c')
-rw-r--r--lib/libc/gen/getpwent.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/gen/getpwent.c b/lib/libc/gen/getpwent.c
index 9f978af7e89a..9ff593eed7f9 100644
--- a/lib/libc/gen/getpwent.c
+++ b/lib/libc/gen/getpwent.c
@@ -442,7 +442,8 @@ _getyppass(struct passwd *pw, const char *name, const char *map)
/* Don't even bother with this if we aren't root. */
if (!geteuid())
if (_havemaster(_pw_yp_domain)) {
- sprintf(mastermap,"master.passwd.%s",map);
+ sprintf(mastermap,"master.passwd.%s",
+ strstr(map,"byuid") ? "byuid" : "byname");
gotmaster++;
}