* [PATCH] CIFS: add misssing SFM mapping for doublequote
@ 2017-05-05 3:00 Björn JACKE
0 siblings, 0 replies; only message in thread
From: Björn JACKE @ 2017-05-05 3:00 UTC (permalink / raw)
To: sfrench-eUNUBHrolfbYtjvyW6yDsg; +Cc: linux-cifs-u79uwXL29TY76Z2rM5mHXA
[-- Attachment #1.1: Type: text/plain, Size: 92 bytes --]
Hi,
please review and apply to current and long-term kernels like 4.9, please.
Björn
[-- Attachment #1.2: 0001-CIFS-add-misssing-SFM-mapping-for-doublequote.patch --]
[-- Type: text/x-diff, Size: 1592 bytes --]
From 7a72fdf400c039218526ac4241efb2db984e1a13 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Jacke?= <bj-3ekOc4rQMZmzQB+pC5nmwQ@public.gmane.org>
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 <bjacke-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
---
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
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-05-05 3:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-05 3:00 [PATCH] CIFS: add misssing SFM mapping for doublequote Björn JACKE
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).