mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 06:03:28 +00:00
Don't globally change PGPASSFILE
https://github.com/webmin/webmin/issues/2592
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user