File: 55_pgrep_usage_exitcode.dpatch

package info (click to toggle)
procps 1%3A3.2.7-11
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,620 kB
  • ctags: 1,764
  • sloc: ansic: 14,645; sh: 5,299; makefile: 216
file content (17 lines) | stat: -rw-r--r-- 477 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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;
 		}
 	}