Skip to content

Commit 4528aa6

Browse files
authored
Rollup merge of rust-lang#102543 - daym:patch-1, r=joshtriplett
Remove "execute" bit from lock file permissions Previously, flock would set the "execute" bit on Rust lock files. That makes no sense. This patch clears the "execute" bit on Rust lock files. See issue rust-lang#102531.
2 parents 46244f3 + ae12bb1 commit 4528aa6

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_data_structures/src/flock

1 file changed

+1
-1
lines changed

compiler/rustc_data_structures/src/flock/linux.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ impl Lock {
1818
.read(true)
1919
.write(true)
2020
.create(create)
21-
.mode(libc::S_IRWXU as u32)
21+
.mode(0o600)
2222
.open(p)?;
2323

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

0 commit comments

Comments
 (0)