mirror of
https://codeberg.org/postscriptum/snac2nex.git
synced 2026-03-31 21:25:28 +00:00
set group read permissions by default
This commit is contained in:
parent
052a695ea3
commit
ed40dc4142
1 changed files with 5 additions and 0 deletions
|
|
@ -59,6 +59,11 @@ impl Attachment {
|
|||
}
|
||||
_ => panic!(), // warn as unexpected
|
||||
}
|
||||
#[cfg(any(target_os = "linux", target_os = "macos"))]
|
||||
{
|
||||
use std::{fs::Permissions, os::unix::fs::PermissionsExt};
|
||||
fs::set_permissions(target, Permissions::from_mode(0o640))?; // @TODO optional
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue