ipkg-build: add ogargs to outer tar/ipk
authorFelix Fietkau <nbd@openwrt.org>
Fri, 11 Sep 2015 16:34:22 +0000 (16:34 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 11 Sep 2015 16:34:22 +0000 (16:34 +0000)
prevent name:uid leaks of build system

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
SVN-Revision: 46863

scripts/ipkg-build

index a54e9b5af24569ff340257e917db3dc7acde6dc1..73cd87ceea1949222524b9f2a84a669061af8de0 100755 (executable)
@@ -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