From 8e091dabca29a2b27597b9c708b621a1461ebcb9 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Tue, 1 Aug 2017 11:28:53 +0200 Subject: [PATCH] setup: protected_call: the plugin is not required we don't use this anywhere where this would be the case Signed-off-by: Thomas Lamprecht --- src/PVE/LXC/Setup.pm | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/PVE/LXC/Setup.pm b/src/PVE/LXC/Setup.pm index edf3734..738507a 100644 --- a/src/PVE/LXC/Setup.pm +++ b/src/PVE/LXC/Setup.pm @@ -97,8 +97,6 @@ sub new { sub protected_call { my ($self, $sub) = @_; - die "internal error" if !$self->{plugin}; - # avoid recursion: return $sub->() if $self->{in_chroot}; @@ -116,7 +114,6 @@ sub protected_call { close($res_in); # avoid recursive forks $self->{in_chroot} = 1; - $self->{plugin}->{in_chroot} = 1; eval { chroot($rootdir) or die "failed to change root to: $rootdir: $!\n"; chdir('/') or die "failed to change to root directory\n"; -- 2.39.2