set default attachment file permissions to 644

This commit is contained in:
postscriptum 2025-07-04 17:46:57 +03:00
parent ed40dc4142
commit 2926f23c22

View file

@ -62,7 +62,7 @@ impl Attachment {
#[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
fs::set_permissions(target, Permissions::from_mode(0o644))?; // @TODO optional
}
Ok(())
}