You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by jf...@apache.org on 2001/08/06 17:43:30 UTC

cvs commit: jakarta-tomcat-connectors/jk/native/apache-1.3 mod_jk.c

jfclere     01/08/06 08:43:30

  Modified:    jk/native/apache-1.3 mod_jk.c
  Log:
  Arrange jk_set_log_file: otherwise we need an absolut path for the file
  name!
  
  Revision  Changes    Path
  1.11      +9 -2      jakarta-tomcat-connectors/jk/native/apache-1.3/mod_jk.c
  
  Index: mod_jk.c
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native/apache-1.3/mod_jk.c,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- mod_jk.c	2001/08/03 14:42:45	1.10
  +++ mod_jk.c	2001/08/06 15:43:30	1.11
  @@ -61,7 +61,7 @@
    * Author:      Gal Shachor <sh...@il.ibm.com>                           *
    *              Dan Milstein <da...@shore.net>                            *
    *              Henri Gomez <hg...@slib.fr>                               *
  - * Version:     $Revision: 1.10 $                                           *
  + * Version:     $Revision: 1.11 $                                           *
    ***************************************************************************/
   
   /*
  @@ -667,7 +667,14 @@
       jk_server_conf_t *conf =
           (jk_server_conf_t *)ap_get_module_config(s->module_config, &jk_module);
   
  -    conf->log_file = log_file;
  +    if ( log_file[0] != '/' ) {
  +        /* we need an absolut path */
  +        conf->log_file = ap_server_root_relative(cmd->pool,log_file);
  +    } else
  +        conf->log_file = ap_pstrdup(cmd->pool,log_file);
  + 
  +    if (conf->log_file == NULL)
  +        return "JkLogFile file_name invalid";
   
       return NULL;
   }