cifs: Fix separator when building path from dentry
authorPaulo Alcantara <palcantara@suse.com>
Thu, 15 Nov 2018 14:20:52 +0000 (15:20 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Dec 2018 08:16:20 +0000 (09:16 +0100)
commit99c694081ba212599388955792a37d2a4560ed4e
tree85c95e599804cfdc181eab804a2dfcd6461f7a52
parentbd5d1c273cce02612f0d3a820fbbab2e33b46a34
cifs: Fix separator when building path from dentry

commit c988de29ca161823db6a7125e803d597ef75b49c upstream.

Make sure to use the CIFS_DIR_SEP(cifs_sb) as path separator for
prefixpath too. Fixes a bug with smb1 UNIX extensions.

Fixes: a6b5058fafdf ("fs/cifs: make share unaccessible at root level mountable")
Signed-off-by: Paulo Alcantara <palcantara@suse.com>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
CC: Stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/cifs/dir.c