From: Bernhard Voelker Date: Thu, 26 Jul 2012 14:10:23 +0000 (+0200) Subject: prlimit: improve error messages for bad --pid invocation X-Git-Tag: v2.22-rc1~24 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a1ec61372cde0c39357ea1760ca3025cfa79f5b4;p=thirdparty%2Futil-linux.git prlimit: improve error messages for bad --pid invocation Signed-off-by: Bernhard Voelker --- diff --git a/sys-utils/prlimit.c b/sys-utils/prlimit.c index c21542144a..2055adf753 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;