Re: BUG #16080: pg_ctl is failed if a fake cmd.exe exist in the current directory.
В списке pgsql-bugs по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: BUG #16080: pg_ctl is failed if a fake cmd.exe exist in the current directory. |
| Дата | |
| Msg-id | 26128.1572103204@sss.pgh.pa.us обсуждение |
| Ответ на | Re: BUG #16080: pg_ctl is failed if a fake cmd.exe exist in thecurrent directory. (Juan José Santamaría Flecha <juanjo.santamaria@gmail.com>) |
| Ответы |
Re: BUG #16080: pg_ctl is failed if a fake cmd.exe exist in thecurrent directory.
|
| Список | pgsql-bugs |
=?UTF-8?Q?Juan_Jos=C3=A9_Santamar=C3=ADa_Flecha?= <juanjo.santamaria@gmail.com> writes:
> 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].
Right, but does cmd.exe have a well-defined location in Windows?
I don't think we can know which drive it's on, for starters.
Ultimately this seems like a problem of insecure search path,
which is not our responsibility to fix (and people would not
appreciate us trying, in many cases).
regards, tom lane
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера