]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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 15:42:24 +0000 (08:42 -0700)
commitb571b6a0a563a6f3b518b037d1b73baf1b1e1ad4
tree926660d4dc4e0dded76ac655a9290c5ae5edeb57
parent47a7cfe786e8e0d254ef40d50d02ed90ce2ff0e6
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