fix a serious bug where, on alpha, due to a an int/long type mismatch,

the uid arg to use_yp() was getting clobbered by the call to my_yp_match().
This led to a problem where a NIS user could edit root's passwd information.
This commit is contained in:
Andrew Gallatin 1999-10-20 15:20:00 +00:00
parent 42c9b5b974
commit 8f5c81c41a

View File

@ -266,7 +266,7 @@ int use_yp (user, uid, which)
char bf[UT_NAMESIZE + 2];
char *result;
char *server;
int resultlen;
long resultlen;
char ubuf[UT_NAMESIZE + 2];
if (which) {