From e8f6c5579cf8419e33bbcba0ceef55b1cdc34145 Mon Sep 17 00:00:00 2001 From: Andrew Gallatin Date: Wed, 20 Oct 1999 15:20:00 +0000 Subject: 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. --- chpass/pw_yp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chpass') 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) { -- cgit v1.2.3-56-ge451