From patchwork Fri May 5 03:00:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Bj=C3=B6rn_JACKE?= X-Patchwork-Id: 9713029 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1338E60362 for ; Fri, 5 May 2017 03:00:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EF57D28660 for ; Fri, 5 May 2017 03:00:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E423428677; Fri, 5 May 2017 03:00:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_TVD_MIME_EPI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E14A828660 for ; Fri, 5 May 2017 03:00:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751791AbdEEDAk (ORCPT ); Thu, 4 May 2017 23:00:40 -0400 Received: from hr2.samba.org ([144.76.82.148]:19103 "EHLO hr2.samba.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752078AbdEEDAk (ORCPT ); Thu, 4 May 2017 23:00:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=samba.org; s=42627210; h=Message-ID:Cc:To:From:Date; bh=yLnNlFnL73ZGzv44NM0oXCG9o6rkOahvAHVibqgUhHA=; b=rrYVgu7UGNWrg5RLcWuAfam/Br 5caZU+rrropw6fJSigpkwCROsw64bXgPN0O6QH/21jydMZCGcBjrS35GvKoBmPDV/3jyhQzcY0Lls 1wKhz8szq1txCOmtnvFtHZFGsBgHAZwE/xF/ehQbVuNKqAAvZezW2ECJQ4MSvkm9SACU=; Received: from [127.0.0.2] (localhost [127.0.0.1]) by hr2.samba.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim) id 1d6TUC-0005Eg-8g; Fri, 05 May 2017 03:00:52 +0000 Received: from bjacke by pell.sernet.de with local (Exim 4.86_2) (envelope-from ) id 1d6TTv-0007tm-8B; Fri, 05 May 2017 05:00:35 +0200 Date: Fri, 5 May 2017 05:00:35 +0200 From: =?iso-8859-1?Q?Bj=F6rn?= JACKE To: sfrench@samba.org Cc: linux-cifs@vger.kernel.org Subject: [PATCH] CIFS: add misssing SFM mapping for doublequote Message-ID: <20170505030035.GA30330@SerNet.DE> MIME-Version: 1.0 Content-Disposition: inline Sender: linux-cifs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi, please review and apply to current and long-term kernels like 4.9, please. Björn From 7a72fdf400c039218526ac4241efb2db984e1a13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Jacke?= Date: Fri, 5 May 2017 04:36:16 +0200 Subject: [PATCH] CIFS: add misssing SFM mapping for doublequote SFM is mapping doublequote to 0xF020 Signed-off-by: Bjoern Jacke --- fs/cifs/cifs_unicode.c | 6 ++++++ fs/cifs/cifs_unicode.h | 1 + 2 files changed, 7 insertions(+) diff --git a/fs/cifs/cifs_unicode.c b/fs/cifs/cifs_unicode.c index 02b071bf..a0b3e7d 100644 --- a/fs/cifs/cifs_unicode.c +++ b/fs/cifs/cifs_unicode.c @@ -83,6 +83,9 @@ convert_sfm_char(const __u16 src_char, char *target) case SFM_COLON: *target = ':'; break; + case SFM_DOUBLEQUOTE: + *target = '"'; + break; case SFM_ASTERISK: *target = '*'; break; @@ -418,6 +421,9 @@ static __le16 convert_to_sfm_char(char src_char, bool end_of_string) case ':': dest_char = cpu_to_le16(SFM_COLON); break; + case '"': + dest_char = cpu_to_le16(SFM_DOUBLEQUOTE); + break; case '*': dest_char = cpu_to_le16(SFM_ASTERISK); break; diff --git a/fs/cifs/cifs_unicode.h b/fs/cifs/cifs_unicode.h index 7bfb76e..8a79a34 100644 --- a/fs/cifs/cifs_unicode.h +++ b/fs/cifs/cifs_unicode.h @@ -57,6 +57,7 @@ * not conflict (although almost does) with the mapping above. */ +#define SFM_DOUBLEQUOTE ((__u16) 0xF020) #define SFM_ASTERISK ((__u16) 0xF021) #define SFM_QUESTION ((__u16) 0xF025) #define SFM_COLON ((__u16) 0xF022) -- 2.7.4