+++ /dev/null
---- samba-3.0.21a/source/libsmb/ntlmssp.c.old 2005-10-18 04:45:00.000000000 +0200
-+++ samba-3.0.21a/source/libsmb/ntlmssp.c 2006-01-22 13:18:02.000000000 +0100
-@@ -384,6 +384,11 @@
-
- void ntlmssp_weaken_keys(NTLMSSP_STATE *ntlmssp_state)
- {
-+ /* Nothing to weaken. We certainly don't want to 'extend' the length... */
-+ if (ntlmssp_state->session_key.length < 8) {
-+ return;
-+ }
-+
- /* Key weakening not performed on the master key for NTLM2
- and does not occour for NTLM1. Therefore we only need
- to do this for the LM_KEY.
+++ /dev/null
---- samba-3.0.21/source/python/setup.py.orig 2005-12-25 20:27:49.884427000 +0100
-+++ samba-3.0.21/source/python/setup.py 2005-12-25 20:32:21.984427000 +0100
-@@ -63,8 +63,10 @@
- next_is_flag = 0;
- elif lib == "-Wl,-rpath":
- next_is_path = 1;
-- elif lib[0:2] in ("-l","-pthread"):
-+ elif lib[0:2] == "-l":
- libraries.append(lib[2:])
-+ elif lib[0:8] == "-pthread":
-+ libraries.append(lib[1:])
- elif lib[0:2] == "-L":
- library_dirs.append(lib[2:])
- elif lib[0:2] in ("-W","-s"):