httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: httpd-2.0/server util_script.c
Date Mon, 10 Sep 2001 03:56:45 GMT
wrowe       01/09/09 20:56:45

  Modified:    server   util_script.c
  Log:
    This patch is insufficient (highlights an existing problem) for OS2 and
    Netware, especially, and any other platform with odd native requirements
    for the PATH_TRANSLATED variable (where it should look like a filesystem
    entity for non-unixish cgi's.)
  
  Revision  Changes    Path
  1.63      +2 -5      httpd-2.0/server/util_script.c
  
  Index: util_script.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/util_script.c,v
  retrieving revision 1.62
  retrieving revision 1.63
  diff -u -r1.62 -r1.63
  --- util_script.c	2001/09/04 01:38:01	1.62
  +++ util_script.c	2001/09/10 03:56:45	1.63
  @@ -390,13 +390,10 @@
   	    char *pt = apr_pstrcat(r->pool, pa_req->filename, pa_req->path_info,
   				  NULL);
   #ifdef WIN32
  -	    char buffer[HUGE_STRING_LEN];
   	    /* We need to make this a real Windows path name */
  -	    GetFullPathName(pt, HUGE_STRING_LEN, buffer, NULL);
  -	    apr_table_setn(e, "PATH_TRANSLATED", apr_pstrdup(r->pool, buffer));
  -#else
  -	    apr_table_setn(e, "PATH_TRANSLATED", pt);
  +	    apr_filepath_merge(&pt, "", pt, APR_FILEPATH_NATIVE, r->pool);
   #endif
  +	    apr_table_setn(e, "PATH_TRANSLATED", pt);
   	}
   	ap_destroy_sub_req(pa_req);
       }
  
  
  

Mime
View raw message