diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-11-27 00:17:24 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2019-11-27 00:17:39 +0100 |
commit | dbc4f9d478814f3ce4ee23531502247d02c85911 (patch) | |
tree | 8ecdbde97ef3563672337dcd532e589428df3a2e /nix-rust | |
parent | e6c1d1b474b1f14753b27f35b2aad4051ffd9e8d (diff) |
Fix macOS build
https://hydra.nixos.org/build/107466992
Diffstat (limited to 'nix-rust')
-rw-r--r-- | nix-rust/src/tarfile.rs | 2 |
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 |