[pve-devel] applied: [PATCH storage 1/5] scan_cifs: add workgroup domain independent of user param
Thomas Lamprecht
t.lamprecht at proxmox.com
Wed Jul 1 12:13:14 CEST 2020
they are not really bound to each other
Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
PVE/Storage.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/PVE/Storage.pm b/PVE/Storage.pm
index 9ed8c07..e2a6fd0 100755
--- a/PVE/Storage.pm
+++ b/PVE/Storage.pm
@@ -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 = '';
--
2.20.1
More information about the pve-devel
mailing list