let's actually set the file permissions this time

This commit is contained in:
Benjamin Morrison 2021-10-24 02:24:48 -04:00
parent 5d46c86e08
commit 116734fc4b
Signed by untrusted user: gbmor
GPG Key ID: 8F192E4720BB0DAC
1 changed files with 1 additions and 0 deletions

View File

@ -132,6 +132,7 @@ pub fn display() -> error::Result<()> {
fs::copy(db::PATH, localdest.clone())?;
let mut perms = fs::metadata(&localdest)?.permissions();
perms.set_mode(0o644);
fs::set_permissions(&localdest, perms)?;
}
Ok(())