chiark / gitweb /
cgi-fcgi-interp: Do not eat an option in squashed arg style
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 22 Mar 2016 14:26:42 +0000 (14:26 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 22 Mar 2016 14:26:42 +0000 (14:26 +0000)
cprogs/cgi-fcgi-interp.c

index 0fdb88e..d2681cf 100644 (file)
@@ -279,6 +279,7 @@ int main(int argc, const char *const *argv) {
     argv += 2; /* eat argv[0] and smashedopt */
     const char *split_args[MAX_OPTS+1];
     int split_argc = 0;
+    split_args[split_argc++] = argv[0];
     for (;;) {
       if (split_argc >= MAX_OPTS) errx(127,"too many options in combined arg");
       split_args[split_argc++] = smashedopt;