summaryrefslogtreecommitdiff
path: root/fs/cifs/cifs_unicode.c
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2017-05-05 04:36:16 +0200
committerSteve French <smfrench@gmail.com>2017-05-05 08:33:44 -0500
commit85435d7a15294f9f7ef23469e6aaf7c5dfcc54f0 (patch)
treebf7fba3883958ac0287cabd0a6eba74fc8e4823f /fs/cifs/cifs_unicode.c
parent7db0a6efdc3e990cdfd4b24820d010e9eb7890ad (diff)
downloadlinux-85435d7a15294f9f7ef23469e6aaf7c5dfcc54f0.tar.gz
linux-85435d7a15294f9f7ef23469e6aaf7c5dfcc54f0.tar.xz
CIFS: add misssing SFM mapping for doublequote
SFM is mapping doublequote to 0xF020 Without this patch creating files with doublequote fails to Windows/Mac Signed-off-by: Bjoern Jacke <bjacke@samba.org> Signed-off-by: Steve French <smfrench@gmail.com> CC: stable <stable@vger.kernel.org>
Diffstat (limited to 'fs/cifs/cifs_unicode.c')
-rw-r--r--fs/cifs/cifs_unicode.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/cifs/cifs_unicode.c b/fs/cifs/cifs_unicode.c
index 02b071bf3732..a0b3e7d1be48 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;