Fix recursive mode -st on BUILDDIR setup

Removing recursive option from chmod -st on BUILDDIR as it would
take very long on existing build directories

[YOCTO 7669]

(From OE-Core rev: 170cfa6a92effd197beb4b29704749a6a44deac7)

Signed-off-by: Alex Franco <alejandro.franco@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Alex Franco 2015-09-02 17:45:57 -05:00 committed by Richard Purdie
parent 4287e5eca5
commit d8caef4f6e

View File

@ -24,7 +24,10 @@ if [ -z "$BUILDDIR" ]; then
fi fi
mkdir -p "$BUILDDIR/conf" 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 if [ ! -d "$BUILDDIR" ]; then
echo >&2 "Error: The builddir ($BUILDDIR) does not exist!" echo >&2 "Error: The builddir ($BUILDDIR) does not exist!"