]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
CIFS: fix mapping of SFM_SPACE and SFM_PERIOD
authorBjörn Jacke <bj@sernet.de>
Wed, 3 May 2017 21:47:44 +0000 (23:47 +0200)
committerSteve French <smfrench@gmail.com>
Thu, 4 May 2017 00:31:33 +0000 (19:31 -0500)
- trailing space maps to 0xF028
- trailing period maps to 0xF029

This fix corrects the mapping of file names which have a trailing character
that would otherwise be illegal (period or space) but is allowed by POSIX.

Signed-off-by: Bjoern Jacke <bjacke@samba.org>
CC: Stable <stable@vger.kernel.org>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/cifs_unicode.h

index 3d7298cc0aeb357899dfcd9216d5b76f17cc64d9..7bfb76e6040197638c140528cf14c84d478a27f7 100644 (file)
@@ -64,8 +64,8 @@
 #define SFM_LESSTHAN    ((__u16) 0xF023)
 #define SFM_PIPE        ((__u16) 0xF027)
 #define SFM_SLASH       ((__u16) 0xF026)
-#define SFM_PERIOD     ((__u16) 0xF028)
-#define SFM_SPACE      ((__u16) 0xF029)
+#define SFM_SPACE      ((__u16) 0xF028)
+#define SFM_PERIOD     ((__u16) 0xF029)
 
 /*
  * Mapping mechanism to use when one of the seven reserved characters is