1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-28 01:58:17 +03:00

s3: smbd: In unix_convert() component_was_mangled is always false for posix.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Jeremy Allison 2021-10-15 16:26:24 -07:00 committed by Ralph Boehme
parent 3911ca59f4
commit 1cc5a39420

View File

@ -1356,7 +1356,13 @@ NTSTATUS unix_convert(TALLOC_CTX *mem_ctx,
* just a component. JRA.
*/
if (mangle_is_mangled(state->name, state->conn->params)) {
if (state->posix_pathnames) {
/*
* POSIX names are never mangled and we must not
* call into mangling functions.
*/
state->component_was_mangled = false;
} else if (mangle_is_mangled(state->name, state->conn->params)) {
state->component_was_mangled = true;
}