summaryrefslogtreecommitdiffstats
path: root/usr.bin/chpass
diff options
context:
space:
mode:
authorgallatin <gallatin@FreeBSD.org>1999-10-20 15:20:00 +0000
committergallatin <gallatin@FreeBSD.org>1999-10-20 15:20:00 +0000
commitd94d9af9ee4e291f0592ce46f9e721f36655eb75 (patch)
treeb4fbc3a8dd972b051cce24ce67552f3d6fe747cd /usr.bin/chpass
parentd73b3f074e8a6c0510bfef9e9f5d5973ccf49f9f (diff)
downloadFreeBSD-src-d94d9af9ee4e291f0592ce46f9e721f36655eb75.zip
FreeBSD-src-d94d9af9ee4e291f0592ce46f9e721f36655eb75.tar.gz
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 'usr.bin/chpass')
-rw-r--r--usr.bin/chpass/pw_yp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/chpass/pw_yp.c b/usr.bin/chpass/pw_yp.c
index 0877987..d6cfaeb 100644
--- a/usr.bin/chpass/pw_yp.c
+++ b/usr.bin/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) {
OpenPOWER on IntegriCloud