mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +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);
|
push(@main::temporary_files, $pgpass);
|
||||||
$cmd = "HOME=$temphome $cmd";
|
$cmd = "HOME=$temphome $cmd";
|
||||||
}
|
}
|
||||||
$ENV{'PGPASSFILE'} = $pgpass;
|
$cmd = "PGPASSFILE=$pgpass $cmd";
|
||||||
open(PGPASS, ">$pgpass");
|
open(PGPASS, ">$pgpass");
|
||||||
print PGPASS "*:*:*:$user:$pass\n";
|
print PGPASS "*:*:*:$user:$pass\n";
|
||||||
close(PGPASS);
|
close(PGPASS);
|
||||||
|
|||||||
Reference in New Issue
Block a user