Hi,

`tar -T` in busybox v1.21.0 adds files in reverse order of the actual
inclusion list:

    $ touch 1 2 3
    $ busybox-v1.21.0 echo -e '1\n2\n3' \
        | busybox-v1.21.0 tar -T- -c \
        | busybox-v1.21.0 tar t
    3
    2
    1

This is different from GNU tar:

    $ tar --version
    tar (GNU tar) 1.26
    Copyright (C) 2011 Free Software Foundation, Inc.
    $ echo -e '1\n2\n3' \
        | tar -T- -c \
        | tar t
    1
    2
    3

I'm not sure whether this is intended or not, but attached patch will fix this:

--
SASAKI Suguru
  mailto:[email protected]
  mailto:[email protected]

Attachment: 0001-tar-fix-tar-T-to-add-entries-in-the-exact-order-as-t.patch
Description: Binary data

_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to