remove_dir_all: try deleting the directory even if FILE_LIST_DIRECTORY access is denied#110918
Conversation
|
Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
|
|
Hm, the diff is quite a bit larger than the actual changes as it affects some indentation. The important bit is that it allows failing to opening the directory with traverse access and falls back to treating like any other file. |
This comment has been minimized.
This comment has been minimized.
If opening a directory with `FILE_LIST_DIRECTORY` access fails then we should try opening without requesting that access. We may still be able to delete it if it's empty or a link.
b3766d4 to
ddff7f0
Compare
remove_dir_all: try deleting the directory even if FILE_LIST_DIRECTORY access is denied
|
Looks simple enough to me! @bors r+ |
…iaskrgr Rollup of 6 pull requests Successful merges: - rust-lang#110766 (More core::fmt::rt cleanup.) - rust-lang#110873 (Migrate trivially translatable `rustc_parse` diagnostics) - rust-lang#110904 (rustdoc: rebind bound vars to type-outlives predicates) - rust-lang#110913 (Add some missing built-in lints) - rust-lang#110918 (`remove_dir_all`: try deleting the directory even if `FILE_LIST_DIRECTORY` access is denied) - rust-lang#110920 (Fix unavailable url) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
If opening a directory with
FILE_LIST_DIRECTORYaccess fails then we should try opening without requesting that access. We may still be able to delete it if it's empty or a link.Fixes rust-lang/cargo#12042