Fix macOS build

https://hydra.nixos.org/build/107466992
This commit is contained in:
Eelco Dolstra 2019-11-27 00:17:24 +01:00
parent e6c1d1b474
commit dbc4f9d478

View file

@ -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