From 8195a2b5d804efdb82d67e31a8451daf7d66e53e Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Thu, 14 Jul 2011 13:29:27 +0000 Subject: [PATCH] * src/usermod.c (update_gshadow): is_member was computed twice. --- ChangeLog | 1 + src/usermod.c | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) 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));