OSDN Git Service

CIFS: fix mapping of SFM_SPACE and SFM_PERIOD
authorBjörn Jacke <bj@sernet.de>
Wed, 3 May 2017 21:47:44 +0000 (23:47 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 May 2017 12:27:01 +0000 (14:27 +0200)
commita8900a64eabf162d8e463f48e5d8329bae5bd326
treee564c29758376327bfcf33f8fa643be10d760c5d
parentb85fa4129e7a2ab4de473d7e8e3de91d27643e0a
CIFS: fix mapping of SFM_SPACE and SFM_PERIOD

commit b704e70b7cf48f9b67c07d585168e102dfa30bb4 upstream.

- trailing space maps to 0xF028
- trailing period maps to 0xF029

This fix corrects the mapping of file names which have a trailing character
that would otherwise be illegal (period or space) but is allowed by POSIX.

Signed-off-by: Bjoern Jacke <bjacke@samba.org>
Signed-off-by: Steve French <smfrench@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/cifs/cifs_unicode.h