svn commit: samba r22095 - in branches: SAMBA_3_0/source/smbd
SAMBA_3_0_25/source/smbd
jerry at samba.org
jerry at samba.org
Thu Apr 5 19:56:10 GMT 2007
Author: jerry
Date: 2007-04-05 19:56:08 +0000 (Thu, 05 Apr 2007)
New Revision: 22095
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=22095
Log:
BUG 4484: Add more checks to set %a for Vista clients (based on absence of native OS and Lanman strings in the session setup request)
Modified:
branches/SAMBA_3_0/source/smbd/sesssetup.c
branches/SAMBA_3_0_25/source/smbd/sesssetup.c
Changeset:
Modified: branches/SAMBA_3_0/source/smbd/sesssetup.c
===================================================================
--- branches/SAMBA_3_0/source/smbd/sesssetup.c 2007-04-05 19:49:29 UTC (rev 22094)
+++ branches/SAMBA_3_0/source/smbd/sesssetup.c 2007-04-05 19:56:08 UTC (rev 22095)
@@ -1060,6 +1060,11 @@
native_os, native_lanman, primary_domain));
if ( ra_type == RA_WIN2K ) {
+ /* Vista sets neither the OS or lanman strings */
+
+ if ( !strlen(native_os) && !strlen(native_lanman) )
+ set_remote_arch(RA_VISTA);
+
/* Windows 2003 doesn't set the native lanman string,
but does set primary domain which is a bug I think */
Modified: branches/SAMBA_3_0_25/source/smbd/sesssetup.c
===================================================================
--- branches/SAMBA_3_0_25/source/smbd/sesssetup.c 2007-04-05 19:49:29 UTC (rev 22094)
+++ branches/SAMBA_3_0_25/source/smbd/sesssetup.c 2007-04-05 19:56:08 UTC (rev 22095)
@@ -1060,6 +1060,11 @@
native_os, native_lanman, primary_domain));
if ( ra_type == RA_WIN2K ) {
+ /* Vista sets neither the OS or lanman strings */
+
+ if ( !strlen(native_os) && !strlen(native_lanman) )
+ set_remote_arch(RA_VISTA);
+
/* Windows 2003 doesn't set the native lanman string,
but does set primary domain which is a bug I think */
More information about the samba-cvs
mailing list