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)
committerSasha Levin <sasha.levin@oracle.com>
Tue, 12 Jul 2016 12:47:09 +0000 (08:47 -0400)
commit1f5d0686569854939e2fa1afc12ae945e3d813be
treeec85d8896d3e4dd47cb22ca6bfc5199b86ae581a
parent59b520454b323ec43b2ae757217332cea33091e0
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