summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2007-02-09 19:41:09 +0000
committerGerald Carter <jerry@samba.org>2007-02-09 19:41:09 +0000
commit09d7b64a39abd9a216610564ae3969ec520a552b (patch)
tree03d0e7244c52097959c57dfbecc334c73e467a43
parent5afffc7f86e8b4fec2abd33ff557f1163077e562 (diff)
downloadsamba-09d7b64a39abd9a216610564ae3969ec520a552b.tar.gz
samba-09d7b64a39abd9a216610564ae3969ec520a552b.tar.xz
samba-09d7b64a39abd9a216610564ae3969ec520a552b.zip
r21262: Final part of BUG 4093: fix %a with Windows XP 64bit
-rw-r--r--source/lib/util.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/lib/util.c b/source/lib/util.c
index 762665bff3c..0f54ba74414 100644
--- a/source/lib/util.c
+++ b/source/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 );
}