httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexei Kosut <ako...@hyperreal.org>
Subject cvs commit: apache/src util_script.c
Date Mon, 04 Aug 1997 21:10:18 GMT
akosut      97/08/04 14:10:17

  Modified:    src       util_script.c
  Log:
  Correctly set PATH_TRANSLATED to a Windows filename when running under
  Windows.
  
  Revision  Changes    Path
  1.68      +12 -4     apache/src/util_script.c
  
  Index: util_script.c
  ===================================================================
  RCS file: /export/home/cvs/apache/src/util_script.c,v
  retrieving revision 1.67
  retrieving revision 1.68
  diff -u -r1.67 -r1.68
  --- util_script.c	1997/07/24 04:24:00	1.67
  +++ util_script.c	1997/08/04 21:10:16	1.68
  @@ -305,10 +305,18 @@
   	 * is pointing to an object which doesn't exist.
   	 */
   	
  -	if (pa_req->filename)
  -	    table_set (e, "PATH_TRANSLATED",
  -		       pstrcat (r->pool, pa_req->filename, pa_req->path_info,
  -				NULL));
  +	if (pa_req->filename) {
  +	    char buffer[HUGE_STRING_LEN];
  +	    char *pt = pstrcat (r->pool, pa_req->filename, pa_req->path_info,
  +				NULL);
  +#ifdef WIN32
  +	    /* We need to make this a real Windows path name */
  +	    GetFullPathName(pt, HUGE_STRING_LEN, buffer, NULL);
  +	    table_set (e, "PATH_TRANSLATED", pstrdup(r->pool, buffer));
  +#else
  +	    table_set (e, "PATH_TRANSLATED", pt);
  +#endif
  +	}
       }
   }
   
  
  
  

Mime
View raw message