diff options
| author | David E. O'Brien <obrien@FreeBSD.org> | 2002-12-30 09:45:26 +0000 |
|---|---|---|
| committer | David E. O'Brien <obrien@FreeBSD.org> | 2002-12-30 09:45:26 +0000 |
| commit | 24c05aeeedff37d02f631386645bde66576b81a0 (patch) | |
| tree | 7095375bf86413a282ad0545c50ac57027fad764 /usr.bin | |
| parent | 899382138307efe14cf479eed8c17b030dbe925c (diff) | |
Notes
Diffstat (limited to 'usr.bin')
| -rw-r--r-- | usr.bin/chpass/Makefile | 3 | ||||
| -rw-r--r-- | usr.bin/chpass/chpass.c | 5 |
2 files changed, 3 insertions, 5 deletions
diff --git a/usr.bin/chpass/Makefile b/usr.bin/chpass/Makefile index 5c807ee5713e..f3f05e4e46fa 100644 --- a/usr.bin/chpass/Makefile +++ b/usr.bin/chpass/Makefile @@ -8,8 +8,7 @@ BINMODE=4555 .PATH: ${.CURDIR}/../../usr.sbin/pwd_mkdb \ ${.CURDIR}/../../lib/libc/gen CFLAGS+=-I${.CURDIR}/../../usr.sbin/pwd_mkdb -I${.CURDIR}/../../lib/libc/gen -WARNS?= 4 -NO_WERROR=yes +WARNS?= 5 LINKS= ${BINDIR}/chpass ${BINDIR}/chfn LINKS+= ${BINDIR}/chpass ${BINDIR}/chsh LINKS+= ${BINDIR}/chpass ${BINDIR}/ypchpass diff --git a/usr.bin/chpass/chpass.c b/usr.bin/chpass/chpass.c index ba8baaa6aaec..54e5bc9c67f9 100644 --- a/usr.bin/chpass/chpass.c +++ b/usr.bin/chpass/chpass.c @@ -82,13 +82,11 @@ int master_mode; static void baduser(void); static void usage(void); -char localhost[] = "localhost"; - int main(int argc, char *argv[]) { enum { NEWSH, LOADENTRY, EDITENTRY, NEWPW, NEWEXP } op; - struct passwd *pw = NULL, lpw, *old_pw; + struct passwd lpw, *old_pw, *pw; int ch, pfd, tfd; const char *password; char *arg = NULL; @@ -98,6 +96,7 @@ main(int argc, char *argv[]) const char *yp_domain = NULL, *yp_host = NULL; #endif + pw = old_pw = NULL; op = EDITENTRY; #ifdef YP while ((ch = getopt(argc, argv, "a:p:s:e:d:h:loy")) != -1) |
