summaryrefslogtreecommitdiffstats
path: root/scripts/oe-setup-builddir
diff options
context:
space:
mode:
authorAlex Franco <alejandro.franco@linux.intel.com>2015-08-28 17:34:04 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-01 11:43:58 +0100
commitcd61c1a6c5c4b27cfda837ec955a97c95dfa20c3 (patch)
tree49fd464ec03833597ebea3cda72d3906c49bd3c8 /scripts/oe-setup-builddir
parent79de172a937ee37ae1824ced5d09609b809e4989 (diff)
downloadpoky-cd61c1a6c5c4b27cfda837ec955a97c95dfa20c3.tar.gz
Fix mode +st on TMPDIR when creating it
A sanity check fails when TMPDIR has setuid, setgid set. It was proposed to fix this on TMPDIR creation instead of failing with a sanity test only. This patch handles removal of those special bits (and additonally, the sticky bit) from BUILDDIR and TMPDIR when these directories are created. [YOCTO #7669] (From OE-Core rev: 8236d57439640a185c0226312cd4903a3ce2f53b) Signed-off-by: Alex Franco <alejandro.franco@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/oe-setup-builddir')
-rwxr-xr-xscripts/oe-setup-builddir1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/oe-setup-builddir b/scripts/oe-setup-builddir
index add0b50e25..f5b7e4e2d0 100755
--- a/scripts/oe-setup-builddir
+++ b/scripts/oe-setup-builddir
@@ -24,6 +24,7 @@ if [ -z "$BUILDDIR" ]; then
24fi 24fi
25 25
26mkdir -p "$BUILDDIR/conf" 26mkdir -p "$BUILDDIR/conf"
27chmod -R -st "$BUILDDIR"
27 28
28if [ ! -d "$BUILDDIR" ]; then 29if [ ! -d "$BUILDDIR" ]; then
29 echo >&2 "Error: The builddir ($BUILDDIR) does not exist!" 30 echo >&2 "Error: The builddir ($BUILDDIR) does not exist!"