diff options
author | Gerald Carter <jerry@samba.org> | 2003-02-27 21:22:36 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2003-02-27 21:22:36 +0000 |
commit | c7712fa054d21b4884a78b7ea6c0fb8b3d637c6b (patch) | |
tree | c83f0650d54b2841b60a8c194c4a04a76672b028 /source/smbd | |
parent | 38fa2898967f607a17fd7fbd324f2940a05fb551 (diff) | |
download | samba-c7712fa054d21b4884a78b7ea6c0fb8b3d637c6b.tar.gz samba-c7712fa054d21b4884a78b7ea6c0fb8b3d637c6b.tar.xz samba-c7712fa054d21b4884a78b7ea6c0fb8b3d637c6b.zip |
additional fix for CR 601
* distinguish WinXP from Win2k
* add a 1/3 of a second delay in OpenPrinter
in order to trigger a LAN/WAN optimization in
2k clients.
Diffstat (limited to 'source/smbd')
-rw-r--r-- | source/smbd/sesssetup.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/source/smbd/sesssetup.c b/source/smbd/sesssetup.c index eafe805aba9..b0ef78f4479 100644 --- a/source/smbd/sesssetup.c +++ b/source/smbd/sesssetup.c @@ -581,6 +581,21 @@ int reply_sesssetup_and_X(connection_struct *conn, char *inbuf,char *outbuf, p += srvstr_pull_buf(inbuf, native_lanman, p, sizeof(native_lanman), STR_TERMINATE); DEBUG(3,("Domain=[%s] NativeOS=[%s] NativeLanMan=[%s]\n", domain,native_os,native_lanman)); + + /* + * we distinguish between 2K and XP by the "Native Lan Manager" string + * WinXP => "Windows 2002 5.1" + * Win2k => "Windows 2000 5.0" + * NT4 => "Windows NT 4.0" + * Win9x => "Windows 4.0" + */ + + if ( ra_type == RA_WIN2K ) { + if ( 0 == strcmp( native_lanman, "Windows 2002 5.1" ) ) + set_remote_arch( RA_WINXP ); + } + + } DEBUG(3,("sesssetupX:name=[%s]\\[%s]@[%s]\n", domain, user, get_remote_machine_name())); |