From 882ef00955efb1bd59e410ad5770f9b09abd9c2f Mon Sep 17 00:00:00 2001 From: Ezri Zhu Date: Tue, 9 Jan 2024 20:31:37 -0500 Subject: [PATCH] keep toplevel dir perms --- try | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/try b/try index 8521b707..49525e74 100755 --- a/try +++ b/try @@ -73,7 +73,7 @@ try() { ## Only make the directory if the original is a directory too if [ -d "$mountpoint" ] then - mkdir -p "${SANDBOX_DIR}/upperdir/${mountpoint}" "${SANDBOX_DIR}/workdir/${mountpoint}" "${SANDBOX_DIR}/temproot/${mountpoint}" + mkdir -m "$(stat -c %a "$mountpoint")" -p "${SANDBOX_DIR}/upperdir/${mountpoint}" "${SANDBOX_DIR}/workdir/${mountpoint}" "${SANDBOX_DIR}/temproot/${mountpoint}" fi done <"$DIRS_AND_MOUNTS"