diff --git a/lib/libc/gen/getpwent.c b/lib/libc/gen/getpwent.c index 9ff593eed7f9..e8ac1e762281 100644 --- a/lib/libc/gen/getpwent.c +++ b/lib/libc/gen/getpwent.c @@ -442,8 +442,7 @@ _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", - strstr(map,"byuid") ? "byuid" : "byname"); + sprintf(mastermap,"master.%s", map); gotmaster++; }