mirror of
https://git.code.sf.net/p/ntfs-3g/ntfs-3g.git
synced 2024-11-23 18:14:24 +08:00
Translated the junctions to lower case when ignore_case is set
When ignore_case is set, the file names are returned lower-case in readdir() in order to make file name completions possible. This patch does the same for junction points to avoid directory locks when used with non-matching names.
This commit is contained in:
parent
b492b313f9
commit
e4db980830
@ -200,8 +200,13 @@ static u64 ntfs_fix_file_name(ntfs_inode *dir_ni, ntfschar *uname,
|
||||
*/
|
||||
lemref = entry->indexed_file;
|
||||
mref = le64_to_cpu(lemref);
|
||||
if (NVolCaseSensitive(vol) || !vol->locase) {
|
||||
for (i=0; i<found->file_name_length; 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);
|
||||
|
Loading…
Reference in New Issue
Block a user