aboutsummaryrefslogtreecommitdiff
path: root/nix-rust/src/tarfile.rs
diff options
context:
space:
mode:
Diffstat (limited to 'nix-rust/src/tarfile.rs')
-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