diff --git a/httpd.c b/httpd.c index d4eb456..be56071 100644 --- a/httpd.c +++ b/httpd.c @@ -279,7 +279,7 @@ void execute_cgi(int client, const char *path, sprintf(length_env, "CONTENT_LENGTH=%d", content_length); putenv(length_env); } - execl(path, NULL); + execl(path, path, NULL); exit(0); } else { /* parent */ close(cgi_output[1]);