relocate packages on recipes-base/recipes-enigma2/recipes-wlan.
[vuplus_openvuplus] / meta-openvuplus / recipes-connectivity / samba / samba-3.0.37 / 0001-s3-schannel-client-Push-the-domain-and-netbios-name-.patch
1 From 51aaf9c6812430975dcd2cf9a632eb8d241ec41e Mon Sep 17 00:00:00 2001
2 From: Andrew Bartlett <abartlet@samba.org>
3 Date: Thu, 3 Jun 2010 09:35:31 +1000
4 Subject: [PATCH] s3:schannel client Push the domain and netbios name into the DOS charset
5
6 If the netbios name is not just ASCII, then we have to get it into the
7 right character set.
8
9 Andrew Bartlett
10 ---
11  source/rpc_parse/parse_rpc.c |    4 ++--
12  1 files changed, 2 insertions(+), 2 deletions(-)
13
14 diff --git source/rpc_parse/parse_rpc.c source/rpc_parse/parse_rpc.c
15 index 2d166c7..7b4b8e8 100644
16 --- source/rpc_parse/parse_rpc.c
17 +++ source/rpc_parse/parse_rpc.c
18 @@ -786,8 +786,8 @@ void init_rpc_auth_schannel_neg(RPC_AUTH_SCHANNEL_NEG *neg,
19  {
20         neg->type1 = 0;
21         neg->type2 = 0x3;
22 -       fstrcpy(neg->domain, domain);
23 -       fstrcpy(neg->myname, myname);
24 +       push_ascii_fstring(neg->domain, domain);
25 +       push_ascii_fstring(neg->myname, myname);
26  }
27  
28  /*******************************************************************
29 -- 
30 1.7.0.1
31