]> git.proxmox.com Git - pve-storage.git/commitdiff
partially revert follow up
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 17 Jun 2019 10:35:51 +0000 (12:35 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 17 Jun 2019 10:35:56 +0000 (12:35 +0200)
see
https://pve.proxmox.com/pipermail/pve-devel/2019-June/037575.html

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/Storage/Plugin.pm

index b565e92f471625e4f052f1124e147ab3282b5220..842b4d2ca56b120fef8eaad207eece1f8b5aaf3d 100644 (file)
@@ -689,7 +689,7 @@ sub free_image {
     if (defined($format) && ($format eq 'subvol')) {
        File::Path::remove_tree($path);
     } else {
-       if (! -e $path) {
+       if (!(-f $path || -l $path)) {
            warn "disk image '$path' does not exists\n";
            return undef;
        }