[Pkg-shadow-devel] Bug#91733: Bug #91733 shoul dbe easy to fix

Christian Perrier bubulle at debian.org
Thu Jul 21 05:51:14 UTC 2005


Big #91733 should be easy to fix.

In short, when "passwd -e foo" is issued to change the password
expiry, passwd exits with a message stating that "Password changed".

This could be a little bit scary to users as no password change was
made.

Attached is a patch (to the upstream CVS version) which, I believe,
fixes this. Please review : you all know my C skills....:-)

-- 


-------------- next part --------------
--- passwd-ori.c	2005-07-21 07:47:37.670323024 +0200
+++ passwd.c	2005-07-21 07:49:41.132721773 +0200
@@ -918,7 +918,10 @@
 	SYSLOG ((LOG_INFO, "password for `%s' changed by `%s'", name, myname));
 	closelog ();
 	if (!qflg)
+	  if (!eflg)
 		printf (_("Password changed.\n"));
+	  else
+		printf (_("Password set to expire.\n"));
 	exit (E_SUCCESS);
 	/* NOT REACHED */
 }


More information about the Pkg-shadow-devel mailing list