From: Gerald Carter Date: Thu, 5 Apr 2007 19:56:08 +0000 (+0000) Subject: r22095: BUG 4484: Add more checks to set %a for Vista clients (based on absence of... X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~771 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e5c9fc937d40046030c0d3bcfced505410a14caf;p=thirdparty%2Fsamba.git r22095: 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) --- diff --git a/source/smbd/sesssetup.c b/source/smbd/sesssetup.c index 91f4a9e12f5..7b5528222ea 100644 --- a/source/smbd/sesssetup.c +++ b/source/smbd/sesssetup.c @@ -1060,6 +1060,11 @@ static int reply_sesssetup_and_X_spnego(connection_struct *conn, char *inbuf, 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 */