From 4ddcb317ac954cc371a86d5873ee231c3b8684ec Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Sun, 29 Mar 2020 09:30:21 +0100 Subject: timeout: fix utter brokenness The merge from upstream (commit d89ced75b, 2018-09-10) completely broke timeout. Apply a belated fix. --- coreutils/timeout.c | 1 + 1 file changed, 1 insertion(+) diff --git a/coreutils/timeout.c b/coreutils/timeout.c index 258cd276f..1a9660183 100644 --- a/coreutils/timeout.c +++ b/coreutils/timeout.c @@ -155,6 +155,7 @@ int timeout_main(int argc UNUSED_PARAM, char **argv) #endif BB_EXECVP_or_die(argv); #else /* ENABLE_PLATFORM_MINGW32 */ + argv += optind; if ((ret=mingw_spawn_proc((const char **)argv)) == -1) { xfunc_error_retval = errno == EACCES ? 126 : 127; bb_perror_msg_and_die("can't execute '%s'", argv[0]); -- cgit v1.2.3-55-g6feb