diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-09-11 16:34:22 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-09-11 16:34:22 +0000 |
commit | 222f6adea5a1f4fee7ef5277e8b6faae7a5aee94 (patch) | |
tree | edd1affa1f76d77170307ab04d2384ce19450798 | |
parent | c938bec1cffe59aa6233d1660c04375ea3fb3091 (diff) | |
download | master-187ad058-222f6adea5a1f4fee7ef5277e8b6faae7a5aee94.tar.gz master-187ad058-222f6adea5a1f4fee7ef5277e8b6faae7a5aee94.tar.bz2 master-187ad058-222f6adea5a1f4fee7ef5277e8b6faae7a5aee94.zip |
ipkg-build: add ogargs to outer tar/ipk
prevent name:uid leaks of build system
Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46863 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rwxr-xr-x | scripts/ipkg-build | 2 |
1 files changed, 1 insertions, 1 deletions
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 |