diff --git a/library/Icinga/File/Storage/TemporaryLocalFileStorage.php b/library/Icinga/File/Storage/TemporaryLocalFileStorage.php index 05d633588e..6fd751c783 100644 --- a/library/Icinga/File/Storage/TemporaryLocalFileStorage.php +++ b/library/Icinga/File/Storage/TemporaryLocalFileStorage.php @@ -41,7 +41,7 @@ public function __destruct() foreach ($directoryIterator as $path => $entry) { /** @var \SplFileInfo $entry */ - if ($entry->isDir()) { + if ($entry->isDir() && ! $entry->isLink()) { rmdir($path); } else { unlink($path);