PostgreSQL Bugs

Collected from the PG bugs email list.

Bug ID16080
PG Version12.0
OSMicrosoft Windows [Version 10.0.18362.418]
Opened2019-10-26 04:30:28+00
Reported bycili
StatusNew

Body of first available message related to this bug follows.

The following bug has been logged on the website:

Bug reference:      16080
Logged by:          cili
Email address:      (redacted)
PostgreSQL version: 12.0
Operating system:   Microsoft Windows [Version 10.0.18362.418]
Description:        

If a fake cmd.exe exits in the current directory, pg_ctl is failed to
start.

Instructions:
# cd %TEMP%
# "c:\Program Files\PostgreSQL\12\bin\pg_ctl.exe" initdb -D test
# copy %windir%\system32\calc.exe cmd.exe
# "c:\Program Files\PostgreSQL\12\bin\pg_ctl.exe" start -D test
waiting for server to start.... stopped waiting
pg_ctl: could not start server
Examine the log output.

Expected:
The PostgreSQL is started.

Actual:
The Windows calculator instead of PostgreSQL is started.

Messages

DateAuthorSubject
2019-10-26 04:30:28+00PG Bug reporting formBUG #16080: pg_ctl is failed if a fake cmd.exe exist in the current directory.
2019-10-26 13:36:41+00Tom LaneRe: BUG #16080: pg_ctl is failed if a fake cmd.exe exist in the current directory.
2019-10-26 14:15:04+00=?UTF-8?Q?Juan_Jos=C3=A9_Santamar=C3=ADa_Flecha?=Re: BUG #16080: pg_ctl is failed if a fake cmd.exe exist in the current directory.
2019-10-26 15:20:04+00Tom LaneRe: BUG #16080: pg_ctl is failed if a fake cmd.exe exist in the current directory.
2019-10-26 17:33:02+00=?UTF-8?Q?Juan_Jos=C3=A9_Santamar=C3=ADa_Flecha?=Re: BUG #16080: pg_ctl is failed if a fake cmd.exe exist in the current directory.
2019-10-26 17:44:00+00Tom LaneRe: BUG #16080: pg_ctl is failed if a fake cmd.exe exist in the current directory.
2019-10-27 10:07:31+00=?UTF-8?Q?Juan_Jos=C3=A9_Santamar=C3=ADa_Flecha?=Re: BUG #16080: pg_ctl is failed if a fake cmd.exe exist in the current directory.
2019-10-27 15:42:46+00Tom LaneRe: BUG #16080: pg_ctl is failed if a fake cmd.exe exist in the current directory.
2019-10-27 20:55:45+00=?UTF-8?Q?Juan_Jos=C3=A9_Santamar=C3=ADa_Flecha?=Re: BUG #16080: pg_ctl is failed if a fake cmd.exe exist in the current directory.
2019-10-28 18:16:21+00Tom LaneRe: BUG #16080: pg_ctl is failed if a fake cmd.exe exist in the current directory.