update busybox-power against BusyBox 1.21 release
[busybox-power] / debian / patches / ps-accept-and-ignore-missing-options.patch
1 Make "ps" accept (but ignore) all missing common options expected to be
2 supported by "ps". 
3 This is required to not break scripts which are using these options.
4
5 --- a/procps/ps.c
6 +++ b/procps/ps.c
7 @@ -663,7 +663,7 @@ int ps_main(int argc UNUSED_PARAM, char
8         int w_count = 0;
9         opt_complementary = "-:ww";
10         opts = getopt32(argv, IF_SELINUX("Z")IF_FEATURE_SHOW_THREADS("T")IF_FEATURE_PS_LONG("l")
11 -                                       "w", &w_count);
12 +                                       "w""ANdeagrxCGUgpstuUojOFfsvuXVmMLScnfyH", &w_count, NULL);
13         /* if w is given once, GNU ps sets the width to 132,
14          * if w is given more than once, it is "unlimited"
15          */
16 @@ -678,7 +678,8 @@ int ps_main(int argc UNUSED_PARAM, char
17  # else
18         /* -w is not supported, only -Z and/or -T */
19         opt_complementary = "-";
20 -       opts = getopt32(argv, IF_SELINUX("Z")IF_FEATURE_SHOW_THREADS("T")IF_FEATURE_PS_LONG("l"));
21 +       opts = getopt32(argv, IF_SELINUX("Z")IF_FEATURE_SHOW_THREADS("T")IF_FEATURE_PS_LONG("l")
22 +                                       "ANdeagrxCGUgpstuUojOFfsvuXVmMLScnfyHw", NULL);
23  # endif
24  
25  # if ENABLE_SELINUX