]> granicus.if.org Git - shadow/commitdiff
* src/usermod.c (update_gshadow): is_member was computed twice.
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Thu, 14 Jul 2011 13:29:27 +0000 (13:29 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Thu, 14 Jul 2011 13:29:27 +0000 (13:29 +0000)
ChangeLog
src/usermod.c

index aef33d8813c5ce3798853a446459265f88aaf7d8..3ff5279946dc6bb9e5f609ce84ae44660e9b7b18 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -12,6 +12,7 @@
        * src/usermod.c (process_flags): Check for oflg is not needed to
        check if changes are needed.
        * src/usermod.c: usage() does not return. Add annotations.
+       * src/usermod.c (update_gshadow): is_member was computed twice.
 
 2011-07-08  Nicolas François  <nicolas.francois@centraliens.net>
 
index 34e279b2465f9cfa6a783b41612f50f3c5d2f789..4d7d0988d71f663b3263df840345ba0c9e5a6ec5 100644 (file)
@@ -699,7 +699,6 @@ static void update_gshadow (void)
                 * See if the user specified this group as one of their
                 * concurrent groups.
                 */
-               is_member = Gflg && is_on_list (user_groups, sgrp->sg_name);
                is_member = Gflg && (   (was_member && aflg)
                                     || is_on_list (user_groups, sgrp->sg_name));