summaryrefslogtreecommitdiff
path: root/procps/ps.c
diff options
context:
space:
mode:
authorDenis Vlasenko2007-07-01 17:25:59 +0000
committerDenis Vlasenko2007-07-01 17:25:59 +0000
commitaba7f49a228e56f34e9f234794a21c3ca8ca1679 (patch)
tree08d936fcc4e1dd058486aa688b9a2e85d67f4f92 /procps/ps.c
parente6bce979bfcf19fc1171ed3c6d85a22e908f7312 (diff)
downloadbusybox-aba7f49a228e56f34e9f234794a21c3ca8ca1679.zip
busybox-aba7f49a228e56f34e9f234794a21c3ca8ca1679.tar.gz
ps: revert wrong "optimization": (i & 1) -> i
Diffstat (limited to 'procps/ps.c')
-rw-r--r--procps/ps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/procps/ps.c b/procps/ps.c
index bbd5467..47e4c61 100644
--- a/procps/ps.c
+++ b/procps/ps.c
@@ -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 */