-
Notifications
You must be signed in to change notification settings - Fork 671
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When FindFilesWithPattern
fails with STATUS_NOT_IMPLEMENTED
, DispatchDirectoryInformation
returns the first entry from FindFiles
#1149
Comments
My knee-jerk fix would be to keep a flag of whether |
…attern returned STATUS_NOT_IMPLEMENTED #1149
Thank you @Liryna, this looks good to me. |
I would like but I am facing some difficulty to get an EV Certificate right now to do the release. It might take some time... |
The latest version v2.0.6.1000 still doesn't seem to include this patch. https://github.com/dokan-dev/dokany/blob/v2.0.6.1000/dokan/directory.c#L701-L706 Are there any plans to release this patch? |
Environment
Check List
Description
When the
FindFilesWithPattern
is set to non-NULL
but fails withSTATUS_NOT_IMPLEMENTED
, the code inDispatchDirectoryInformation
will go on to useFindFiles
here.If
IoEvent->EventContext->Operation.Directory.SearchPatternLength
is set, then the assumption is that the output fromFindFiles
shall be filtered inMatchFiles
(going fromDispatchDirectoryInformation
>EndFindFilesCommon
>WriteDirectoryResults
>MatchFiles
).Now in
MatchFiles
, becauseFindFilesWithPattern
is non-NULL
, the variablepatternCheck
is not set toTRUE
here. That means that thisif
condition always succeeds and the function returns whatever was the first entry returned byFindFiles
(as opposed to the first entry that matches thepattern
.I first encountered the issue while trying to use the
dokan-rust
package and reported the issue there together with steps to reproduce it with thememfs
example.The text was updated successfully, but these errors were encountered: