Skip to contentSkip to conversation

prlimit: show all limits if called without options

PATCH Applied Bernhard Voelker 2 participants 2 messages Nov 14, 2011 – Nov 16, 2011 Util-Linux package

lore
Share & tools
lore
#0 lore raw

PATCH 1/15 prlimit: show all limits if called without options

[PATCH 01/15] prlimit: show all limits if called without options

Fix option parsing: prlimit ran into usage() if called without arguments which should only be done for surplus arguments. Instead, it should display all limits.

---
 sys-utils/prlimit.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
sys-utils/prlimit.c +1 -2
index d3f3503..fed4f38 100644
@@ -581,8 +581,7 @@ int main(int argc, char **argv)
 			break;
 		}
 	}
-
-	if (argc == 1)
+	if (argc > optind)
 		usage(stderr);
 
 	if (!ncolumns) {
maintainer Applied
#1 lore raw
Quoted 2 lines · Bernhard Voelker
 sys-utils/prlimit.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

Applied, thanks.

Signature · 2 lines
 Karel Zak  <[email protected]>
 http://karelzak.blogspot.com