forked from lix-project/lix
parent
e6c1d1b474
commit
dbc4f9d478
|
@ -22,7 +22,7 @@ pub fn unpack_tarfile(source: Source, dest_dir: &str) -> Result<(), Error> {
|
||||||
fs::create_dir(dest_file)?;
|
fs::create_dir(dest_file)?;
|
||||||
}
|
}
|
||||||
tar::EntryType::Regular => {
|
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
|
0o666
|
||||||
} else {
|
} else {
|
||||||
0o777
|
0o777
|
||||||
|
|
Loading…
Reference in a new issue