mirror of
https://github.com/samba-team/samba.git
synced 2024-12-30 13:18:05 +03:00
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 commit is contained in:
parent
3defbd5e06
commit
c458179d21
@ -272,9 +272,22 @@ 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" : devicetype, -1,
|
||||
STR_TERMINATE|STR_ASCII);
|
||||
p += srvstr_push(outbuf, p, fsname, -1,
|
||||
STR_TERMINATE);
|
||||
p = smb_buf(outbuf);
|
||||
p += srvstr_push(outbuf, p, IS_IPC(conn) ? "IPC" : devicename, -1,
|
||||
STR_TERMINATE|STR_ASCII);
|
||||
|
Loading…
Reference in New Issue
Block a user