From cb25b1222e2b84e49022463e01d8a1f642940438 Mon Sep 17 00:00:00 2001 From: Jakub Skopal Date: Mon, 6 Sep 1999 01:33:13 +0000 Subject: [PATCH] Corrected the argument-list for getopt. -c expects argument. --- cgi_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cgi_main.c b/cgi_main.c index e6241ea09d..ae435e39e8 100644 --- a/cgi_main.c +++ b/cgi_main.c @@ -305,7 +305,7 @@ any .htaccess restrictions anywhere on your site you can leave doc_root undefine if (!cgi) { /* never execute the arguments if you are a CGI */ request_info.php_argv0 = NULL; - while ((c = getopt(argc, argv, "cd:qvisnaeh?vf:")) != -1) { + while ((c = getopt(argc, argv, "c:d:qvisnaeh?vf:")) != -1) { switch (c) { case 'f': if (!cgi_started){ -- 2.40.0