From 9d4f9bda320be9c17f2cf95ecd4d230f6a5283e5 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Wed, 1 May 2002 10:05:52 +0000 Subject: Had some environment problem to test the fix, so it would be really appreciated if packagers would be able to test their findsmb utility. This fix is to make findsmb aware that the space a valid NetBIOS name character and to not get only the first part of the name as the NetBIOS name if it contains spaces. Simo. (This used to be commit 58cf23f4da2b36f173fcb6a695ff6798be5c589b) --- packaging/Caldera/UnixWare/findsmb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packaging/Caldera/UnixWare') diff --git a/packaging/Caldera/UnixWare/findsmb b/packaging/Caldera/UnixWare/findsmb index bb91c784b8..c87fdb5190 100755 --- a/packaging/Caldera/UnixWare/findsmb +++ b/packaging/Caldera/UnixWare/findsmb @@ -73,7 +73,7 @@ foreach $ip (@ipaddrs) # loop through each IP address found $name = "unknown nis name"; } } else { - /(\S+)/; + /(.{1,15})\s+<00>\s+/; $name = $1; } @@ -103,7 +103,7 @@ foreach $ip (@ipaddrs) # loop through each IP address found @name = grep(/<00> - /,@nmblookup); $_ = @name[0]; if ($_) { - /(\S+)/; + /(.{1,15})\s+<00>\s+/; $_ = "[$1]"; } else { $_ = "Unknown Workgroup"; -- cgit