chiark
/
gitweb
/
~ian
/
chiark-utils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a481ab
)
prefork: Insist on script (separately) with combined options
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 17 Jul 2022 12:20:04 +0000
(13:20 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 21 Aug 2022 20:21:10 +0000
(21:21 +0100)
cgi-fcgi-interp always insists on this anyway, but prefork-interp
won't and ought to check this.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
cprogs/prefork.c
patch
|
blob
|
history
diff --git
a/cprogs/prefork.c
b/cprogs/prefork.c
index 437923f88c3dbeb2ae0e49f4552eaf0e57015adc..425974c0ad5979aa6628aa20aee7dd661bd07407 100644
(file)
--- a/
cprogs/prefork.c
+++ b/
cprogs/prefork.c
@@
-233,6
+233,9
@@
void process_opts(const char *const **argv_io) {
shbang_opts(&split_argv, cmdinfos);
/* sets interp */
+
+ if (!**argv_io)
+ badusage("no script argument (expected after combined #! options)");
} else {
shbang_opts(argv_io, cmdinfos);
}