rj...@apache.org wrote: > Author: rjung > Date: Thu May 14 12:59:25 2009 > New Revision: 774755 > > URL: http://svn.apache.org/viewvc?rev=774755&view=rev > Log: > Allow relative pathnames for piped loggers in ErrorLog.
> --- httpd/httpd/trunk/server/log.c (original) > +++ httpd/httpd/trunk/server/log.c Thu May 14 12:59:25 2009 > @@ -320,16 +320,24 @@ > > if (*s->error_fname == '|') { > apr_file_t *dummy = NULL; > + fname = ap_server_root_relative(p, s->error_fname + 1); > + > + if (!fname) { > + ap_log_error(APLOG_MARK, APLOG_STARTUP, APR_EBADPATH, NULL, > + "%s: Invalid error log path %s.", > + ap_server_argv0, s->error_fname); > + return DONE; > + } -1 for bug. This patch presumes "proggy foo bar" is a fspec, it's not, it is a command line. It results in "|c:/program files/apache/bin/proggy foo bar" if you are lucky, but since "bin/proggy foo bar" doesn't really exist, this is all free to fail, never mind that c:/... isn't properly quoted. Please revert.