From aaa3d05b8ef56ed3718ed25b94af58c4a623b274 Mon Sep 17 00:00:00 2001 From: Logan Sales Date: Fri, 7 Jan 2022 15:40:49 -0600 Subject: [PATCH] Remove set unix files permissions --- src/addons.rs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/addons.rs b/src/addons.rs index e2d33ae..bf7ac09 100644 --- a/src/addons.rs +++ b/src/addons.rs @@ -182,16 +182,6 @@ impl Manager { let mut outfile = fs::File::create(&outpath).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(); - } - } } let mut addon_path = self.addon_dir.to_owned();