]> code.ossystems Code Review - openembedded-core.git/commitdiff
Fix recursive mode -st on BUILDDIR setup
authorAlex Franco <alejandro.franco@linux.intel.com>
Wed, 2 Sep 2015 22:45:57 +0000 (17:45 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 2 Sep 2015 22:50:31 +0000 (23:50 +0100)
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@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/oe-setup-builddir

index f5b7e4e2d055155a94cea50d804710a17606e174..25d9f134a18d0954fe6e9ae943a57985aa2d34e7 100755 (executable)
@@ -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!"