Daemon: raise error if we cannot parse lockfd

This commit is contained in:
Dietmar Maurer 2015-01-01 10:41:52 +01:00
parent da1a7f5889
commit 6105a115c6

View File

@ -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
}