=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/chpass/chpass.c,v retrieving revision 1.15 retrieving revision 1.16 diff -c -r1.15 -r1.16 *** src/usr.bin/chpass/chpass.c 2000/11/21 13:36:14 1.15 --- src/usr.bin/chpass/chpass.c 2000/11/26 01:29:43 1.16 *************** *** 1,4 **** ! /* $OpenBSD: chpass.c,v 1.15 2000/11/21 13:36:14 aaron Exp $ */ /* $NetBSD: chpass.c,v 1.8 1996/05/15 21:50:43 jtc Exp $ */ /*- --- 1,4 ---- ! /* $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,50 **** #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 $"; #endif #endif /* not lint */ --- 44,50 ---- #if 0 static char sccsid[] = "@(#)chpass.c 8.4 (Berkeley) 4/2/94"; #else ! static char rcsid[] = "$OpenBSD: chpass.c,v 1.16 2000/11/26 01:29:43 millert Exp $"; #endif #endif /* not lint */ *************** *** 219,225 **** pw_copy(pfd, tfd, pw); /* Now finish the passwd file update. */ ! if (pw_mkdb() == -1) pw_error(NULL, 0, 1); } --- 219,225 ---- pw_copy(pfd, tfd, pw); /* Now finish the passwd file update. */ ! if (pw_mkdb(pw->pw_name) == -1) pw_error(NULL, 0, 1); }