You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[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
0 commit comments