From b82ef911f9cd3e8da245dc438f931a5f84122a1b Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Tue, 25 Jun 2019 09:07:41 -0700 Subject: [PATCH] Don't use tar's -p with -rf, where it makes no sense. -p only applies to tar invocations that cause extraction, but -rf is just appending to a tar file. toybox tar doesn't have -p, and it doesn't seem worth implementing if this is our only "user". Test: treehugger Change-Id: I025c496b04cb57cb31ba81fd516fd40b158bc06b --- tools/mktarball.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/mktarball.sh b/tools/mktarball.sh index ef0fe86db5..ced7e174f9 100755 --- a/tools/mktarball.sh +++ b/tools/mktarball.sh @@ -37,7 +37,7 @@ for f in ${subdirs} ${files} ; do # echo "$f: dir: $is_dir curr: $curr_perms uid: $new_uid gid: $new_gid "\ # "perms: $new_perms" tar --no-recursion --numeric-owner --owner $new_uid \ - --group $new_gid --mode $new_perms -p -rf ${target_tar} ${f} + --group $new_gid --mode $new_perms -rf ${target_tar} ${f} done if [ $? -eq 0 ] ; then