Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b82ef911 authored by Elliott Hughes's avatar Elliott Hughes
Browse files

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
parent 3771cff8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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