From 0a847b9d2a52758f5c2731dd6fa478372e51d318 Mon Sep 17 00:00:00 2001 From: "Florian RICHER (MrDev023)" Date: Sat, 24 Jul 2021 14:04:32 +0200 Subject: [PATCH] Fixes build error on Unix --- src/common/utils/extractor.rs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/common/utils/extractor.rs b/src/common/utils/extractor.rs index 53aec0d..5f76f03 100644 --- a/src/common/utils/extractor.rs +++ b/src/common/utils/extractor.rs @@ -39,16 +39,6 @@ pub fn extract_file(path: &PathBuf, outdir: &str) -> Option<()> { let mut outfile = File::create(&output_path).unwrap(); io::copy(&mut file, &mut outfile).unwrap(); } - - // Get and Set permissions - #[cfg(unix)] - { - use std::os::unix::fs::PermissionsExt; - - if let Some(mode) = file.unix_mode() { - fs::set_permissions(&outpath, fs::Permissions::from_mode(mode)).unwrap(); - } - } } Some(())