File names with trailing period or space need special case conversion
commit655d8d195ad10e5bf3252eb7822136303d7c65fe
authorSteve French <smfrench@gmail.com>
Thu, 23 Jun 2016 02:07:32 +0000 (22 21:07 -0500)
committerSasha Levin <sasha.levin@oracle.com>
Mon, 11 Jul 2016 02:27:10 +0000 (10 22:27 -0400)
treee8f9b1da89e6da9cb9d0d2543a48bd5c2c9cd832
parente20c888e2b3576e5f498c167729d274ef60b86f8
File names with trailing period or space need special case conversion

[ Upstream commit 45e8a2583d97ca758a55c608f78c4cef562644d1 ]

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>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
fs/cifs/cifs_unicode.c
fs/cifs/cifs_unicode.h