Skip to content

Commit

Permalink
Rollup merge of rust-lang#33560 - eddyb:symtidy, r=alexcrichton
Browse files Browse the repository at this point in the history
Use symlink_metadata in tidy to avoid panicking on broken symlinks.

r? @alexcrichton
  • Loading branch information
Manishearth committed May 12, 2016
2 parents 9812b71 + 5541fdf commit b171856
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/tidy/src/bins.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ pub fn check(path: &Path, bad: &mut bool) {
return
}

let metadata = t!(fs::metadata(&file), &file);
let metadata = t!(fs::symlink_metadata(&file), &file);
if metadata.mode() & 0o111 != 0 {
println!("binary checked into source: {}", file.display());
*bad = true;
Expand Down

0 comments on commit b171856

Please sign in to comment.