Skip to contentSkip to conversation

setup-buildchroot: make sure chroot dir is given mode 0755

PATCH Applied Eric Biggers 2 participants 2 messages Dec 23, 2021 – Dec 24, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 setup-buildchroot: make sure chroot dir is given mode 0755

From: Eric Biggers <[email protected]>

Make setup-buildchroot work when the umask is set to 0077.

---
 setup-buildchroot | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
setup-buildchroot +1 -1
index cdeb7fd..6c87d4d 100755
@@ -569,7 +569,7 @@ run_in_chroot()
 
 create_chroot()
 {
-    mkdir -p "$CHROOT_DIR"
+    mkdir -p -m0755 "$CHROOT_DIR"
 
     test -z "${PROXY}" || export http_proxy=${PROXY}
     if ! run_cmd debootstrap --arch "$DEBIAN_ARCH" ${QEMU:+--foreign} \
Signature · 1 line
2.34.1