]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Fix new test with comma in build directory.
authorNoah Misch <noah@leadboat.com>
Sun, 26 Apr 2026 22:03:51 +0000 (15:03 -0700)
committerNoah Misch <noah@leadboat.com>
Sun, 26 Apr 2026 22:03:51 +0000 (15:03 -0700)
Quote pg_hosts.conf fields derived from the build directory, since
hba.c:next_token() treats a comma as a token separator.  Commit
4f433025f666fa4a6209f0e847715767fb1c7ace introduced pg_hosts.conf and
this test.  A build directory name containing a comma worked before that
commit.  A build directory name containing a quote character has not
worked, so don't handle that.

Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Discussion: https://postgr.es/m/20260426213252.7a@rfd.leadboat.com

src/test/modules/ssl_passphrase_callback/t/001_testfunc.pl

index 09ff5364f0a36b3dea11ff9bec57bde464b145e7..d8b07d4cf7b55066cdbf89256a176d2c5841beb2 100644 (file)
@@ -90,8 +90,8 @@ ssl_sni = on
 });
        $node->append_conf(
                'pg_hosts.conf', qq{
-example.org $ddir/server.crt $ddir/server.key "" "echo FooBaR1" on
-example.com $ddir/server.crt $ddir/server.key "" "echo FooBaR1" on
+example.org "$ddir/server.crt" "$ddir/server.key" "" "echo FooBaR1" on
+example.com "$ddir/server.crt" "$ddir/server.key" "" "echo FooBaR1" on
 });
 
        # If the servers starts and runs, the bad ssl_passphrase.passphrase was