httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 28815] New: - ErrorLog piped command doesn't handle redirections
Date Thu, 06 May 2004 18:20:23 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28815>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28815

ErrorLog piped command doesn't handle redirections

           Summary: ErrorLog piped command doesn't handle redirections
           Product: Apache httpd-2.0
           Version: 2.0.49
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: rmiller@duskglow.com


In apache 1.3 if you use a command as such: 
 
ErrorLog "|command >> filename" 
 
It will work, as there is an implicit passthrough to a shell. 
 
In 2.0.49, this behavior is still documented, but it doesn't appear to work.  
Replacing it with: 
 
ErrorLog "|/bin/sh -c \"command >> filename\"" 
 
does work. 
 
On looking at the code, it appears that there is an APR_SHELLCMD procattr, 
which must be set upon calling apr_create_proc if you want it to pass the child 
process through /bin/sh.  This is not set in the code that opens the error log 
child process. 
 
I'm 100% certain that there is a bug - The question is whether it is in the 
documentation or in the core.  I leave it to you to make that determination. 
 
Thanks. 
 
--Russell

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message