[Android] compile-medialibrary.sh: force uid/gid during tarball extraction
Simon Latapie
git at videolan.org
Wed Aug 21 14:14:45 CEST 2019
vlc-android | branch: master | Simon Latapie <garf at videolan.org> | Fri Jul 19 19:33:13 2019 +0200| [ce62f92b58730c5575fe798d81797c44399e60e4] | committer: Jean-Baptiste Kempf
compile-medialibrary.sh: force uid/gid during tarball extraction
Under rare circonstances, tar will try to preserve uid/gid no matter what,
and fail.
This can happen for example when trying to build the contribs/extras as a
privileged user inside a namespaced container.
> https://code.videolan.org/videolan/vlc-android/commit/ce62f92b58730c5575fe798d81797c44399e60e4
---
compile-medialibrary.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/compile-medialibrary.sh b/compile-medialibrary.sh
index 0954acd11..146ae38df 100755
--- a/compile-medialibrary.sh
+++ b/compile-medialibrary.sh
@@ -56,7 +56,7 @@ if [ ! -d "${MEDIALIBRARY_MODULE_DIR}/${SQLITE_RELEASE}" ]; then
echo "Wrong sha1 for ${SQLITE_RELEASE}.tar.gz"
exit 1
fi
- tar -xzf ${SQLITE_RELEASE}.tar.gz
+ tar -xozf ${SQLITE_RELEASE}.tar.gz
rm -f ${SQLITE_RELEASE}.tar.gz
fi
cd ${MEDIALIBRARY_MODULE_DIR}/${SQLITE_RELEASE}
More information about the Android
mailing list