Update the group database before flushing the nscd caches.

This commit is contained in:
nekral-guest 2007-11-16 23:29:41 +00:00
parent 0325483ee4
commit 7ecdf9b71f
3 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2007-11-17 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, src/usermod.c: Update the group database before flushing
the nscd caches.
2007-11-17 Nicolas François <nicolas.francois@centraliens.net> 2007-11-17 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, src/userdel.c: Abort if an error is found while updating the * NEWS, src/userdel.c: Abort if an error is found while updating the

1
NEWS
View File

@ -27,6 +27,7 @@ shadow-4.0.18.1 -> shadow-4.0.18.2 UNRELEASED
(https://bugzilla.redhat.com/show_bug.cgi?id=240915) (https://bugzilla.redhat.com/show_bug.cgi?id=240915)
- userdel: Abort if an error is detected while updating the passwd or group - userdel: Abort if an error is detected while updating the passwd or group
databases. The passwd or group files will not be written. databases. The passwd or group files will not be written.
- usermod: Update the group database before flushing the nscd caches.
shadow-4.0.18.1 -> shadow-4.0.18.2 28-10-2007 shadow-4.0.18.1 -> shadow-4.0.18.2 28-10-2007

View File

@ -1529,12 +1529,12 @@ int main (int argc, char **argv)
usr_update (); usr_update ();
close_files (); close_files ();
nscd_flush_cache ("passwd");
nscd_flush_cache ("group");
if (Gflg || lflg) if (Gflg || lflg)
grp_err = grp_update (); grp_err = grp_update ();
nscd_flush_cache ("passwd");
nscd_flush_cache ("group");
if (mflg) if (mflg)
move_home (); move_home ();