aboutsummaryrefslogtreecommitdiff
path: root/procps/ps.c
diff options
context:
space:
mode:
Diffstat (limited to 'procps/ps.c')
-rw-r--r--procps/ps.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/procps/ps.c b/procps/ps.c
index da8c2a346..92608b114 100644
--- a/procps/ps.c
+++ b/procps/ps.c
@@ -25,7 +25,7 @@ int ps_main(int argc, char **argv)
25#if ENABLE_FEATURE_PS_WIDE || ENABLE_SELINUX 25#if ENABLE_FEATURE_PS_WIDE || ENABLE_SELINUX
26#if ENABLE_FEATURE_PS_WIDE 26#if ENABLE_FEATURE_PS_WIDE
27 opt_complementary = "-:ww"; 27 opt_complementary = "-:ww";
28 USE_SELINUX(i =) getopt32(argc, argv, "w" USE_SELINUX("c"), &w_count); 28 USE_SELINUX(i =) getopt32(argc, argv, USE_SELINUX("c") "w", &w_count);
29 /* if w is given once, GNU ps sets the width to 132, 29 /* if w is given once, GNU ps sets the width to 132,
30 * if w is given more than once, it is "unlimited" 30 * if w is given more than once, it is "unlimited"
31 */ 31 */
@@ -40,7 +40,7 @@ int ps_main(int argc, char **argv)
40 i = getopt32(argc, argv, "c"); 40 i = getopt32(argc, argv, "c");
41#endif 41#endif
42#if ENABLE_SELINUX 42#if ENABLE_SELINUX
43 if ((i & (1+ENABLE_FEATURE_PS_WIDE)) && is_selinux_enabled()) 43 if ((i & 1) && is_selinux_enabled())
44 use_selinux = 1; 44 use_selinux = 1;
45#endif 45#endif
46#endif /* ENABLE_FEATURE_PS_WIDE || ENABLE_SELINUX */ 46#endif /* ENABLE_FEATURE_PS_WIDE || ENABLE_SELINUX */