diff --git a/ChangeLog b/ChangeLog index 7457e740..c3da1a82 100644 --- a/ChangeLog +++ b/ChangeLog @@ -9,6 +9,8 @@ * src/usermod.c (process_flags): Check option compatibility and dependency before options are discarded when no changes are requested. + * src/usermod.c (process_flags): Check for oflg is not needed to + check if changes are needed. 2011-07-08 Nicolas François diff --git a/src/usermod.c b/src/usermod.c index 059d172a..684e00a6 100644 --- a/src/usermod.c +++ b/src/usermod.c @@ -1116,7 +1116,7 @@ static void process_flags (int argc, char **argv) cflg = false; } - if (!(Uflg || uflg || sflg || pflg || oflg || mflg || Lflg || + if (!(Uflg || uflg || sflg || pflg || mflg || Lflg || lflg || Gflg || gflg || fflg || eflg || dflg || cflg #ifdef WITH_SELINUX || Zflg