Skip to content

Commit a8900a6

Browse files
Björn Jackegregkh
authored andcommitted
CIFS: fix mapping of SFM_SPACE and SFM_PERIOD
commit b704e70b7cf48f9b67c07d585168e102dfa30bb4 upstream. - 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> Signed-off-by: Steve French <smfrench@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent b85fa41 commit a8900a6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

fs/cifs/cifs_unicode.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@
6464
#define SFM_LESSTHAN ((__u16) 0xF023)
6565
#define SFM_PIPE ((__u16) 0xF027)
6666
#define SFM_SLASH ((__u16) 0xF026)
67-
#define SFM_PERIOD ((__u16) 0xF028)
68-
#define SFM_SPACE ((__u16) 0xF029)
67+
#define SFM_SPACE ((__u16) 0xF028)
68+
#define SFM_PERIOD ((__u16) 0xF029)
6969

7070
/*
7171
* Mapping mechanism to use when one of the seven reserved characters is

0 commit comments

Comments
 (0)