Rollup merge of #33560 - eddyb:symtidy, r=alexcrichton
Use symlink_metadata in tidy to avoid panicking on broken symlinks. r? @alexcrichton
This commit is contained in:
commit
f5462013ee
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ pub fn check(path: &Path, bad: &mut bool) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
let metadata = t!(fs::metadata(&file), &file);
|
let metadata = t!(fs::symlink_metadata(&file), &file);
|
||||||
if metadata.mode() & 0o111 != 0 {
|
if metadata.mode() & 0o111 != 0 {
|
||||||
println!("binary checked into source: {}", file.display());
|
println!("binary checked into source: {}", file.display());
|
||||||
*bad = true;
|
*bad = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue