diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 2e9e09c..d05b4dd 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c @@ -2483,6 +2483,8 @@ try_mount_again: /* BB Do we need to wrap sesSem around * this TCon call and Unix SetFS as * we do on SessSetup and reconnect? */ + if (volume_info->nocase) + tcon->nocase = volume_info->nocase; rc = CIFSTCon(xid, pSesInfo, volume_info->UNC, tcon, cifs_sb->local_nls); cFYI(1, ("CIFS Tcon rc = %d", rc)); @@ -2686,6 +2688,9 @@ CIFSTCon(unsigned int xid, struct cifsSesInfo *ses, smb_buffer->Mid = GetNextMid(ses->server); smb_buffer->Uid = ses->Suid; + if (tcon && tcon->nocase) + smb_buffer->Flags |= SMBFLG_CASELESS; + pSMB = (TCONX_REQ *) smb_buffer; pSMBr = (TCONX_RSP *) smb_buffer_response;