]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: alloc_path_with_tree_prefix: do not append sep. if the path is empty
authorEugene Korenevsky <ekorenevsky@astralinux.ru>
Fri, 14 Jan 2022 19:53:00 +0000 (22:53 +0300)
committerSteve French <stfrench@microsoft.com>
Mon, 17 Jan 2022 19:28:05 +0000 (13:28 -0600)
commit6630ece1bfb261967a85b472decd915126852d3c
tree2249b6fcae12626374ee147383bf039757c22c05
parent02a4347ecc3f6a18b1e11e7ff9d8f4f890a8f997
cifs: alloc_path_with_tree_prefix: do not append sep. if the path is empty

alloc_path_with_tree_prefix() concatenates tree prefix and the path.
Windows CIFS client does not add separator after the tree prefix if the path
is empty. Let's do the same.

This fixes mounting DFS namespaces with names containing non-ASCII symbols.

BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=215440
Signed-off-by: Eugene Korenevsky <ekorenevsky@astralinux.ru>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/smb2pdu.c