From: Felix Fietkau Date: Fri, 11 Sep 2015 16:34:22 +0000 (+0000) Subject: ipkg-build: add ogargs to outer tar/ipk X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=1a2fd4f86916c1bf9b1a751e83a65c5c085dc859;p=openwrt%2Fstaging%2Fyousong.git ipkg-build: add ogargs to outer tar/ipk prevent name:uid leaks of build system Signed-off-by: Dirk Neukirchen SVN-Revision: 46863 --- diff --git a/scripts/ipkg-build b/scripts/ipkg-build index a54e9b5af2..73cd87ceea 100755 --- a/scripts/ipkg-build +++ b/scripts/ipkg-build @@ -152,7 +152,7 @@ echo "2.0" > $tmp_dir/debian-binary pkg_file=$dest_dir/${pkg}_${version}_${arch}.ipk rm -f $pkg_file -( cd $tmp_dir && $TAR --format=gnu --sort=name -zcf $pkg_file --mtime="$TIMESTAMP" ./debian-binary ./data.tar.gz ./control.tar.gz ) +( cd $tmp_dir && $TAR $ogargs --format=gnu --sort=name -zcf $pkg_file --mtime="$TIMESTAMP" ./debian-binary ./data.tar.gz ./control.tar.gz ) rm $tmp_dir/debian-binary $tmp_dir/data.tar.gz $tmp_dir/control.tar.gz rmdir $tmp_dir