summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-03-25 04:14:54 +0000
committerGerald Carter <jerry@samba.org>2003-03-25 04:14:54 +0000
commit8460dc43406db90c169232ca5562d9bf4c7d34e8 (patch)
treea163ec01a8f2f4c287c545ecbb22f262103252e7 /source3/smbd
parent53beee9e5675a59c67d9ecfbaec50dca4ac01750 (diff)
downloadsamba-8460dc43406db90c169232ca5562d9bf4c7d34e8.tar.gz
samba-8460dc43406db90c169232ca5562d9bf4c7d34e8.tar.bz2
samba-8460dc43406db90c169232ca5562d9bf4c7d34e8.zip
win9x was suffered a case of the blues during a domain logon.
For some reason, explicitly setting the service type during the tcon&X fixes this. (This used to be commit 4dd81caeff96d2b7f08b4846a524f917a85407a4)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/reply.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index 7990585ef4..052884480b 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -272,11 +272,20 @@ int reply_tcon_and_X(connection_struct *conn, char *inbuf,char *outbuf,int lengt
} else {
/* NT sets the fstype of IPC$ to the null string */
const char *fsname = IS_IPC(conn) ? "" : lp_fstype(SNUM(conn));
+ const char *devicetype;
+
set_message(outbuf,3,0,True);
+ if ( IS_IPC(conn) )
+ devicetype = "IPC";
+ else if ( IS_PRINT(conn) )
+ devicetype = "LPT:";
+ else
+ devicetype = "A:";
+
p = smb_buf(outbuf);
- p += srvstr_push(outbuf, p, IS_IPC(conn) ? "IPC" : devicename, -1,
+ p += srvstr_push(outbuf, p, IS_IPC(conn) ? "IPC" : devicetype, -1,
STR_TERMINATE|STR_ASCII);
p += srvstr_push(outbuf, p, fsname, -1,
STR_TERMINATE);