Translated the junctions to lower case when ignore_case is set

This commit is contained in:
Jean-Pierre André 2011-04-13 17:46:47 +02:00
parent 860cddd4db
commit 0e875d3039

View File

@ -200,8 +200,13 @@ static u64 ntfs_fix_file_name(ntfs_inode *dir_ni, ntfschar *uname,
*/ */
lemref = entry->indexed_file; lemref = entry->indexed_file;
mref = le64_to_cpu(lemref); mref = le64_to_cpu(lemref);
if (NVolCaseSensitive(vol) || !vol->locase) {
for (i=0; i<found->file_name_length; i++) for (i=0; i<found->file_name_length; i++)
uname[i] = found->file_name[i]; uname[i] = found->file_name[i];
} else {
for (i=0; i<found->file_name_length; i++)
uname[i] = vol->locase[found->file_name[i]];
}
} }
} }
ntfs_index_ctx_put(icx); ntfs_index_ctx_put(icx);