diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-10-04 12:00:40 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-10-04 12:00:40 +0000 |
commit | 40984f6b55212c710f6a7c7b940a785b2b607985 (patch) | |
tree | 7cc4bcf05540c8b9066568a39c62675af704ccbb /source3/smbwrapper | |
parent | 1970c92c0a56672308314d39718f994302c95c95 (diff) | |
download | samba-40984f6b55212c710f6a7c7b940a785b2b607985.tar.gz samba-40984f6b55212c710f6a7c7b940a785b2b607985.tar.bz2 samba-40984f6b55212c710f6a7c7b940a785b2b607985.zip |
- modified resolve_name() to take a name_type
- cleaned up resolve_name() (split into separate functions for each resolver)
- if can't find local master then use #1B name
- support listing of foreign workgroups in /smb/
(This used to be commit a4e607c17d1119925c9d0e1d05e0fe81e9a2d1aa)
Diffstat (limited to 'source3/smbwrapper')
-rw-r--r-- | source3/smbwrapper/smbw.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source3/smbwrapper/smbw.c b/source3/smbwrapper/smbw.c index 650d0a08f5..e76b42692e 100644 --- a/source3/smbwrapper/smbw.c +++ b/source3/smbwrapper/smbw.c @@ -373,8 +373,9 @@ struct smbw_server *smbw_server(char *server, char *share) make_nmb_name(&calling, global_myname, 0x0, ""); make_nmb_name(&called , server, 0x20, ""); - again: - if ((p=strchr(server_n,'#'))) { + DEBUG(5,("server_n=[%s] server=[%s]\n", server_n, server)); + + if ((p=strchr(server_n,'#')) && strcmp(p+1,"1D")==0) { struct in_addr ip; fstrcpy(group, server_n); p = strchr(group,'#'); @@ -387,6 +388,9 @@ struct smbw_server *smbw_server(char *server, char *share) server_n = group; } + DEBUG(5,(" -> server_n=[%s] server=[%s]\n", server_n, server)); + + again: /* have to open a new connection */ if (!cli_initialise(&c) || !cli_connect(&c, server_n, NULL)) { errno = ENOENT; |