diff options
-rw-r--r-- | coreutils/timeout.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) | |||
155 | #endif | 155 | #endif |
156 | BB_EXECVP_or_die(argv); | 156 | BB_EXECVP_or_die(argv); |
157 | #else /* ENABLE_PLATFORM_MINGW32 */ | 157 | #else /* ENABLE_PLATFORM_MINGW32 */ |
158 | argv += optind; | ||
158 | if ((ret=mingw_spawn_proc((const char **)argv)) == -1) { | 159 | if ((ret=mingw_spawn_proc((const char **)argv)) == -1) { |
159 | xfunc_error_retval = errno == EACCES ? 126 : 127; | 160 | xfunc_error_retval = errno == EACCES ? 126 : 127; |
160 | bb_perror_msg_and_die("can't execute '%s'", argv[0]); | 161 | bb_perror_msg_and_die("can't execute '%s'", argv[0]); |