]> git.proxmox.com Git - pve-storage.git/commitdiff
cifs: followup fix for credential fallback
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 20 Feb 2020 12:55:43 +0000 (13:55 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 20 Feb 2020 12:56:18 +0000 (13:56 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/Storage/CIFSPlugin.pm

index a64de8319e413a5ec3757d2b3e9b5c607aa11c7f..0eb1722286aa21c3377c1ca429b57d5bb6cead7f 100644 (file)
@@ -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";
     }