mirror of
https://github.com/opnsense/src.git
synced 2026-04-29 18:32:49 -04:00
Small fix to _getyppass(): sometimes we can construct the wrong mapname
when looking for master.passwd.whatever.
This commit is contained in:
parent
f4df96ec7e
commit
c768efa1a8
1 changed files with 2 additions and 1 deletions
|
|
@ -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++;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue