https://github.com/postgres/postgres
Revision 9e70e6564fc816c96643564ab6f906a75e0a3308 authored by Michael Paquier on 12 January 2024, 04:53:14 UTC, committed by Michael Paquier on 12 January 2024, 04:53:14 UTC
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 9886744a361b 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
1 parent 69c12c4
History
Tip revision: 9e70e6564fc816c96643564ab6f906a75e0a3308 authored by Michael Paquier on 12 January 2024, 04:53:14 UTC
pg_ctl: Disable autoruns for cmd.exe on Windows
Tip revision: 9e70e65
File Mode Size
config
contrib
doc
src
.dir-locals.el -rw-r--r-- 730 bytes
.git-blame-ignore-revs -rw-r--r-- 8.0 KB
.gitattributes -rw-r--r-- 1.5 KB
.gitignore -rw-r--r-- 515 bytes
COPYRIGHT -rw-r--r-- 1.2 KB
GNUmakefile.in -rw-r--r-- 4.2 KB
HISTORY -rw-r--r-- 284 bytes
Makefile -rw-r--r-- 1.6 KB
README -rw-r--r-- 1.2 KB
README.git -rw-r--r-- 728 bytes
aclocal.m4 -rw-r--r-- 445 bytes
configure -rwxr-xr-x 575.2 KB
configure.in -rw-r--r-- 86.0 KB

README

back to top