Cygwin: FILE_OPEN_NO_RECALL is incompatible with FILE_DIRECTORY_FILE
commit56e7563b9aa665f35b657537e46a7feb4726f763
authorCorinna Vinschen <corinna@vinschen.de>
Thu, 4 Apr 2024 15:36:01 +0000 (4 17:36 +0200)
committerCorinna Vinschen <corinna@vinschen.de>
Thu, 4 Apr 2024 16:21:13 +0000 (4 18:21 +0200)
tree7d26e818cefb482877446d989bee6dd7b3fddfd2
parented50a50b9b551ed693d28cd458a49e5196d27f06
Cygwin: FILE_OPEN_NO_RECALL is incompatible with FILE_DIRECTORY_FILE

If FILE_DIRECTORY_FILE is given, FILE_OPEN_NO_RECALL is not allowed,
otherwise NtCreateFile returns STATUS_INVALID_PARAMETER.

Drop FILE_OPEN_NO_RECALL where FILE_DIRECTORY_FILE is specified.

Fixes: f6b56abec186 ("Cygwin: try to avoid recalling offline files")
Reported-by: Bruce Jerrick <bmj001@gmail.com>
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
winsup/cygwin/fhandler/disk_file.cc
winsup/cygwin/path.cc
winsup/cygwin/release/3.5.4 [new file with mode: 0644]