Ensure directories are accessible
This commit is contained in:
parent
377b4bbb05
commit
d368bc5764
@ -294,7 +294,7 @@ impl Node {
|
|||||||
if nix::geteuid() == 0 {
|
if nix::geteuid() == 0 {
|
||||||
nix::chown(dir.to_str().ok_or(Error::NulError)?, self.uid, self.gid)?;
|
nix::chown(dir.to_str().ok_or(Error::NulError)?, self.uid, self.gid)?;
|
||||||
}
|
}
|
||||||
nix::chmod(dir.to_str().ok_or(Error::BadPath)?, self.mode & 0o7777)?;
|
nix::chmod(dir.to_str().ok_or(Error::BadPath)?, self.mode & 0o7777 | 0o100)?;
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user