File names with trailing period or space need special case conversion
authorSteve French <smfrench@gmail.com>
Thu, 23 Jun 2016 02:07:32 +0000 (21:07 -0500)
committerSteve French <smfrench@gmail.com>
Fri, 24 Jun 2016 17:05:52 +0000 (12:05 -0500)
commit45e8a2583d97ca758a55c608f78c4cef562644d1
tree3766108644c9e0fa15136d042ed2143a37796e1a
parent4fcd1813e6404dd4420c7d12fb483f9320f0bf93
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>
fs/cifs/cifs_unicode.c
fs/cifs/cifs_unicode.h