postgres.git / summary / log / commit / refs

commit    b83747a8a65b6c4b7b9afea4e50b00cb0cd64ee5
Author:   Michael Paquier <michael@paquier.xyz>
Date:     Thu Jan 11 01:39:58 2024 +0000
First released in: 17.0, 12.18, 13.14, 14.11, 15.6, 16.2

    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


src/test/regress/pg_regress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); [parent: 3d185cfc09c3]