mirror of
https://github.com/samba-team/samba.git
synced 2025-03-01 04:58:35 +03:00
s3: smbd: Moving lp_posix_pathnames() out of the lower-level code.
Ensure we set posix_pathnames early. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
7fb3d286d2
commit
c808a63700
@ -229,7 +229,8 @@ NTSTATUS unix_convert(TALLOC_CTX *ctx,
|
||||
char *stream = NULL;
|
||||
bool component_was_mangled = False;
|
||||
bool name_has_wildcard = False;
|
||||
bool posix_pathnames = false;
|
||||
bool posix_pathnames = (lp_posix_pathnames() ||
|
||||
(ucf_flags & UCF_POSIX_PATHNAMES));
|
||||
bool allow_wcard_last_component =
|
||||
(ucf_flags & UCF_ALWAYS_ALLOW_WCARD_LCOMP);
|
||||
bool save_last_component = ucf_flags & UCF_SAVE_LCOMP;
|
||||
@ -348,9 +349,6 @@ NTSTATUS unix_convert(TALLOC_CTX *ctx,
|
||||
}
|
||||
}
|
||||
|
||||
posix_pathnames = (lp_posix_pathnames() ||
|
||||
(ucf_flags & UCF_POSIX_PATHNAMES));
|
||||
|
||||
/*
|
||||
* Strip off the stream, and add it back when we're done with the
|
||||
* base_name.
|
||||
|
Loading…
x
Reference in New Issue
Block a user