diff options
author | Steve French <smfrench@gmail.com> | 2016-06-23 04:07:32 +0200 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2016-06-24 19:05:52 +0200 |
commit | 45e8a2583d97ca758a55c608f78c4cef562644d1 (patch) | |
tree | 3766108644c9e0fa15136d042ed2143a37796e1a /fs/cifs/cifs_unicode.h | |
parent | Fix reconnect to not defer smb3 session reconnect long after socket reconnect (diff) | |
download | linux-45e8a2583d97ca758a55c608f78c4cef562644d1.tar.xz linux-45e8a2583d97ca758a55c608f78c4cef562644d1.zip |
File names with trailing period or space need special case conversion
POSIX allows files with trailing spaces or a trailing period but
SMB3 does not, so convert these using the normal Services For Mac
mapping as we do for other reserved characters such as
: < > | ? *
This is similar to what Macs do for the same problem over SMB3.
CC: Stable <stable@vger.kernel.org>
Signed-off-by: Steve French <steve.french@primarydata.com>
Acked-by: Pavel Shilovsky <pshilovsky@samba.org>
Diffstat (limited to 'fs/cifs/cifs_unicode.h')
-rw-r--r-- | fs/cifs/cifs_unicode.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/cifs/cifs_unicode.h b/fs/cifs/cifs_unicode.h index bdc52cb9a676..479bc0a941f3 100644 --- a/fs/cifs/cifs_unicode.h +++ b/fs/cifs/cifs_unicode.h @@ -64,6 +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) /* * Mapping mechanism to use when one of the seven reserved characters is |