Fix for that last fix... pass the hat. :)

This commit is contained in:
Bill Paul 1995-02-01 20:09:00 +00:00
parent c768efa1a8
commit 320ce7b758
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=6096

View File

@ -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++;
}