]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
prlimit: improve error messages for bad --pid invocation
authorBernhard Voelker <mail@bernhard-voelker.de>
Thu, 26 Jul 2012 14:10:23 +0000 (16:10 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 26 Jul 2012 15:24:07 +0000 (17:24 +0200)
Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
sys-utils/prlimit.c

index c21542144aa5ebc1c3701c327d5e9f23fbdb2a13..2055adf7536ae434670a2e6a01742a8460ae3440 100644 (file)
@@ -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;