set group read permissions by default

This commit is contained in:
postscriptum 2025-07-04 17:11:00 +03:00
parent 052a695ea3
commit ed40dc4142

View file

@ -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(())
}
}