mirror of
https://git.proxmox.com/git/pve-common
synced 2025-07-27 04:54:22 +00:00
Daemon: raise error if we cannot parse lockfd
This commit is contained in:
parent
da1a7f5889
commit
6105a115c6
@ -367,7 +367,8 @@ sub new {
|
||||
delete $ENV{PVE_DAEMON_LOCK_FD};
|
||||
|
||||
if (defined($lockfd)) {
|
||||
$lockfd =~ m/^(\d+)$/;
|
||||
die "unable to parse lock fd '$lockfd'\n"
|
||||
if $lockfd !~ m/^(\d+)$/;
|
||||
$lockfd = $1; # untaint
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user