summaryrefslogtreecommitdiff
path: root/packaging/SGI/findsmb
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/SGI/findsmb')
-rwxr-xr-xpackaging/SGI/findsmb8
1 files changed, 6 insertions, 2 deletions
diff --git a/packaging/SGI/findsmb b/packaging/SGI/findsmb
index 59dc960402..82aeb28dab 100755
--- a/packaging/SGI/findsmb
+++ b/packaging/SGI/findsmb
@@ -94,8 +94,12 @@ foreach $ip (@ipaddrs) # loop through each IP address found
# for WIN95 clients get workgroup name from nmblookup response
@name = grep(/<00> - <GROUP>/,@nmblookup);
$_ = @name[0];
- /(\S+)/;
- $_ = "[$1]";
+ if ($_) {
+ /(\S+)/;
+ $_ = "[$1]";
+ } else {
+ $_ = "Unknown Workgroup";
+ }
}
# see if machine registered a local master browser name