diff options
Diffstat (limited to 'procps/ps.c')
-rw-r--r-- | procps/ps.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/procps/ps.c b/procps/ps.c index eb1946d27..081479b33 100644 --- a/procps/ps.c +++ b/procps/ps.c | |||
@@ -715,7 +715,8 @@ int ps_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM) | |||
715 | # if ENABLE_FEATURE_PS_WIDE | 715 | # if ENABLE_FEATURE_PS_WIDE |
716 | /* -w is a bit complicated */ | 716 | /* -w is a bit complicated */ |
717 | int w_count = 0; | 717 | int w_count = 0; |
718 | opt_complementary = "-:ww"; | 718 | make_all_argv_opts(argv); |
719 | opt_complementary = "ww"; | ||
719 | opts = getopt32(argv, IF_SELINUX("Z")IF_FEATURE_SHOW_THREADS("T")IF_FEATURE_PS_LONG("l") | 720 | opts = getopt32(argv, IF_SELINUX("Z")IF_FEATURE_SHOW_THREADS("T")IF_FEATURE_PS_LONG("l") |
720 | "w", &w_count); | 721 | "w", &w_count); |
721 | /* if w is given once, GNU ps sets the width to 132, | 722 | /* if w is given once, GNU ps sets the width to 132, |
@@ -731,7 +732,7 @@ int ps_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM) | |||
731 | } | 732 | } |
732 | # else | 733 | # else |
733 | /* -w is not supported, only -Z and/or -T */ | 734 | /* -w is not supported, only -Z and/or -T */ |
734 | opt_complementary = "-"; | 735 | make_all_argv_opts(argv); |
735 | opts = getopt32(argv, IF_SELINUX("Z")IF_FEATURE_SHOW_THREADS("T")IF_FEATURE_PS_LONG("l")); | 736 | opts = getopt32(argv, IF_SELINUX("Z")IF_FEATURE_SHOW_THREADS("T")IF_FEATURE_PS_LONG("l")); |
736 | # endif | 737 | # endif |
737 | 738 | ||