diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2000-11-26 01:29:44 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2000-11-26 01:29:44 +0000 |
commit | 0833960ec5375df11695c85f9ee7ac29a2001cbf (patch) | |
tree | 6e5bd2c214a08ac12099061f8baa8c99002dc7e5 /usr.bin/chpass | |
parent | 19054405341f0d0f83f6550fada15989c0fea2df (diff) |
Update for pw_mkdb(3) interface change. All but vipw and userdel can
specify a username (and thus avoid rebuilding the while database).
Diffstat (limited to 'usr.bin/chpass')
-rw-r--r-- | usr.bin/chpass/chpass.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/chpass/chpass.c b/usr.bin/chpass/chpass.c index a0b8215d73d..8b284155134 100644 --- a/usr.bin/chpass/chpass.c +++ b/usr.bin/chpass/chpass.c @@ -1,4 +1,4 @@ -/* $OpenBSD: chpass.c,v 1.15 2000/11/21 13:36:14 aaron Exp $ */ +/* $OpenBSD: chpass.c,v 1.16 2000/11/26 01:29:43 millert Exp $ */ /* $NetBSD: chpass.c,v 1.8 1996/05/15 21:50:43 jtc Exp $ */ /*- @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)chpass.c 8.4 (Berkeley) 4/2/94"; #else -static char rcsid[] = "$OpenBSD: chpass.c,v 1.15 2000/11/21 13:36:14 aaron Exp $"; +static char rcsid[] = "$OpenBSD: chpass.c,v 1.16 2000/11/26 01:29:43 millert Exp $"; #endif #endif /* not lint */ @@ -219,7 +219,7 @@ main(argc, argv) pw_copy(pfd, tfd, pw); /* Now finish the passwd file update. */ - if (pw_mkdb() == -1) + if (pw_mkdb(pw->pw_name) == -1) pw_error(NULL, 0, 1); } |