Skip to content
Snippets Groups Projects
Commit 33fa0af5 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Fix uid and gid unwrap

parent 91c303df
No related branches found
No related tags found
No related merge requests found
......@@ -62,8 +62,8 @@ impl FileConfig {
} else {
0o0644
});
let uid = self.uid.unwrap_or(-1);
let gid = self.gid.unwrap_or(-1);
let uid = self.uid.unwrap_or(!0);
let gid = self.gid.unwrap_or(!0);
// chmod
fs::set_permissions(path, fs::Permissions::from_mode(mode))?;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment