Skip to contentSkip to conversation

prlimit: improve error messages for bad --pid invocation

PATCH Applied Bernhard Voelker 2 participants 2 messages Jul 26, 2012 Util-Linux package

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 prlimit: improve error messages for bad --pid invocation

Quoted 2 lines

From 5c4f86f565c61d23a73d2aa46331edd75ec382df Mon Sep 17 00:00:00 2001

From: Bernhard Voelker <[email protected]>
Date: Thu, 26 Jul 2012 16:10:23 +0200
Subject: [PATCH] prlimit: improve error messages for bad --pid invocation

---
 sys-utils/prlimit.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
sys-utils/prlimit.c +2 -2
index c215421..2055adf 100644
@@ -579,7 +579,7 @@ int main(int argc, char **argv)
 
 		case 'p':
 			if (pid)
-				errx(EXIT_FAILURE, _("only one --pid option may be specified."));
+				errx(EXIT_FAILURE, _("option --pid may be specified only once"));
 			pid = strtos32_or_err(optarg, _("invalid PID argument"));
 			break;
 		case 'h':
@@ -610,7 +610,7 @@ int main(int argc, char **argv)
 		}
 	}
 	if (argc > optind && pid)
-		errx(EXIT_FAILURE, _("options --pid and COMMAND are mutually exclusive."));
+		errx(EXIT_FAILURE, _("options --pid and COMMAND are mutually exclusive"));
 	if (!ncolumns) {
 		/* default columns */
 		columns[ncolumns++] = COL_RES;
Signature · 1 line
1.7.7
maintainer Applied
#1 lore raw
Quoted 2 lines · Bernhard Voelker
 sys-utils/prlimit.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Applied, thanks.

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