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:
des 2002-05-07 23:26:00 +00:00
parent 8c85827b13
commit 86f528a4ae

View File

@ -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)