Fix updater permissions and refactor existing code.

This commit is contained in:
Gav Wood
2016-12-16 18:17:15 +01:00
parent b89d10239b
commit 14e4fefbcf
4 changed files with 13 additions and 14 deletions

View File

@@ -72,7 +72,7 @@ pub fn start(conf: Configuration, deps: Dependencies) -> Result<Option<SignerSer
fn codes_path(path: String) -> PathBuf {
let mut p = PathBuf::from(path);
p.push(CODES_FILENAME);
let _ = restrict_permissions_owner(&p);
let _ = restrict_permissions_owner(&p, true, false);
p
}