notify the user about a successful password change; ok millert@
authorrobert <robert@openbsd.org>
Sun, 29 Aug 2021 15:22:24 +0000 (15:22 +0000)
committerrobert <robert@openbsd.org>
Sun, 29 Aug 2021 15:22:24 +0000 (15:22 +0000)
usr.bin/passwd/local_passwd.c

index 9735b34..004a7ff 100644 (file)
@@ -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);
 }