From: Ralph Boehme Date: Wed, 25 Mar 2020 06:47:22 +0000 (+0100) Subject: smbd: modernize unix_convert() replacing False with false X-Git-Tag: ldb-2.2.0~1200 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=818574508449eb115ffd105e67bfd5b36331fe25;p=thirdparty%2Fsamba.git smbd: modernize unix_convert() replacing False with false Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/filename.c b/source3/smbd/filename.c index b0ae6f64e8e..04febba464d 100644 --- a/source3/smbd/filename.c +++ b/source3/smbd/filename.c @@ -441,8 +441,8 @@ NTSTATUS unix_convert(TALLOC_CTX *ctx, char *end = NULL; char *dirpath = NULL; char *stream = NULL; - bool component_was_mangled = False; - bool name_has_wildcard = False; + bool component_was_mangled = false; + bool name_has_wildcard = false; bool posix_pathnames = (ucf_flags & UCF_POSIX_PATHNAMES); bool allow_wcard_last_component = (ucf_flags & UCF_ALWAYS_ALLOW_WCARD_LCOMP); @@ -1066,7 +1066,7 @@ NTSTATUS unix_convert(TALLOC_CTX *ctx, * Thomas Neumann . */ if (!conn->case_preserve || - (mangle_is_8_3(start, False, + (mangle_is_8_3(start, false, conn->params) && !conn->short_case_preserve)) { if (!strnorm(start,