From: Ian Jackson Date: Sun, 17 Jul 2022 11:44:47 +0000 (+0100) Subject: prefork: Remove a wrong check X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=bed8c01a107d494e35578bcaeb6c4d374405d00c;p=chiark-utils.git prefork: Remove a wrong check This is just not true at all. Perhaps it was to check for malloc failure? Anyway, split_argv comes from split_argv and shbang_opts never sets it to zero. Signed-off-by: Ian Jackson --- diff --git a/cprogs/prefork.c b/cprogs/prefork.c index e352238..f306ffc 100644 --- a/cprogs/prefork.c +++ b/cprogs/prefork.c @@ -334,7 +334,6 @@ const char *process_opts(int argc, const char *const *argv) { shbang_opts(&split_argv, cmdinfos); /* sets interp */ - if (!split_argv) badusage("combined arg too many non-option arguments"); } else { shbang_opts(&argv, cmdinfos); }