Do not rewrite the group and gshadow file in case of error.
This commit is contained in:
1 parent
9e07fec6ba
commit
a2242f6f1b
3 files changed
+12
-5
No files matched your search
+4
-3
@@ -340,9 +340,10 @@ int main (int argc, char **argv)
|
||||
open_files ();
|
||||
|
||||
grp_update ();
|
||||
close_files ();
|
||||
|
||||
nscd_flush_cache ("group");
|
||||
if (errors == 0) {
|
||||
close_files ();
|
||||
nscd_flush_cache ("group");
|
||||
}
|
||||
|
||||
#ifdef USE_PAM
|
||||
if (retval == PAM_SUCCESS)
|
||||
|
||||
Reference in new issue
Block a user