]> granicus.if.org Git - shadow/commitdiff
* src/usermod.c (process_flags): Check for oflg is not needed to
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Thu, 14 Jul 2011 13:29:16 +0000 (13:29 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Thu, 14 Jul 2011 13:29:16 +0000 (13:29 +0000)
check if changes are needed.

ChangeLog
src/usermod.c

index 7457e740dbaff0180cd2d33b32a0d9bd95125b96..c3da1a82634f3aaa4a1261a97d1de092e6832ef0 100644 (file)
--- 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  <nicolas.francois@centraliens.net>
 
index 059d172a299980cb99b3576ebaec18bd39385e97..684e00a6c46430fe7b5367ce9c3889c2c6dd49b8 100644 (file)
@@ -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