diff options
author | 1999-10-20 15:20:00 +0000 | |
---|---|---|
committer | 1999-10-20 15:20:00 +0000 | |
commit | e8f6c5579cf8419e33bbcba0ceef55b1cdc34145 (patch) | |
tree | dbcc9fc9c824aaefcf78fb90b3bff52abd872377 /chpass/pw_yp.c | |
parent | 949ba3fff2093a76f224a8c053fe010ec6e734a6 (diff) | |
download | pw-darwin-e8f6c5579cf8419e33bbcba0ceef55b1cdc34145.tar.gz pw-darwin-e8f6c5579cf8419e33bbcba0ceef55b1cdc34145.tar.zst pw-darwin-e8f6c5579cf8419e33bbcba0ceef55b1cdc34145.zip |
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.
Diffstat (limited to 'chpass/pw_yp.c')
-rw-r--r-- | chpass/pw_yp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chpass/pw_yp.c b/chpass/pw_yp.c index 0877987..d6cfaeb 100644 --- a/chpass/pw_yp.c +++ b/chpass/pw_yp.c @@ -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) { |