From: Thomas Lamprecht Date: Wed, 1 Jul 2020 13:33:14 +0000 (+0200) Subject: scan_cifs: fix scanning server with no SMB1 fallback X-Git-Url: https://git.proxmox.com/?p=pve-storage.git;a=commitdiff_plain;h=d37729b95b4373ceaae7bed381b9072da16d117f scan_cifs: fix scanning server with no SMB1 fallback Signed-off-by: Thomas Lamprecht --- diff --git a/PVE/Storage.pm b/PVE/Storage.pm index 44ab626..bb80b07 100755 --- a/PVE/Storage.pm +++ b/PVE/Storage.pm @@ -1219,7 +1219,9 @@ sub scan_cifs { } }, ); - raise($err) if $err; + # only die if we got no share, else it's just some followup check error + # (like workgroup querying) + raise($err) if $err && !%$res; return $res; }