From 2aba4d551ff30d2544f8309957ff6984ad3690b5 Mon Sep 17 00:00:00 2001 From: robert Date: Sun, 29 Aug 2021 15:22:24 +0000 Subject: [PATCH] notify the user about a successful password change; ok millert@ --- usr.bin/passwd/local_passwd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/usr.bin/passwd/local_passwd.c b/usr.bin/passwd/local_passwd.c index 9735b346b39..004a7ff5cad 100644 --- a/usr.bin/passwd/local_passwd.c +++ b/usr.bin/passwd/local_passwd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: local_passwd.c,v 1.60 2021/08/28 06:46:49 robert Exp $ */ +/* $OpenBSD: local_passwd.c,v 1.61 2021/08/29 15:22:24 robert Exp $ */ /*- * Copyright (c) 1990 The Regents of the University of California. @@ -160,6 +160,8 @@ local_passwd(char *uname, int authenticated) if (pw_mkdb(uname, pwflags) == -1) pw_error(NULL, 0, 1); + fprintf(stderr, "passwd: password updated successfully\n"); + return(0); } -- 2.20.1