mirror of
https://git.proxmox.com/git/pve-common
synced 2025-07-27 13:13:24 +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};
|
delete $ENV{PVE_DAEMON_LOCK_FD};
|
||||||
|
|
||||||
if (defined($lockfd)) {
|
if (defined($lockfd)) {
|
||||||
$lockfd =~ m/^(\d+)$/;
|
die "unable to parse lock fd '$lockfd'\n"
|
||||||
|
if $lockfd !~ m/^(\d+)$/;
|
||||||
$lockfd = $1; # untaint
|
$lockfd = $1; # untaint
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user