]> git.ipfire.org Git - thirdparty/util-linux.git/blobdiff - sys-utils/prlimit.c
su: change error message
[thirdparty/util-linux.git] / sys-utils / prlimit.c
index 44db54ca566f84bd487840db284ae52445ee99b6..6f806362d1f0662e9930b071fb22b85b8b348dcf 100644 (file)
@@ -172,8 +172,8 @@ static void __attribute__((__noreturn__)) usage(void)
                "     --noheadings       don't print headings\n"
                "     --raw              use the raw output format\n"
                "     --verbose          verbose output\n"
-               " -h, --help             display this help and exit\n"
-               " -V, --version          output version information and exit\n"), out);
+               ), out);
+       printf(USAGE_HELP_OPTIONS(24));
 
        fputs(_("\nResources Options:\n"), out);
        fputs(_(" -c, --core             maximum size of core files created\n"
@@ -198,7 +198,7 @@ static void __attribute__((__noreturn__)) usage(void)
        for (i = 0; i < ARRAY_SIZE(infos); i++)
                fprintf(out, " %11s  %s\n", infos[i].name, _(infos[i].help));
 
-       fprintf(out, USAGE_MAN_TAIL("prlimit(1)"));
+       printf(USAGE_MAN_TAIL("prlimit(1)"));
 
        exit(EXIT_SUCCESS);
 }
@@ -639,7 +639,7 @@ int main(int argc, char **argv)
        if (argc > optind) {
                /* prlimit [options] COMMAND */
                execvp(argv[optind], &argv[optind]);
-               err(EXIT_FAILURE, _("failed to execute %s"), argv[optind]);
+               errexec(argv[optind]);
        }
 
        return EXIT_SUCCESS;