diff options
author | Jakub Skopal <riffraff@php.net> | 1999-09-06 01:33:13 +0000 |
---|---|---|
committer | Jakub Skopal <riffraff@php.net> | 1999-09-06 01:33:13 +0000 |
commit | cb25b1222e2b84e49022463e01d8a1f642940438 (patch) | |
tree | b0368849e9f681408e43f3a3746215fde0b6d7d7 | |
parent | 5cc16d86b069bcc58dda02a96dc50a10e6d25f27 (diff) | |
download | php-git-cb25b1222e2b84e49022463e01d8a1f642940438.tar.gz |
Corrected the argument-list for getopt. -c expects argument.
-rw-r--r-- | cgi_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
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){ |