[Pkg-shadow-commits] r3148 - in upstream/trunk: . src

Nicolas FRANÇOIS nekral-guest at alioth.debian.org
Thu Mar 18 10:52:52 UTC 2010


Author: nekral-guest
Date: 2010-03-18 10:52:52 +0000 (Thu, 18 Mar 2010)
New Revision: 3148

Modified:
   upstream/trunk/ChangeLog
   upstream/trunk/src/pwck.c
Log:
	* src/pwck.c: Unlock the password and shadow files when there is a
	failure to prepare the update in memory.


Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog	2010-03-18 10:35:11 UTC (rev 3147)
+++ upstream/trunk/ChangeLog	2010-03-18 10:52:52 UTC (rev 3148)
@@ -1,5 +1,10 @@
 2010-03-18  Nicolas François  <nicolas.francois at centraliens.net>
 
+	* src/pwck.c: Unlock the password and shadow files when there is a
+	failure to prepare the update in memory.
+
+2010-03-18  Nicolas François  <nicolas.francois at centraliens.net>
+
 	* src/pwck.c: Only log to SYSLOG when acting on system files.
 
 2010-03-18  Nicolas François  <nicolas.francois at centraliens.net>

Modified: upstream/trunk/src/pwck.c
===================================================================
--- upstream/trunk/src/pwck.c	2010-03-18 10:35:11 UTC (rev 3147)
+++ upstream/trunk/src/pwck.c	2010-03-18 10:52:52 UTC (rev 3148)
@@ -590,7 +590,7 @@
 						fprintf (stderr,
 						         _("%s: failed to prepare the new %s entry '%s'\n"),
 						         Prog, spw_dbname (), sp.sp_namp);
-						exit (E_CANTUPDATE);
+						fail_exit (E_CANTUPDATE);
 					}
 					/* remove password from /etc/passwd */
 					pw = *pwd;




More information about the Pkg-shadow-commits mailing list