]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: Fix separator when building path from dentry
authorPaulo Alcantara <palcantara@suse.com>
Thu, 15 Nov 2018 14:20:52 +0000 (15:20 +0100)
committerSteve French <stfrench@microsoft.com>
Thu, 6 Dec 2018 08:20:17 +0000 (02:20 -0600)
commit26517e16fb5b7a437109daa5df8fd9d3fe167d56
tree2b3c4c3f812b3b9adb39c59e06b9f022d4891c53
parentb6ae93e6c227a7635473cb13bfc0da34bb9e0de9
cifs: Fix separator when building path from dentry

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

Fixes: 647b75d81d38 ("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>
fs/cifs/dir.c