Re: is_absolute_path incorrect on Windows

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: is_absolute_path incorrect on Windows
Дата
Msg-id 201102031820.p13IKQL08390@momjian.us
обсуждение исходный текст
Ответ на Re: is_absolute_path incorrect on Windows  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: is_absolute_path incorrect on Windows  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane wrote:
> Bruce Momjian <bruce@momjian.us> writes:
> > I have reviewed is_absolute_path() and have implemented
> > path_is_relative_and_below_cwd() to cleanly handle cases like 'E:abc' on
> > Win32;  patch attached.
> 
> This patch appears to remove some security-critical restrictions.
> Why did you delete the path_contains_parent_reference calls?

They are now in path_is_relative_and_below_cwd(), and I assume we can
allow ".." for an absolute path in these cases, i.e. it has to match the
data or log path we defined, and I don't see a general reason to prevent
".." in absolute paths, only relative ones.

--  Bruce Momjian  <bruce@momjian.us>        http://momjian.us EnterpriseDB
http://enterprisedb.com
 + It's impossible for everything to be true. +


В списке pgsql-hackers по дате отправления:

Предыдущее
От: "David E. Wheeler"
Дата:
Сообщение: Re: ALTER EXTENSION UPGRADE, v3
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: arrays as pl/perl input arguments [PATCH]