postgresql/src/bin
Michael Paquier 33d1be06ae pg_ctl: Disable autoruns for cmd.exe on Windows
On Windows, cmd.exe is used to launch the postmaster process to ease its
redirection setup.  However, cmd.exe may execute other programs at
startup due to autorun configurations, which could influence the
postmaster startup.  This patch adds /D flag to the launcher cmd.exe
command line to disable autorun settings written in the registry.

This was originally applied on HEAD as of 9886744a36 without a
backpatch, but the patch has survived CI and buildfarm cycles.  I have
checked that cmd /d exists down to Windows XP, which should make this
change work correctly in the oldest branches still supported.

Reported-by: Hayato Kuroda
Author: Kyotaro Horiguchi
Reviewed-by: Robert Haas, Michael Paquier
Discussion: https://postgr.es/m/20230922.161551.320043332510268554.horikyota.ntt@gmail.com
Backpatch-through: 12
2024-01-12 13:53:10 +09:00
..
initdb Translation updates 2023-11-06 13:16:22 +01:00
pg_amcheck Handle DROP DATABASE getting interrupted 2023-07-13 13:04:45 -07:00
pg_archivecleanup Translation updates 2023-05-08 14:29:57 +02:00
pg_basebackup Translation updates 2023-11-06 13:16:22 +01:00
pg_checksums Translation updates 2023-05-08 14:29:57 +02:00
pg_config Translation updates 2023-11-06 13:16:22 +01:00
pg_controldata Translation updates 2023-11-06 13:16:22 +01:00
pg_ctl pg_ctl: Disable autoruns for cmd.exe on Windows 2024-01-12 13:53:10 +09:00
pg_dump In pg_dump, don't dump a stats object unless dumping underlying table. 2023-12-29 10:57:11 -05:00
pg_resetwal Translation updates 2023-11-06 13:16:22 +01:00
pg_rewind Translation updates 2023-11-06 13:16:22 +01:00
pg_test_fsync Translation updates 2023-05-08 14:29:57 +02:00
pg_test_timing Translation updates 2023-05-08 14:29:57 +02:00
pg_upgrade Fix path of regress shared library in pg_upgrade test 2023-12-08 10:37:37 +09:00
pg_verifybackup Translation updates 2023-11-06 13:16:22 +01:00
pg_waldump Translation updates 2023-11-06 13:16:22 +01:00
pgbench Don't use pgbench -j in tests 2023-12-04 14:00:51 +01:00
pgevent Update copyright for 2022 2022-01-07 19:04:57 -05:00
psql Translation updates 2023-11-06 13:16:22 +01:00
scripts Translation updates 2023-11-06 13:16:22 +01:00
Makefile Update copyright for 2022 2022-01-07 19:04:57 -05:00