httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <...@algroup.co.uk>
Subject Re: [PATCH] PR1265: proxy caching broken on win32
Date Tue, 30 Dec 1997 12:13:58 GMT
Marc Slemko wrote:
> 
> Index: util_win32.c
> ===================================================================
> RCS file: /export/home/cvs/apachen/src/os/win32/util_win32.c,v
> retrieving revision 1.7
> diff -u -r1.7 util_win32.c
> --- util_win32.c        1997/12/26 15:29:40     1.7
> +++ util_win32.c        1997/12/30 08:14:32
> @@ -58,6 +58,8 @@
>  {
>      char buf[HUGE_STRING_LEN];
> 
> +    if (!strncmp(szFile, "proxy:", 6))
> +       return pstrdup(pPool, szFile);
>      sub_canonical_filename(buf, szFile);
>      buf[0]=tolower(buf[0]);
>      return pstrdup(pPool, buf);

I considered doing it this way, but isn't it symptomatic of a deeper
problem (i.e. that things starting "proxy:" should never be treated as
filenames)? What happens under Unix if I make files called
proxy:somethingclever in appropriate places?

Cheers,

Ben.

-- 
Ben Laurie            |Phone: +44 (181) 735 0686|Apache Group member
Freelance Consultant  |Fax:   +44 (181) 735 0689|http://www.apache.org
and Technical Director|Email: ben@algroup.co.uk |Apache-SSL author
A.L. Digital Ltd,     |http://www.algroup.co.uk/Apache-SSL
London, England.      |"Apache: TDG" http://www.ora.com/catalog/apache

Mime
View raw message