lock_file sets the error variable in perl, but does not die if it encounters an error in the callback. All other invocations of lock_file already die, but it was missing for writing the interfaces s file, which swallowed errors.
Signed-off-by: Stefan Hanreich <s.hanre...@proxmox.com> Link: https://lore.proxmox.com/20250717152841.397830-6-s.hanre...@proxmox.com --- PVE/CLI/proxmox_network_interface_pinning.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/PVE/CLI/proxmox_network_interface_pinning.pm b/PVE/CLI/proxmox_network_interface_pinning.pm index ea98ccb5e..b45cc973a 100644 --- a/PVE/CLI/proxmox_network_interface_pinning.pm +++ b/PVE/CLI/proxmox_network_interface_pinning.pm @@ -95,6 +95,7 @@ my sub update_etc_network_interfaces { }; PVE::Tools::lock_file("/etc/network/.pve-interfaces.lock", 10, $code); + die $@ if $@; } my sub update_host_fw_config { -- 2.39.5 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel