|
|
@ -26,7 +26,7 @@ pub fn os_release(config: &Config) -> MkrootResult<()> {
|
|
|
|
match metadata(&path) {
|
|
|
|
match metadata(&path) {
|
|
|
|
Ok(meta) => {
|
|
|
|
Ok(meta) => {
|
|
|
|
let mut perms = meta.permissions();
|
|
|
|
let mut perms = meta.permissions();
|
|
|
|
perms.set_mode(0o755);
|
|
|
|
perms.set_mode(0o644);
|
|
|
|
if let Err(e) = set_permissions(&path, perms) {
|
|
|
|
if let Err(e) = set_permissions(&path, perms) {
|
|
|
|
return Err(MkrootError::from(format!(
|
|
|
|
return Err(MkrootError::from(format!(
|
|
|
|
"Error setting permissions {}: {}",
|
|
|
|
"Error setting permissions {}: {}",
|
|
|
|