summaryrefslogtreecommitdiff
path: root/source3/smbwrapper
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbwrapper')
-rw-r--r--source3/smbwrapper/smbw.c8
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;