prlimit: improve error messages for bad --pid invocation
PATCH 1/1 prlimit: improve error messages for bad --pid invocation
Quoted 2 lines
From
5c4f86f565c61d23a73d2aa46331edd75ec382dfMon 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
Signed-off-by Bernhard Voelker <[email protected]>
--- sys-utils/prlimit.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
sys-utils/prlimit.c +2 -2
@@ -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
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