From 51b661db902c9856575480afc0d033053b3d1ae6 Mon Sep 17 00:00:00 2001 From: cjc Date: Mon, 18 Mar 2002 12:55:28 +0000 Subject: Fix world breakage introduced by my recent modifications to chpass(8). The relations between libc, libpam, chpass, passwd, and vipw are a mess and probably should be cleaned up. Submitted by: Peter Pentchev --- usr.bin/passwd/Makefile | 2 ++ usr.bin/passwd/local_passwd.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'usr.bin/passwd') diff --git a/usr.bin/passwd/Makefile b/usr.bin/passwd/Makefile index 67022c3..1192904 100644 --- a/usr.bin/passwd/Makefile +++ b/usr.bin/passwd/Makefile @@ -20,6 +20,7 @@ LDADD= -lcrypt -lutil CFLAGS+= -DLOGIN_CAP -DCRYPT -I. -I${.CURDIR} \ -I${.CURDIR}/../../usr.sbin/vipw \ -I${.CURDIR}/../../usr.bin/chpass \ + -I${.CURDIR}/../../lib/libc/gen \ -Dyp_error=warnx -DLOGGING .else @@ -42,6 +43,7 @@ CFLAGS+= -DLOGIN_CAP -DCRYPT -DYP -I. -I${.CURDIR} \ -I${.CURDIR}/../../usr.bin/chpass \ -I${.CURDIR}/../../libexec/ypxfr \ -I${.CURDIR}/../../usr.sbin/rpc.yppasswdd \ + -I${.CURDIR}/../../lib/libc/gen \ -Dyp_error=warnx -DLOGGING .endif diff --git a/usr.bin/passwd/local_passwd.c b/usr.bin/passwd/local_passwd.c index ce2e46b..91b8bf7 100644 --- a/usr.bin/passwd/local_passwd.c +++ b/usr.bin/passwd/local_passwd.c @@ -223,7 +223,7 @@ local_passwd(uname) pfd = pw_lock(); tfd = pw_tmp(); - pw_copy(pfd, tfd, pw); + pw_copy(pfd, tfd, pw, NULL); if (!pw_mkdb(uname)) pw_error((char *)NULL, 0, 1); -- cgit v1.1