From afcb58ac9eb98bb22b83f70ee7b1338d43ae2150 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 20 Mar 2003 16:53:07 +0000 Subject: 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) --- source3/smbd/reply.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit