Skip to content

Commit

Permalink
keep toplevel dir perms
Browse files Browse the repository at this point in the history
  • Loading branch information
ezrizhu committed Jan 10, 2024
1 parent 81b21fc commit 882ef00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion try
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 882ef00

Please sign in to comment.