From fd55f51efa08dfb5bc7f7a3c2386e28043cac5af Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Tue, 30 Jun 2020 15:14:33 +0200 Subject: [PATCH] scan_cifs: add workgroup domain independent of user param they are not really bound to each other Signed-off-by: Thomas Lamprecht --- 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.39.2