summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2003-03-20 16:53:07 +0000
committerVolker Lendecke <vlendec@samba.org>2003-03-20 16:53:07 +0000
commitafcb58ac9eb98bb22b83f70ee7b1338d43ae2150 (patch)
tree5ec27f4d35a5a833d774e051572432feca195933
parentc7e720c87bf1dae8ec4ca4bad47a7324c89b7c05 (diff)
downloadsamba-afcb58ac9eb98bb22b83f70ee7b1338d43ae2150.tar.gz
samba-afcb58ac9eb98bb22b83f70ee7b1338d43ae2150.tar.bz2
samba-afcb58ac9eb98bb22b83f70ee7b1338d43ae2150.zip
NT4 as well as W2k respond with IPC regardless of what service
type the client requested in the TCONX when connecting to IPC$. It is very well possible that this also applies to the DISK and PRINTER share types, not only IPC. Found this while trying to join a HEAD domain from NT4SP6. Volker (This used to be commit d42eb2116df4bb82c4199a688a057cd0a9f435ed)
-rw-r--r--source3/smbd/reply.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index 138870453d..715bace152 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -276,7 +276,7 @@ int reply_tcon_and_X(connection_struct *conn, char *inbuf,char *outbuf,int lengt
set_message(outbuf,3,0,True);
p = smb_buf(outbuf);
- p += srvstr_push(outbuf, p, devicename, -1,
+ p += srvstr_push(outbuf, p, IS_IPC(conn) ? "IPC" : devicename, -1,
STR_TERMINATE|STR_ASCII);
p += srvstr_push(outbuf, p, fsname, -1,
STR_TERMINATE);