Re: Bug in canonicalize_path() - Mailing list pgsql-patches

From Tom Lane
Subject Re: Bug in canonicalize_path()
Date
Msg-id 22286.1123816448@sss.pgh.pa.us
Whole thread Raw
In response to Re: Bug in canonicalize_path()  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: Bug in canonicalize_path()
List pgsql-patches
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> But what about "usr/local/../../.."?

What about it?  The case of /usr/local/../../.. is handled correctly,
and the case where it's an underspecified relative path doesn't seem
that interesting to me --- certainly that is not so important that we
should get the wrong answer on cases that *are* plausible.

Most of the uses of canonicalize_path are on paths that are required to
be absolute, anyway.

It wouldn't be too implausible to error out if pending_strips>0 after
exiting the loop.

            regards, tom lane

pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Bug in canonicalize_path()
Next
From: Bruce Momjian
Date:
Subject: Re: Bug in canonicalize_path()