summaryrefslogtreecommitdiff
path: root/packaging/RedHat/findsmb
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/RedHat/findsmb')
-rwxr-xr-xpackaging/RedHat/findsmb8
1 files changed, 2 insertions, 6 deletions
diff --git a/packaging/RedHat/findsmb b/packaging/RedHat/findsmb
index 04bc608050..986c248177 100755
--- a/packaging/RedHat/findsmb
+++ b/packaging/RedHat/findsmb
@@ -73,10 +73,7 @@ foreach $ip (@ipaddrs) # loop through each IP address found
$name = "unknown nis name";
}
} else {
-# The Netbios name can contain lot of characters also '<' '>'
-# and spaces. The follwing cure inside name space but not
-# names starting or ending with spaces
- /(.{1,15})\s+<00>\s+/;
+ /(\S+)/;
$name = $1;
}
@@ -106,8 +103,7 @@ foreach $ip (@ipaddrs) # loop through each IP address found
@name = grep(/<00> - <GROUP>/,@nmblookup);
$_ = @name[0];
if ($_) {
-# Same as before for space and characters
- /(.{1,15})\s+<00>\s+/;
+ /(\S+)/;
$_ = "[$1]";
} else {
$_ = "Unknown Workgroup";