aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-11-27 00:17:24 +0100
committerEelco Dolstra <edolstra@gmail.com>2019-11-27 00:17:39 +0100
commitdbc4f9d478814f3ce4ee23531502247d02c85911 (patch)
tree8ecdbde97ef3563672337dcd532e589428df3a2e
parente6c1d1b474b1f14753b27f35b2aad4051ffd9e8d (diff)
Fix macOS build
https://hydra.nixos.org/build/107466992
-rw-r--r--nix-rust/src/tarfile.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/nix-rust/src/tarfile.rs b/nix-rust/src/tarfile.rs
index 9e32a3f00..379d9098f 100644
--- a/nix-rust/src/tarfile.rs
+++ b/nix-rust/src/tarfile.rs
@@ -22,7 +22,7 @@ pub fn unpack_tarfile(source: Source, dest_dir: &str) -> Result<(), Error> {
fs::create_dir(dest_file)?;
}
tar::EntryType::Regular => {
- let mode = if file.header().mode()? & libc::S_IXUSR == 0 {
+ let mode = if file.header().mode()? & (libc::S_IXUSR as u32) == 0 {
0o666
} else {
0o777