From: Steve French Date: Thu, 28 Aug 2008 15:32:22 +0000 (+0000) Subject: [CIFS] Turn off Unicode during session establishment for plaintext authentication X-Git-Tag: v2.6.27-rc6~89^2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=c76da9da1fffa6de263486df54950eb328d58f71;p=linux-2.6-omap-h63xx.git [CIFS] Turn off Unicode during session establishment for plaintext authentication LANMAN session setup did not support Unicode (after session setup, unicode can still be used though). Fixes samba bug# 5319 CC: Jeff Layton CC: Stable Kernel Signed-off-by: Steve French --- diff --git a/fs/cifs/sess.c b/fs/cifs/sess.c index b537fad3bf5..252fdc0567f 100644 --- a/fs/cifs/sess.c +++ b/fs/cifs/sess.c @@ -409,6 +409,8 @@ CIFS_SessSetup(unsigned int xid, struct cifsSesInfo *ses, int first_time, #ifdef CONFIG_CIFS_WEAK_PW_HASH char lnm_session_key[CIFS_SESS_KEY_SIZE]; + pSMB->req.hdr.Flags2 &= ~SMBFLG2_UNICODE; + /* no capabilities flags in old lanman negotiation */ pSMB->old_req.PasswordLength = cpu_to_le16(CIFS_SESS_KEY_SIZE);