[OE-core] [PATCHv3] Fix recursive mode -st on BUILDDIR setup
Alex Franco
alejandro.franco at linux.intel.com
Wed Sep 2 22:45:57 UTC 2015
Removing recursive option from chmod -st on BUILDDIR as it would
take very long on existing build directories
[YOCTO 7669]
Signed-off-by: Alex Franco <alejandro.franco at linux.intel.com>
---
scripts/oe-setup-builddir | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/scripts/oe-setup-builddir b/scripts/oe-setup-builddir
index f5b7e4e..25d9f13 100755
--- a/scripts/oe-setup-builddir
+++ b/scripts/oe-setup-builddir
@@ -24,7 +24,10 @@ if [ -z "$BUILDDIR" ]; then
fi
mkdir -p "$BUILDDIR/conf"
-chmod -R -st "$BUILDDIR"
+
+# Attempting to remove sticky and setuid bits from BUILDDIR and
+# BUILDDIR/conf directories. #TODO appropriate checks for this
+chmod -st "$BUILDDIR" "$BUILDDIR/conf"
if [ ! -d "$BUILDDIR" ]; then
echo >&2 "Error: The builddir ($BUILDDIR) does not exist!"
--
2.5.1
More information about the Openembedded-core
mailing list