* src/pwck.c: Unlock the password and shadow files when there is a
failure to prepare the update in memory.
This commit is contained in:
parent
6a1dea6602
commit
27f67dcad0
@ -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.
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user