summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2007-02-09 19:41:09 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:17:52 -0500
commite8783bcd007619b5504bfc9a1000e1b4885fb9f3 (patch)
treeb967ad92ab3326da6a6356473c3bfa8a313369aa /source3
parentc635c57d75bf627ea8e51a2192290cec1b6c59e8 (diff)
downloadsamba-e8783bcd007619b5504bfc9a1000e1b4885fb9f3.tar.gz
samba-e8783bcd007619b5504bfc9a1000e1b4885fb9f3.tar.bz2
samba-e8783bcd007619b5504bfc9a1000e1b4885fb9f3.zip
r21262: Final part of BUG 4093: fix %a with Windows XP 64bit
(This used to be commit e2681eb4be1a9bd001eed0f39e5b5d370cf71ed6)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/util.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c
index efdb7f60fd..7d41a14292 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -2129,6 +2129,7 @@ BOOL is_myworkgroup(const char *s)
/*******************************************************************
we distinguish between 2K and XP by the "Native Lan Manager" string
WinXP => "Windows 2002 5.1"
+ WinXP 64bit => "Windows XP 5.2"
Win2k => "Windows 2000 5.0"
NT4 => "Windows NT 4.0"
Win9x => "Windows 4.0"
@@ -2137,9 +2138,11 @@ BOOL is_myworkgroup(const char *s)
********************************************************************/
void ra_lanman_string( const char *native_lanman )
-{
+{
if ( strcmp( native_lanman, "Windows 2002 5.1" ) == 0 )
set_remote_arch( RA_WINXP );
+ else if ( strcmp( native_lanman, "Windows XP 5.2" ) == 0 )
+ set_remote_arch( RA_WINXP );
else if ( strcmp( native_lanman, "Windows Server 2003 5.2" ) == 0 )
set_remote_arch( RA_WIN2K3 );
}