From c61e14d3a8412cd50d98aab604e607692c844c8a Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 14 Apr 2024 21:33:30 +0200 Subject: Adding upstream version 2.40. Signed-off-by: Daniel Baumann --- schedutils/chrt.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'schedutils/chrt.c') diff --git a/schedutils/chrt.c b/schedutils/chrt.c index 250d878..d343cec 100644 --- a/schedutils/chrt.c +++ b/schedutils/chrt.c @@ -90,9 +90,9 @@ static void __attribute__((__noreturn__)) usage(void) fputs(_(" -v, --verbose display status information\n"), out); fputs(USAGE_SEPARATOR, out); - printf(USAGE_HELP_OPTIONS(22)); + fprintf(out, USAGE_HELP_OPTIONS(22)); - printf(USAGE_MAN_TAIL("chrt(1)")); + fprintf(out, USAGE_MAN_TAIL("chrt(1)")); exit(EXIT_SUCCESS); } @@ -485,6 +485,8 @@ int main(int argc, char **argv) if (!ctl->pid) { argv += optind + 1; + if (strcmp(argv[0], "--") == 0) + argv++; execvp(argv[0], argv); errexec(argv[0]); } -- cgit v1.2.3