From 7945a9f0e67c41f679858fbca6eba9715182888e Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Sat, 29 Nov 2025 14:22:52 -0800 Subject: [PATCH] Don't globally change PGPASSFILE https://github.com/webmin/webmin/issues/2592 --- 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 b1e425802..ff1a08767 100755 --- a/postgresql/postgresql-lib.pl +++ b/postgresql/postgresql-lib.pl @@ -1234,7 +1234,7 @@ if (&supports_pgpass()) { push(@main::temporary_files, $pgpass); $cmd = "HOME=$temphome $cmd"; } - $ENV{'PGPASSFILE'} = $pgpass; + $cmd = "PGPASSFILE=$pgpass $cmd"; open(PGPASS, ">$pgpass"); print PGPASS "*:*:*:$user:$pass\n"; close(PGPASS);