summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/filename.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/smbd/filename.c b/source3/smbd/filename.c
index 562f1e8d94..3eb2d63734 100644
--- a/source3/smbd/filename.c
+++ b/source3/smbd/filename.c
@@ -206,6 +206,11 @@ NTSTATUS unix_convert(TALLOC_CTX *ctx,
*pp_saved_last_component = talloc_strdup(ctx,
orig_path);
}
+ if (conn->case_sensitive && !conn->case_preserve &&
+ !conn->short_case_preserve) {
+ strnorm(*pp_saved_last_component,
+ lp_defaultcase(SNUM(conn)));
+ }
}
if (!(name = talloc_strdup(ctx, orig_path))) {