sstate: set mode explicitly when creating directories in sstate-cache

When creating directories in the sstate-cache, explicitly set the mode
passed to mkdir to 0775 so that the directories are group writable, as
otherwise they cannot be shared with other users.

(From OE-Core rev: 1b0624dffe1b8496533c86dfed873112c8c0a01b)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ross Burton
2020-09-28 17:19:00 +01:00
committed by Richard Purdie
parent d734975024
commit 20d9825ed6

View File

@@ -787,7 +787,7 @@ sstate_create_package () {
return
fi
mkdir -p `dirname ${SSTATE_PKG}`
mkdir --mode=0775 -p `dirname ${SSTATE_PKG}`
TFILE=`mktemp ${SSTATE_PKG}.XXXXXXXX`
# Use pigz if available