]> granicus.if.org Git - shadow/commitdiff
Update the group database before flushing the nscd caches.
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Fri, 16 Nov 2007 23:29:41 +0000 (23:29 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Fri, 16 Nov 2007 23:29:41 +0000 (23:29 +0000)
ChangeLog
NEWS
src/usermod.c

index 42c5ca3c6a0fd7b4fff7ecfa6066bb45a93ac4ba..d63ebd8fd4f67b737cd6d73fe3f0745d0990e3bc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
 
        * NEWS, src/userdel.c: Abort if an error is found while updating the
diff --git a/NEWS b/NEWS
index 052d3536d8cdd20daac86f84464b54aa84c9e6e6..4fabd12843f4b8035e9ba9b01b189ab76decba44 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -27,6 +27,7 @@ shadow-4.0.18.1 -> shadow-4.0.18.2                                    UNRELEASED
   (https://bugzilla.redhat.com/show_bug.cgi?id=240915)
 - userdel: Abort if an error is detected while updating the passwd or group
   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
 
index 13759e8d59339ddd16d2356000ad0073bd1baa92..c67ad59960b1ef7456adf1da1c2936282f06d444 100644 (file)
@@ -1529,12 +1529,12 @@ int main (int argc, char **argv)
        usr_update ();
        close_files ();
 
-       nscd_flush_cache ("passwd");
-       nscd_flush_cache ("group");
-
        if (Gflg || lflg)
                grp_err = grp_update ();
 
+       nscd_flush_cache ("passwd");
+       nscd_flush_cache ("group");
+
        if (mflg)
                move_home ();