From 1a2fd4f86916c1bf9b1a751e83a65c5c085dc859 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 11 Sep 2015 16:34:22 +0000 Subject: [PATCH] ipkg-build: add ogargs to outer tar/ipk prevent name:uid leaks of build system Signed-off-by: Dirk Neukirchen SVN-Revision: 46863 --- scripts/ipkg-build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.25.1