ps: revert wrong "optimization": (i & 1) -> i
authorDenis Vlasenko <vda.linux@googlemail.com>
Sun, 1 Jul 2007 17:25:59 +0000 (17:25 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Sun, 1 Jul 2007 17:25:59 +0000 (17:25 -0000)
procps/ps.c

index bbd546761b40adc066da22e6e398b66ea2504680..47e4c6111a74316ecca304fdb80038868719e341 100644 (file)
@@ -368,7 +368,7 @@ int ps_main(int argc, char **argv)
        i = getopt32(argc, argv, "Z");
 #endif
 #if ENABLE_SELINUX
-       if (i && is_selinux_enabled())
+       if ((i & 1) && is_selinux_enabled())
                use_selinux = PSSCAN_CONTEXT;
 #endif
 #endif /* ENABLE_FEATURE_PS_WIDE || ENABLE_SELINUX */