httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Behlendorf <>
Subject Filenames containing whitespace characters
Date Mon, 22 Jun 1998 05:56:27 GMT

If someone with more knowlege about these areas could respond I'd
appreciate it.





Date: Fri, 19 Jun 1998 19:05:49 +0400 

From: "Ñåðãåé Ñëèâèí"  

X-Mailer: Mozilla 4.05 [en] (WinNT; I) 


Subject: Filenames containing whitespace characters 

I found the following bug in Apache Web Server 1.3.0 for Windows(NT). 


    If system path to a cgi script contains whitespace character[s] 

        (example - "d:\Program Files\Apache
Group\Apache\cgi-bin\MyCgi.bat" ) 

    the server reports an error-> 

<bold>(2)No such file or directory: couldn't spawn child process:
d:/program files/apache group/apache/cgi-bin/mycgi.bat.</bold> 


    If system path to a cgi script does not contain whitespace

        (example - "d:\apache\cgi-bin\MyCgi.bat" ) 

    <bold>everything OK</bold>. 

    I think that you are to force filename quotation while executing
shell process. 


        current cmd string: 

<bold>>cmd.exe  d:\Program Files\Apache Group\Apache\cgi-bin\MyCgi.bat 

<bold>        </bold>but should be 

>cmd.exe  <bold>"</bold>d:\Program Files\Apache
Group\Apache\cgi-bin\MyCgi.bat<bold>"</bold>  /C 

(file to be patched is <bold>util_script.c - ap_call_exec()</bold>) 

Best regards, 

<<>Serg Slivin <<> 




pure chewing satisfaction                        


View raw message