Skip to content
Commit 7eacba3b authored by Eugene Korenevsky's avatar Eugene Korenevsky Committed by Steve French
Browse files

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: default avatarEugene Korenevsky <ekorenevsky@astralinux.ru>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
parent 74ce6135
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment