From b502deaddfa1c3c2932bc2a0c5e64692fa79e196 Mon Sep 17 00:00:00 2001 From: Ilia Ross Date: Thu, 15 Oct 2026 19:58:30 +0200 Subject: [PATCH] Fix to preserve PostgreSQL SQL file error handling --- postgresql/postgresql-lib.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postgresql/postgresql-lib.pl b/postgresql/postgresql-lib.pl index 9aa47a50b..dcce13873 100755 --- a/postgresql/postgresql-lib.pl +++ b/postgresql/postgresql-lib.pl @@ -904,7 +904,7 @@ if ($safe_file) { # Restrict psql commands while executing the user-supplied file. local $restrict_key = &generate_miniserv_websocket_token(); local $cmd = "e_path($config{'psql'}). - " -X -v ON_ERROR_STOP=1 -c ". + " -X -c ". quotemeta("\\restrict $restrict_key"). " -f "."e_path($file). &host_port_flags().