summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-10-04 10:48:31 +0000
committerAndrew Tridgell <tridge@samba.org>1998-10-04 10:48:31 +0000
commitbf409a40e21e44ec653d4d8fd34b52d0e7b64aed (patch)
treef8376acb738c193f39a42196af5df3594484100b
parent147d49dade3901835b5d60b02c495bea544ff5e9 (diff)
downloadsamba-bf409a40e21e44ec653d4d8fd34b52d0e7b64aed.tar.gz
samba-bf409a40e21e44ec653d4d8fd34b52d0e7b64aed.tar.xz
samba-bf409a40e21e44ec653d4d8fd34b52d0e7b64aed.zip
support using #xx at end of netbios name to connect to the specified name type
-rw-r--r--source/client/client.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/client/client.c b/source/client/client.c
index c4f763db778..436b0c3c7c1 100644
--- a/source/client/client.c
+++ b/source/client/client.c
@@ -4104,6 +4104,12 @@ static void usage(char *pname)
} else
return(1);
}
+
+ if ((p=strchr(query_host,'#'))) {
+ *p = 0;
+ p++;
+ sscanf(p, "%x", &name_type);
+ }
if (*query_host && !nt_domain_logon)
{