projects
/
pve-common.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da1a7f5
)
Daemon: raise error if we cannot parse lockfd
author
Dietmar Maurer
<dietmar@proxmox.com>
Thu, 1 Jan 2015 09:41:52 +0000
(10:41 +0100)
committer
Dietmar Maurer
<dietmar@proxmox.com>
Thu, 1 Jan 2015 09:41:52 +0000
(10:41 +0100)
data/PVE/Daemon.pm
patch
|
blob
|
history
diff --git
a/data/PVE/Daemon.pm
b/data/PVE/Daemon.pm
index
683743c
..
1436f17
100644
(file)
--- a/
data/PVE/Daemon.pm
+++ b/
data/PVE/Daemon.pm
@@
-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
}