update busybox-power against BusyBox 1.20 release
[busybox-power] / debian / patches / ps-accept-and-ignore-missing-options.patch
index 61c84f3..7869408 100644 (file)
@@ -6,21 +6,22 @@ By Dennis Groenen <tj.groenen@gmail.com> - 2011-08-19
 
 --- a/procps/ps.c
 +++ b/procps/ps.c
-@@ -633,7 +633,7 @@ int ps_main(int argc UNUSED_PARAM, char
-       /* -w is a bit complicated */
+@@ -645,7 +645,7 @@ int ps_main(int argc UNUSED_PARAM, char
        int w_count = 0;
        opt_complementary = "-:ww";
--      opts = getopt32(argv, IF_SELINUX("Z")IF_FEATURE_SHOW_THREADS("T")"w", &w_count);
-+      opts = getopt32(argv, IF_SELINUX("Z")IF_FEATURE_SHOW_THREADS("T")"w""ANdeagrxCGUgpstuUojOlFfsvuXVmMLScnfyH", &w_count, NULL);
+       opts = getopt32(argv, IF_SELINUX("Z")IF_FEATURE_SHOW_THREADS("T")IF_FEATURE_PS_LONG("l")
+-                                      "w", &w_count);
++                                      "w""ANdeagrxCGUgpstuUojOFfsvuXVmMLScnfyH", &w_count, NULL);
        /* if w is given once, GNU ps sets the width to 132,
         * if w is given more than once, it is "unlimited"
         */
-@@ -648,7 +648,7 @@ int ps_main(int argc UNUSED_PARAM, char
+@@ -660,7 +660,8 @@ int ps_main(int argc UNUSED_PARAM, char
  # else
        /* -w is not supported, only -Z and/or -T */
        opt_complementary = "-";
--      opts = getopt32(argv, IF_SELINUX("Z")IF_FEATURE_SHOW_THREADS("T"));
-+      opts = getopt32(argv, IF_SELINUX("Z")IF_FEATURE_SHOW_THREADS("T")"ANdeagrxCGUgpstuUojOlFfsvuXVmMLScnfyHw", NULL);
+-      opts = getopt32(argv, IF_SELINUX("Z")IF_FEATURE_SHOW_THREADS("T")IF_FEATURE_PS_LONG("l"));
++      opts = getopt32(argv, IF_SELINUX("Z")IF_FEATURE_SHOW_THREADS("T")IF_FEATURE_PS_LONG("l")
++                                      "ANdeagrxCGUgpstuUojOFfsvuXVmMLScnfyHw", NULL);
  # endif
- #endif
  
+ # if ENABLE_SELINUX