summaryrefslogtreecommitdiffstats
path: root/patches/procps-3.2.7/generic/55_pgrep_usage_exitcode.dpatch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/procps-3.2.7/generic/55_pgrep_usage_exitcode.dpatch')
-rw-r--r--patches/procps-3.2.7/generic/55_pgrep_usage_exitcode.dpatch17
1 files changed, 17 insertions, 0 deletions
diff --git a/patches/procps-3.2.7/generic/55_pgrep_usage_exitcode.dpatch b/patches/procps-3.2.7/generic/55_pgrep_usage_exitcode.dpatch
new file mode 100644
index 000000000..c6dabb5d7
--- /dev/null
+++ b/patches/procps-3.2.7/generic/55_pgrep_usage_exitcode.dpatch
@@ -0,0 +1,17 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 55_pgrep_usage_exitcode.dpatch by <hesso@pool.math.tu-berlin.de>
+##
+## DP: Distinguish between invalid commandline parameters and '-?'.
+
+@DPATCH@
+--- procps-3.2.7.orig/pgrep.c 2007-08-06 16:35:30.000000000 +0200
++++ procps-3.2.7/pgrep.c 2007-08-06 16:35:06.000000000 +0200
+@@ -678,7 +678,7 @@
+ // case 'z': // Solaris: match by zone ID
+ // break;
+ case '?':
+- usage (opt);
++ usage (optopt?optopt:opt);
+ break;
+ }
+ }