httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n.@apache.org
Subject cvs commit: httpd-2.0/modules/loggers mod_log_forensic.c
Date Sat, 21 Feb 2004 15:45:02 GMT
nd          2004/02/21 07:45:02

  Modified:    modules/loggers mod_log_forensic.c
  Log:
  allow log pipes to be relative to serverroot as well
  
  Revision  Changes    Path
  1.15      +3 -2      httpd-2.0/modules/loggers/mod_log_forensic.c
  
  Index: mod_log_forensic.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/loggers/mod_log_forensic.c,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -u -r1.14 -r1.15
  --- mod_log_forensic.c	21 Feb 2004 15:23:24 -0000	1.14
  +++ mod_log_forensic.c	21 Feb 2004 15:45:02 -0000	1.15
  @@ -74,8 +74,9 @@
   
       if (*cfg->logname == '|') {
           piped_log *pl;
  +        const char *pname = ap_server_root_relative(p, cfg->logname + 1);
   
  -        pl = ap_open_piped_log(p, cfg->logname+1);
  +        pl = ap_open_piped_log(p, pname);
           if (pl == NULL) {
               ap_log_error(APLOG_MARK, APLOG_ERR, 0, s,
                            "couldn't spawn forensic log pipe %s", cfg->logname);
  @@ -84,7 +85,7 @@
           cfg->fd = ap_piped_log_write_fd(pl);
       }
       else {
  -        char *fname = ap_server_root_relative(p, cfg->logname);
  +        const char *fname = ap_server_root_relative(p, cfg->logname);
           apr_status_t rv;
   
           if ((rv = apr_file_open(&cfg->fd, fname,
  
  
  

Mime
View raw message