summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsource3/script/findsmb.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/script/findsmb.in b/source3/script/findsmb.in
index 64215918d1..fb06018fe5 100755
--- a/source3/script/findsmb.in
+++ b/source3/script/findsmb.in
@@ -90,6 +90,7 @@ foreach $ip (@ipaddrs) # loop through each IP address found
# names starting or ending with spaces
/(.{1,15})\s+<00>\s+/;
$name = $1;
+ $name =~ s/^\s+//g;
}
# do an smbclient command on the netbios name.