From: Noah Misch Date: Sun, 26 Apr 2026 22:03:51 +0000 (-0700) Subject: Fix new test with comma in build directory. X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=f9c638054c5b29d519bc8530f95da8a74b47af51;p=thirdparty%2Fpostgresql.git Fix new test with comma in build directory. 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 Discussion: https://postgr.es/m/20260426213252.7a@rfd.leadboat.com --- diff --git a/src/test/modules/ssl_passphrase_callback/t/001_testfunc.pl b/src/test/modules/ssl_passphrase_callback/t/001_testfunc.pl index 09ff5364f0a..d8b07d4cf7b 100644 --- a/src/test/modules/ssl_passphrase_callback/t/001_testfunc.pl +++ b/src/test/modules/ssl_passphrase_callback/t/001_testfunc.pl @@ -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