Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#129469 - jieyouxu:exp-msvc-ci, r=<try>
[Experimental] what if we use symlink_metadata r? ghost Follow up to information revealed in rust-lang#129431. The cargo branch contains a change: ```diff diff --git a/crates/cargo-util/src/paths.rs b/crates/cargo-util/src/paths.rs index 59e812f3aea..d2f023da3ce 100644 --- a/crates/cargo-util/src/paths.rs +++ b/crates/cargo-util/src/paths.rs `@@` -571,7 +571,9 `@@` where } fn set_not_readonly(p: &Path) -> io::Result<bool> { - let mut perms = p.metadata()?.permissions(); + // Note that `p` is possibly a symlink. What if this is + // `symlink_metadata`? + let mut perms = p.symlink_metadata()?.permissions(); if !perms.readonly() { return Ok(false); } ``` try-job: x86_64-msvc-ext
- Loading branch information