ntdll: Implement a read_directory_getattrlist() function.
commit5d65b9d0c2af38e11b59719f3888944ad29b41b1
authorMatteo Bruni <mbruni@codeweavers.com>
Tue, 19 May 2015 21:59:06 +0000 (19 23:59 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 20 May 2015 08:32:09 +0000 (20 17:32 +0900)
treea0c5a8d9531b31be4ced859183cbd9a1a8bc5f07
parent5b911ed461c6f7f059668bac66bd49ddcd694045
ntdll: Implement a read_directory_getattrlist() function.

When searching for a specific filename on a case-insensitive filesystem
we first try with stat(). If stat() does find the file we currently
return the requested filename back.

That presents an issue when the application cares about the casing of the
actual file stored on-disk. Specifically, NtQueryDirectoryFile is
supposed to return the actual filename with correct casing.

One possible solution to the issue, without having to resort to manually
scanning the directory entries, is to make use of the OS X getattrlist()
function, since it can return the filename stored on the filesystem.
dlls/ntdll/directory.c