mirror of
https://codeberg.org/postscriptum/snac2nex.git
synced 2026-04-01 13:45:28 +00:00
set default attachment file permissions to 644
This commit is contained in:
parent
ed40dc4142
commit
2926f23c22
1 changed files with 1 additions and 1 deletions
|
|
@ -62,7 +62,7 @@ impl Attachment {
|
||||||
#[cfg(any(target_os = "linux", target_os = "macos"))]
|
#[cfg(any(target_os = "linux", target_os = "macos"))]
|
||||||
{
|
{
|
||||||
use std::{fs::Permissions, os::unix::fs::PermissionsExt};
|
use std::{fs::Permissions, os::unix::fs::PermissionsExt};
|
||||||
fs::set_permissions(target, Permissions::from_mode(0o640))?; // @TODO optional
|
fs::set_permissions(target, Permissions::from_mode(0o644))?; // @TODO optional
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue