Re: BUG #16080: pg_ctl is failed if a fake cmd.exe exist in thecurrent directory.

Поиск
Список
Период
Сортировка
От Juan José Santamaría Flecha
Тема Re: BUG #16080: pg_ctl is failed if a fake cmd.exe exist in thecurrent directory.
Дата
Msg-id CAC+AXB3Rj1KkQtLMGqpO5q9_+50Rzre_u4KZjXerX+kHfWsJ2A@mail.gmail.com
обсуждение исходный текст
Ответ на Re: BUG #16080: pg_ctl is failed if a fake cmd.exe exist in the current directory.  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: BUG #16080: pg_ctl is failed if a fake cmd.exe exist in the current directory.  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs

On Sat, Oct 26, 2019 at 3:36 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:

I do not think this is a bug.  There are probably thousands of ways to
break Postgres by misconfiguring your system, and this is one of 'em.


There is a difference in the behaviour for the WIN32 port. In other platforms execl() is called from "src/bin/pg_ctl/pc_ctl" with the full path ("/bin/sh"), but for WIN32 the function CreateProcessAsUser() calls the CMD command without a path, and this function has a search logic of its own [1].

If even this difference out is of any value I can propose a patch.

[1] https://docs.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-createprocessasusera

Regards,

Juan José Santamaría Flecha 

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #16080: pg_ctl is failed if a fake cmd.exe exist in the current directory.
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #16080: pg_ctl is failed if a fake cmd.exe exist in the current directory.