]> granicus.if.org Git - shadow/commitdiff
* src/pwck.c: Unlock the password and shadow files when there is a
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Thu, 18 Mar 2010 10:52:52 +0000 (10:52 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Thu, 18 Mar 2010 10:52:52 +0000 (10:52 +0000)
failure to prepare the update in memory.

ChangeLog
src/pwck.c

index 2e0df5284aa603764aa0c783326658fef2c6b9e7..56add6ae72288fa00fc78d8bafcc8a1219f9c035 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-03-18  Nicolas François  <nicolas.francois@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@centraliens.net>
 
        * src/pwck.c: Only log to SYSLOG when acting on system files.
index dafa581911c947a3fa7aa245df2bd33a3796d00d..316797f100852469d71936987e89f2bd41997cef 100644 (file)
@@ -590,7 +590,7 @@ static void check_pw_file (int *errors, bool *changed)
                                                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;