Fixed deleting files using ignore_case option
parent
cc0cf6901d
commit
bb142bc742
|
@ -1812,7 +1812,7 @@ search:
|
|||
while (!ntfs_attr_lookup(AT_FILE_NAME, AT_UNNAMED, 0, CASE_SENSITIVE,
|
||||
0, NULL, 0, actx)) {
|
||||
char *s;
|
||||
BOOL case_sensitive = IGNORE_CASE;
|
||||
IGNORE_CASE_BOOL case_sensitive = IGNORE_CASE;
|
||||
|
||||
errno = 0;
|
||||
fn = (FILE_NAME_ATTR*)((u8*)actx->attr +
|
||||
|
@ -1844,8 +1844,9 @@ search:
|
|||
(long long unsigned)MREF_LE(fn->parent_directory));
|
||||
continue;
|
||||
}
|
||||
|
||||
if (fn->file_name_type == FILE_NAME_POSIX || case_sensitive_match)
|
||||
if (case_sensitive_match
|
||||
|| ((fn->file_name_type == FILE_NAME_POSIX)
|
||||
&& NVolCaseSensitive(ni->vol)))
|
||||
case_sensitive = CASE_SENSITIVE;
|
||||
|
||||
if (ntfs_names_are_equal(fn->file_name, fn->file_name_length,
|
||||
|
|
Loading…
Reference in New Issue