summaryrefslogtreecommitdiffstats
path: root/chpass
diff options
context:
space:
mode:
Diffstat (limited to 'chpass')
-rw-r--r--chpass/Makefile5
-rw-r--r--chpass/chpass.c2
-rw-r--r--chpass/edit.c2
3 files changed, 5 insertions, 4 deletions
diff --git a/chpass/Makefile b/chpass/Makefile
index 7966608..8b2db0b 100644
--- a/chpass/Makefile
+++ b/chpass/Makefile
@@ -10,8 +10,9 @@ GENSRCS=yp.h yp_clnt.c yppasswd.h yppasswd_clnt.c yppasswd_private.h \
BINMODE=4555
.PATH: ${.CURDIR}/../../usr.sbin/pwd_mkdb ${.CURDIR}/../../usr.sbin/vipw \
${.CURDIR}/../../libexec/ypxfr \
- ${.CURDIR}/../../usr.sbin/rpc.yppasswdd
-CFLAGS+=-I${.CURDIR}/../../usr.sbin/pwd_mkdb -I${.CURDIR}/../../usr.sbin/vipw
+ ${.CURDIR}/../../usr.sbin/rpc.yppasswdd \
+ ${.CURDIR}/../../lib/libc/gen
+CFLAGS+=-I${.CURDIR}/../../usr.sbin/pwd_mkdb -I${.CURDIR}/../../usr.sbin/vipw -I${.CURDIR}/../../lib/libc/gen
LINKS= ${BINDIR}/chpass ${BINDIR}/chfn
LINKS+= ${BINDIR}/chpass ${BINDIR}/chsh
LINKS+= ${BINDIR}/chpass ${BINDIR}/ypchpass
diff --git a/chpass/chpass.c b/chpass/chpass.c
index 77f9f78..69e700f 100644
--- a/chpass/chpass.c
+++ b/chpass/chpass.c
@@ -204,7 +204,7 @@ main(argc, argv)
if (uid)
baduser();
pw = &lpw;
- if (!pw_scan(arg, pw))
+ if (!__pw_scan(arg, pw, _PWSCAN_WARN|_PWSCAN_MASTER))
exit(1);
}
username = pw->pw_name;
diff --git a/chpass/edit.c b/chpass/edit.c
index 6311d57..a5d3d5d 100644
--- a/chpass/edit.c
+++ b/chpass/edit.c
@@ -264,5 +264,5 @@ bad: (void)fclose(fp);
return (0);
}
free(p);
- return (pw_scan(buf, pw));
+ return (__pw_scan(buf, pw, _PWSCAN_WARN|_PWSCAN_MASTER));
}