Display a message indicating who's password is being changed, as per

Jeremy Reed on tech-userlevel.
This commit is contained in:
jnemeth 2007-05-06 09:19:44 +00:00
parent 752b247e01
commit 2e994af332
1 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: pam_passwd.c,v 1.3 2005/02/26 07:19:25 thorpej Exp $ */
/* $NetBSD: pam_passwd.c,v 1.4 2007/05/06 09:19:44 jnemeth Exp $ */
/*-
* Copyright (c) 2002 Networks Associates Technologies, Inc.
@ -38,7 +38,7 @@
#ifdef __FreeBSD__
__FBSDID("$FreeBSD: src/usr.bin/passwd/passwd.c,v 1.23 2003/04/18 21:27:09 nectar Exp $");
#else
__RCSID("$NetBSD: pam_passwd.c,v 1.3 2005/02/26 07:19:25 thorpej Exp $");
__RCSID("$NetBSD: pam_passwd.c,v 1.4 2007/05/06 09:19:44 jnemeth Exp $");
#endif
#include <sys/param.h>
@ -98,6 +98,8 @@ pwpam_process(const char *username, int argc, char **argv)
/* NOTREACHED */
}
(void)printf("Changing password for %s.\n", username);
/* initialize PAM -- always use the program name "passwd" */
pam_err = pam_start("passwd", username, &pamc, &pamh);
pam_check("unable to start PAM session");