[Samba] patch for 2.2 to correctly detect WinXP and Win2K2 client arch types

Gerald (Jerry) Carter
Fri, 09 May 2003 21:30:46 -0000

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tom,

Try this patch.  I lost your original message but this should
fix the problem with 'logon path = \\%L\profile\%U\%a'
confusing WinXP with Win2K.




cheers, jerry
 ----------------------------------------------------------------------
 Hewlett-Packard            ------------------------- http://www.hp.com
 SAMBA Team                 ---------------------- http://www.samba.org
 GnuPG Key                  ---- http://www.plainjoe.org/gpg_public.asc
 "You can never go home again, Oatman, but I guess you can shop
there."
                            --John Cusack - "Grosse Point Blank"
(1997)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: For info see http://quantumlab.net/pine_privacy_guard/

iD8DBQE+vB4LIR7qMdg1EfYRArA8AJ42nzf5+9S+pfNWZV+czSv31hmx/gCg2f0T
HF13Fe8eOEbAMw6dQb7FOBY=V2i6
-----END PGP SIGNATURE-----
-------------- next part --------------
Index: source/smbd/reply.c
==================================================================RCS file:
/data/cvs/samba/source/smbd/reply.c,v
retrieving revision 1.240.2.132
diff -u -r1.240.2.132 reply.c
--- source/smbd/reply.c	9 Apr 2003 22:49:49 -0000	1.240.2.132
+++ source/smbd/reply.c	9 May 2003 21:26:55 -0000
@@ -765,7 +765,7 @@
     }

     username_str = smb_buf(inbuf)+smb_apasslen;
-    fstrcpy( native_lanman, skip_string(username_str, 3));
+    fstrcpy( native_lanman, skip_string(username_str, 4));

     /*
      * we distinguish between 2K and XP by the "Native Lan Manager"