From f33533d4dac848c252883fab5498867544719cc7 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Thu, 20 Feb 2020 13:55:43 +0100 Subject: [PATCH] cifs: followup fix for credential fallback Signed-off-by: Thomas Lamprecht --- PVE/Storage/CIFSPlugin.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PVE/Storage/CIFSPlugin.pm b/PVE/Storage/CIFSPlugin.pm index a64de83..0eb1722 100644 --- a/PVE/Storage/CIFSPlugin.pm +++ b/PVE/Storage/CIFSPlugin.pm @@ -30,7 +30,7 @@ sub cifs_is_mounted { sub cifs_cred_file_name { my ($storeid) = @_; - return "/etc/pve/priv/storage/${storeid}.cred"; + return "/etc/pve/priv/storage/${storeid}.pw"; } sub cifs_delete_credentials { @@ -59,7 +59,7 @@ sub get_cred_file { if (-e $cred_file) { return $cred_file; - } elsif ("/etc/pve/priv/${storeid}.cred") { + } elsif (-e "/etc/pve/priv/${storeid}.cred") { # FIXME: remove fallback with 7.0 by doing a rename on upgrade from 6.x return "/etc/pve/priv/${storeid}.cred"; }