summaryrefslogtreecommitdiff
path: root/packaging/SGI/findsmb
diff options
context:
space:
mode:
authorHerb Lewis <herb@samba.org>1998-03-16 23:11:48 +0000
committerHerb Lewis <herb@samba.org>1998-03-16 23:11:48 +0000
commit09c0c6f0d6fa02554a2a3e0c10a2c93ae4de3583 (patch)
treee0b83713bab061c211c8aa83cfa492406398103f /packaging/SGI/findsmb
parentc54af0f8b20e3f93c59da6a817920e1de6c4a870 (diff)
downloadsamba-09c0c6f0d6fa02554a2a3e0c10a2c93ae4de3583.tar.gz
samba-09c0c6f0d6fa02554a2a3e0c10a2c93ae4de3583.tar.bz2
samba-09c0c6f0d6fa02554a2a3e0c10a2c93ae4de3583.zip
add swat to build package
fix minor bug in findsmb (This used to be commit d21a4368d27c77b083ac30ae080649157255b9f7)
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