diff options
author | Björn Jacke <bj@sernet.de> | 2017-05-03 23:47:44 +0200 |
---|---|---|
committer | Sasha Levin <alexander.levin@verizon.com> | 2017-05-17 15:08:24 -0400 |
commit | ffd28faab493a239b4ba7af5d810ece1fa613b63 (patch) | |
tree | 4124ed47e31c96c660d8fce8c44e532c0fbf6f59 /fs | |
parent | ae5175c8dba4ce0c8cd7da54cccf98295ab149f9 (diff) |
CIFS: fix mapping of SFM_SPACE and SFM_PERIOD
[ Upstream commit b704e70b7cf48f9b67c07d585168e102dfa30bb4 ]
- 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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/cifs/cifs_unicode.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/cifs/cifs_unicode.h b/fs/cifs/cifs_unicode.h index 479bc0a941f3..a61b9166622c 100644 --- a/fs/cifs/cifs_unicode.h +++ b/fs/cifs/cifs_unicode.h @@ -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 |