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

From: Juan José Santamaría Flecha <juanjo(dot)santamaria(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: cilizili(at)protonmail(dot)com, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #16080: pg_ctl is failed if a fake cmd.exe exist in the current directory.
Date: 2019-10-26 17:33:02
Message-ID: CAC+AXB2GhuACSEdueBnCojvTeg=4Y0enyvnBiX7LTjFXNrKK0w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Sat, Oct 26, 2019 at 5:20 PM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

>
> 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.
>
>
The environment variable COMSPEC [1] should point to the right location.

> 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).
>
>
Totally agree, if this not is an improvement there is nothing to fix.

[1] https://en.wikipedia.org/wiki/COMSPEC

Regards,

Juan José Santamaría Flecha

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2019-10-26 17:44:00 Re: BUG #16080: pg_ctl is failed if a fake cmd.exe exist in the current directory.
Previous Message Tom Lane 2019-10-26 15:20:04 Re: BUG #16080: pg_ctl is failed if a fake cmd.exe exist in the current directory.