All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eric Biggers <ebiggers@kernel.org>
To: Theodore Ts'o <tytso@mit.edu>
Cc: fstests@vger.kernel.org
Subject: [xfstests-bld PATCH] setup-buildchroot: make sure chroot dir is given mode 0755
Date: Thu, 23 Dec 2021 17:47:59 -0600	[thread overview]
Message-ID: <20211223234759.173181-1-ebiggers@kernel.org> (raw)

From: Eric Biggers <ebiggers@google.com>

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

Signed-off-by: Eric Biggers <ebiggers@google.com>
---
 setup-buildchroot | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/setup-buildchroot b/setup-buildchroot
index cdeb7fd..6c87d4d 100755
--- a/setup-buildchroot
+++ b/setup-buildchroot
@@ -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} \
-- 
2.34.1


             reply	other threads:[~2021-12-23 23:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-23 23:47 Eric Biggers [this message]
2021-12-24  4:02 ` [xfstests-bld PATCH] setup-buildchroot: make sure chroot dir is given mode 0755 Theodore Ts'o

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211223234759.173181-1-ebiggers@kernel.org \
    --to=ebiggers@kernel.org \
    --cc=fstests@vger.kernel.org \
    --cc=tytso@mit.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.