Commit 33fa0af5 authored by Jeremy Soller's avatar Jeremy Soller

Fix uid and gid unwrap

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