Fix bug that causes passwd and friends to fail when the user has a '+' in
their passwd file for NIS because _PWF_SOURCE is not set. Submitted by: amigus (perforce change 10969)
This commit is contained in:
parent
8c85827b13
commit
86f528a4ae
@ -966,6 +966,9 @@ _compat_getpw(rv, cb_data, ap)
|
||||
break;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
_pw_passwd.pw_fields &= ~_PWF_SOURCE;
|
||||
_pw_passwd.pw_fields |= _PWF_FILES;
|
||||
}
|
||||
if ((search == _PW_KEYBYNAME &&
|
||||
strcmp(_pw_passwd.pw_name, name) == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user