aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--procps/ps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/procps/ps.c b/procps/ps.c
index bbd546761..47e4c6111 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 */