1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

Fix trans2findfirst for the large directory optimization

With

case sensitive = yes
preserve case = no
short preserve case = no
default case = upper

a "dir FOO.txt" would not find "FOO.TXT" because FOO.txt ends up unconverted in
the mask for mask_match.

Jeremy, please check!

Volker
This commit is contained in:
Volker Lendecke 2008-11-18 17:03:38 +01:00
parent 6ef719bf92
commit 6ce29dc9ad

View File

@ -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))) {