[PATCH] prlimit: improve error messages for bad --pid invocation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>From 5c4f86f565c61d23a73d2aa46331edd75ec382df Mon Sep 17 00:00:00 2001
From: Bernhard Voelker <mail@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 26 Jul 2012 16:10:23 +0200
Subject: [PATCH] prlimit: improve error messages for bad --pid invocation

Signed-off-by: Bernhard Voelker <mail@xxxxxxxxxxxxxxxxxxx>
---
 sys-utils/prlimit.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys-utils/prlimit.c b/sys-utils/prlimit.c
index c215421..2055adf 100644
--- a/sys-utils/prlimit.c
+++ b/sys-utils/prlimit.c
@@ -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;
-- 
1.7.7


--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux