Return-Path: Delivered-To: apmail-httpd-bugs-archive@www.apache.org Received: (qmail 1194 invoked from network); 6 May 2004 18:19:40 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 6 May 2004 18:19:40 -0000 Received: (qmail 74714 invoked by uid 500); 6 May 2004 18:19:28 -0000 Delivered-To: apmail-httpd-bugs-archive@httpd.apache.org Received: (qmail 74677 invoked by uid 500); 6 May 2004 18:19:28 -0000 Mailing-List: contact bugs-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: "Apache HTTPD Bugs Notification List" Delivered-To: mailing list bugs@httpd.apache.org Received: (qmail 74596 invoked from network); 6 May 2004 18:19:27 -0000 Received: from unknown (HELO exchange.sun.com) (192.18.33.10) by daedalus.apache.org with SMTP; 6 May 2004 18:19:27 -0000 Received: (qmail 10322 invoked by uid 50); 6 May 2004 18:20:23 -0000 Date: 6 May 2004 18:20:23 -0000 Message-ID: <20040506182023.10321.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: bugs@httpd.apache.org Cc: Subject: DO NOT REPLY [Bug 28815] New: - ErrorLog piped command doesn't handle redirections X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . 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