From d368bc5764c5e4f253ebdc398a00f95c10ac5be6 Mon Sep 17 00:00:00 2001 From: Nathan Fisher Date: Tue, 11 Jul 2023 01:11:16 -0400 Subject: [PATCH] Ensure directories are accessible --- src/node.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node.rs b/src/node.rs index 50e2ca1..70740d7 100644 --- a/src/node.rs +++ b/src/node.rs @@ -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(()) } }