[pve-devel] [PATCH] Handel connection check timeouts.

Wolfgang Link w.link at proxmox.com
Wed May 16 08:49:29 CEST 2018


---
 PVE/Storage/CIFSPlugin.pm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/PVE/Storage/CIFSPlugin.pm b/PVE/Storage/CIFSPlugin.pm
index 1670a5c..9532508 100644
--- a/PVE/Storage/CIFSPlugin.pm
+++ b/PVE/Storage/CIFSPlugin.pm
@@ -218,7 +218,8 @@ sub check_connection {
     };
 
     if (my $err = $@) {
-	die "$out_str\n" if ($out_str =~ m/NT_STATUS_ACCESS_DENIED/);
+	die "$out_str\n" if !defined($out_str) &&
+	    ($out_str =~ m/NT_STATUS_ACCESS_DENIED/);
 	return 0;
     }
 
-- 
2.11.0





More information about the pve-devel mailing list