mirror of
https://git.proxmox.com/git/pve-client
synced 2025-10-04 20:37:13 +00:00
Use a different path for the lock file
This prevents lock_file from creating the config file with wrong permissions.
This commit is contained in:
parent
e346866631
commit
ace4a6df4b
@ -67,7 +67,10 @@ sub config_filename {
|
|||||||
sub lock_config {
|
sub lock_config {
|
||||||
my ($class, $timeout, $code, @param) = @_;
|
my ($class, $timeout, $code, @param) = @_;
|
||||||
|
|
||||||
my $filename = $class->config_filename();
|
my $dir = PVE::APIClient::Helpers::configuration_directory();
|
||||||
|
make_path($dir);
|
||||||
|
|
||||||
|
my $filename = "$dir/.config.lck";
|
||||||
|
|
||||||
my $res = PVE::APIClient::Tools::lock_file($filename, $timeout, $code, @param);
|
my $res = PVE::APIClient::Tools::lock_file($filename, $timeout, $code, @param);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user