Ensure directories are accessible

This commit is contained in:
Nathan Fisher 2023-07-11 01:11:16 -04:00
parent 377b4bbb05
commit d368bc5764

View File

@ -294,7 +294,7 @@ impl Node {
if nix::geteuid() == 0 {
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(())
}
}