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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Jul 2016 16:47:39 +0000 (09:47 -0700)
commit12f2f04e0376453bab82a2d6aa51cb94f4f65d33
tree425bc2e3667cd9a88aefd05efb2270fa8e4fa6e5
parent1422b6b926f3634cddf449d65ce976f397726c63
File names with trailing period or space need special case conversion

commit 45e8a2583d97ca758a55c608f78c4cef562644d1 upstream.

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.

Signed-off-by: Steve French <steve.french@primarydata.com>
Acked-by: Pavel Shilovsky <pshilovsky@samba.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/cifs/cifs_unicode.c
fs/cifs/cifs_unicode.h