Skip to content

Commit

Permalink
Remove execute bit from lock file permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
Danny Milosavljevic committed Oct 14, 2022
1 parent 8ce3204 commit ae12bb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_data_structures/src/flock/linux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ impl Lock {
.read(true)
.write(true)
.create(create)
.mode(libc::S_IRWXU as u32)
.mode(0o600)
.open(p)?;

let mut operation = if exclusive { libc::LOCK_EX } else { libc::LOCK_SH };
Expand Down

0 comments on commit ae12bb1

Please sign in to comment.