Re: Add remove duplicate slashes to canonicalize_path() - Mailing list pgsql-patches

From Reini Urban
Subject Re: Add remove duplicate slashes to canonicalize_path()
Date
Msg-id 418DDD3D.70507@x-ray.at
Whole thread Raw
In response to Add remove duplicate slashes to canonicalize_path()  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-patches
Bruce Momjian schrieb:
> The following applied patch removes duplicate slashes from the path in
> canonicalize_path().  It preserve double leading slashes on Win32.
>
> e.g.    ////a////b => /a/b
snip
>    *        o  make Win32 path use Unix slashes
>    *        o  remove trailing quote on Win32
>    *        o  remove trailing slash
>    *        o  remove trailing '.'
>    *        o  process trailing '..' ourselves

At the first glance I thought this will break Win95 (via cygwin), but it
really is ok, 'cause all the paths go through cygwin.
--
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/

pgsql-patches by date:

Previous
From: Markus Bertheau
Date:
Subject: Re: contrib/xml2: add function xml_encode_special_chars
Next
From: Simon Riggs
Date:
Subject: Re: contrib/xml2: add function xml_encode_special_chars