From 2e994af33273244620494146fafeefc86a0d0ff6 Mon Sep 17 00:00:00 2001 From: jnemeth Date: Sun, 6 May 2007 09:19:44 +0000 Subject: [PATCH] Display a message indicating who's password is being changed, as per Jeremy Reed on tech-userlevel. --- usr.bin/passwd/pam_passwd.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/usr.bin/passwd/pam_passwd.c b/usr.bin/passwd/pam_passwd.c index f818b095b563..d7e8393d1237 100644 --- a/usr.bin/passwd/pam_passwd.c +++ b/usr.bin/passwd/pam_passwd.c @@ -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 @@ -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");