summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2024-01-11 10:39:58 +0900
committerMichael Paquier <michael@paquier.xyz>2024-01-11 10:39:58 +0900
commitb83747a8a65b6c4b7b9afea4e50b00cb0cd64ee5 (patch)
treea69e76c200fb61eac462c1d07335232cf7b2b5b0
parent3d185cfc09c32b1f250adfbb62c0c7a3f96c5af2 (diff)
pg_regress: Disable autoruns for cmd.exe on Windows
This is similar to 9886744a361b, to prevent the execution of other programs due to autorun configurations which could influence the postmaster startup. Like the other change, no backpatch is done. Discussion: https://postgr.es/m/20230922.161551.320043332510268554.horikyota.ntt@gmail.com
-rw-r--r--src/test/regress/pg_regress.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/regress/pg_regress.c b/src/test/regress/pg_regress.c
index c20027d14f9..c894005dac0 100644
--- a/src/test/regress/pg_regress.c
+++ b/src/test/regress/pg_regress.c
@@ -1242,7 +1242,7 @@ spawn_process(const char *cmdline)
comspec = "CMD";
memset(&pi, 0, sizeof(pi));
- cmdline2 = psprintf("\"%s\" /c \"%s\"", comspec, cmdline);
+ cmdline2 = psprintf("\"%s\" /d /c \"%s\"", comspec, cmdline);
if (!CreateRestrictedProcess(cmdline2, &pi))
exit(2);