Commit 91c303df authored by Jeremy Soller's avatar Jeremy Soller

Do not set uid or gid if not asked to

parent 123350ae
......@@ -62,8 +62,8 @@ impl FileConfig {
} else {
0o0644
});
let uid = self.uid.unwrap_or(0);
let gid = self.gid.unwrap_or(0);
let uid = self.uid.unwrap_or(-1);
let gid = self.gid.unwrap_or(-1);
// chmod
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