Skip to content

Commit

Permalink
Use symlink_metadata in tidy to avoid panicking on broken symlinks.
Browse files Browse the repository at this point in the history
  • Loading branch information
eddyb committed May 11, 2016
1 parent c049541 commit 5541fdf
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 5541fdf

Please sign in to comment.