add trailing newline to error message
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
@ -1199,7 +1199,7 @@ sub scan_cifs {
|
||||
# we support only Windows grater than 2012 cifsscan so use smb3
|
||||
my $cmd = ['/usr/bin/smbclient', '-m', 'smb3', '-d', '0', '-L', $server];
|
||||
if (defined($user)) {
|
||||
die "password is required" if !defined($password);
|
||||
die "password is required\n" if !defined($password);
|
||||
push @$cmd, '-U', "$user\%$password";
|
||||
push @$cmd, '-W', $domain if defined($domain);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user