httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Behlendorf <br...@hyperreal.org>
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.


	Brian


>>>>

<excerpt>Delivered-To: brian@hyperreal.org 

Delivered-To: apache-bugs@apache.org 

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

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

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

To: apache-bugs@apache.org 

Subject: Filenames containing whitespace characters 


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


Description: 

    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
character[s] 

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

    <bold>everything OK</bold>. 


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

       Example: 

        current cmd string: 

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


<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, 

<<mailto:slivins@usa.net>Serg Slivin <<slivins@usa.net> 

  

</excerpt><<<<<<<<




--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--

pure chewing satisfaction                                  brian@apache.org

                                                        brian@hyperreal.org

Mime
View raw message