r21857: Stop pretending to be Vista in the %a macro towards Samba clients.
authorGünther Deschner <gd@samba.org>
Fri, 16 Mar 2007 16:20:47 +0000 (16:20 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:18:39 +0000 (12:18 -0500)
Guenther
(This used to be commit f55e1a312e75dc72ea040a35a9c20ccf539c4ae4)

source3/smbd/negprot.c

index fb5610b20bb2a2449d9597e1e5d8fb0e220f7281..04b06a9bce38276aeccc01ccdc87425c57f43c4d 100644 (file)
@@ -259,7 +259,9 @@ static int reply_nt1(char *inbuf, char *outbuf)
        if ( (SVAL(inbuf, smb_flg2) & FLAGS2_EXTENDED_SECURITY) &&
                ((SVAL(inbuf, smb_flg2) & FLAGS2_UNKNOWN_BIT4) == 0) ) 
        {
-               set_remote_arch( RA_VISTA );            
+               if (get_remote_arch() != RA_SAMBA) {;
+                       set_remote_arch( RA_VISTA );
+               }
        }
 
        /* do spnego in user level security if the client