apache2 package: patch for ASF Bugzilla Bug 28815
Dear Team,
please integrate following patch into the apache2-tree:
ASF Bugzilla Bug 28815
ErrorLog piped command doesn't handle redirections
http://issues.apache.org/bugzilla/show_bug.cgi?id=28815
Working file for "debian/patches" see attachment.
Best Regards
Steffen Chmil
Index: server/log.c
===================================================================
RCS file: /home/cvs/httpd-2.0/server/log.c,v
retrieving revision 1.143
diff -u -r1.143 log.c
--- build-tree/apache2/server/log.c 9 Feb 2004 20:40:49 -0000 1.143
+++ build-tree/apache2/server/log.c 6 May 2004 19:16:09 -0000
@@ -197,6 +197,7 @@
apr_proc_t *procnew;
if (((rc = apr_procattr_create(&procattr, p)) == APR_SUCCESS)
+ && ((rc = apr_procattr_cmdtype_set(procattr, APR_SHELLCMD)) == APR_SUCCESS)
&& ((rc = apr_procattr_io_set(procattr,
APR_FULL_BLOCK,
APR_NO_PIPE,
@@ -722,6 +723,8 @@
apr_status_t status;
if (((status = apr_procattr_create(&procattr, pl->p)) != APR_SUCCESS) ||
+ ((status = apr_procattr_cmdtype_set(procattr, APR_SHELLCMD))
+ != APR_SUCCESS) ||
((status = apr_procattr_child_in_set(procattr,
ap_piped_log_read_fd(pl),
ap_piped_log_write_fd(pl)))
Reply to: