]> git.baikalelectronics.ru Git - kernel.git/commit
[CIFS] fix mount failure with broken pathnames when smb3 mount with mapchars option
authorSteve French <smfrench@gmail.com>
Mon, 23 Jun 2014 01:38:49 +0000 (20:38 -0500)
committerSteve French <smfrench@gmail.com>
Tue, 24 Jun 2014 13:10:24 +0000 (08:10 -0500)
commit03115eaa2b066a38340a2a85a777a05278f2679e
tree32752d15bb72dff8f1d7c4a8b19dd8808051f8f0
parentb380007e4258457bde9dba37aa4bbfc8b349fd92
[CIFS] fix mount failure with broken pathnames when smb3 mount with mapchars option

When we SMB3 mounted with mapchars (to allow reserved characters : \ / > < * ?
via the Unicode Windows to POSIX remap range) empty paths
(eg when we open "" to query the root of the SMB3 directory on mount) were not
null terminated so we sent garbarge as a path name on empty paths which caused
SMB2/SMB2.1/SMB3 mounts to fail when mapchars was specified.  mapchars is
particularly important since Unix Extensions for SMB3 are not supported (yet)

Signed-off-by: Steve French <smfrench@gmail.com>
Cc: <stable@vger.kernel.org>
Reviewed-by: David Disseldorp <ddiss@suse.de>
fs/cifs/cifs_unicode.c