Re: Bug in canonicalize_path()

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Bug in canonicalize_path()
Дата
Msg-id 22286.1123816448@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Bug in canonicalize_path()  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: Bug in canonicalize_path()  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Bug in canonicalize_path()
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Bug in canonicalize_path()