Re: Add remove duplicate slashes to canonicalize_path()

From: Reini Urban <rurban(at)x-ray(dot)at>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Add remove duplicate slashes to canonicalize_path()
Date: 2004-11-07 08:30:53
Message-ID: 418DDD3D.70507@x-ray.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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/

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Simon Riggs 2004-11-07 08:33:10 Re: contrib/xml2: add function xml_encode_special_chars
Previous Message Reini Urban 2004-11-07 08:20:57 Re: cygwin build failure