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
4f433025f6 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
This commit is contained in:
Noah Misch 2026-04-26 15:03:51 -07:00
parent 7d7e58feef
commit f9c638054c

View 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