]> git.proxmox.com Git - pve-storage.git/commitdiff
scan_cifs: add workgroup domain independent of user param
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 30 Jun 2020 13:14:33 +0000 (15:14 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 1 Jul 2020 10:06:53 +0000 (12:06 +0200)
they are not really bound to each other

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

index 9ed8c07da71e7fbfe2b92121af292169d5a0ac9b..e2a6fd0f99d007cce4ccf2f2ac6782c6fc0f05ed 100755 (executable)
@@ -1199,10 +1199,10 @@ sub scan_cifs {
     if (defined($user)) {
        die "password is required\n" if !defined($password);
        push @$cmd, '-U', "$user\%$password";
-       push @$cmd, '-W', $domain if defined($domain);
     } else {
        push @$cmd, '-N';
     }
+    push @$cmd, '-W', $domain if defined($domain);
 
     my $res = {};
     my $err = '';