about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/coverageinfo/mod.rs
diff options
context:
space:
mode:
authorAdam Perry <adamperry@google.com>2022-01-26 22:32:21 +0000
committerTyler Mandry <tmandry@gmail.com>2022-01-28 20:38:39 +0000
commit8c9944c50d9e5bce19e1a787b035356461935c4d (patch)
tree67cd083037223c1f04f258aa726a75ff98c9b2d9 /compiler/rustc_codegen_llvm/src/coverageinfo/mod.rs
parenta7f375789bab1a4e4a291c963081a8ca7d2b6bd7 (diff)
downloadrust-8c9944c50d9e5bce19e1a787b035356461935c4d.tar.gz
rust-8c9944c50d9e5bce19e1a787b035356461935c4d.zip
Fix remove_dir_all on Fuchsia after CVE fix.
With the previous `is_dir` impl, we would attempt to unlink
a directory in the None branch, but Fuchsia supports returning
ENOTEMPTY from unlinkat() without the AT_REMOVEDIR flag because
we don't currently differentiate unlinking files and directories
by default.

On the Fuchsia side I've opened https://fxbug.dev/92273 to discuss
whether this is the correct behavior, but it doesn't seem like
addressing the error code is necessary to make our tests happy.

Updates std's libc crate to include DT_UNKNOWN for Fuchsia.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/coverageinfo/mod.rs')
0 files changed, 0 insertions, 0 deletions