Rust's remove_dir_all is broken #3575
Labels
bug
Something isn't working
🕵️ needs investigation
The issue/PR needs further investigation
needs-tests
priority-medium
Medium priority issue
🏚 stale
Inactive issues or PR
Milestone
Describe the bug
fd_readdir
skipscookie
directory entries.cookie
is just an index into the sorted list of files in the directory. If that list changes between twofd_readdir
calls,cookie
won't refer to the intended continuation point.Steps to reproduce
Prepare the following rust program:
(result)
Execute:
Actual behavior
and the file
foo/gah
will still remain.Expected behavior
foo/
removed successfully.Additional context
--dir
and--mapdir
, both are broken.The text was updated successfully, but these errors were encountered: