diff --git a/ChangeLog b/ChangeLog index aef33d88..3ff52799 100644 --- 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 diff --git a/src/usermod.c b/src/usermod.c index 34e279b2..4d7d0988 100644 --- a/src/usermod.c +++ b/src/usermod.c @@ -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));