tar: fix tar -T to add entries in the exact order as the input list
authorSASAKI Suguru <suguru@sonik.org>
Thu, 15 Aug 2013 10:19:29 +0000 (12:19 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 15 Aug 2013 10:19:29 +0000 (12:19 +0200)
commit73fbe9dc86df6c7db425c2c3939ff98c8c44974e
treeb8b04f171828a93d1233bc82e175aa10cb514d35
parentfc364ba9e3e39bc8d75016a9bf66e4bbbb5a1c87
tar: fix tar -T to add entries in the exact order as the input list

This fixes tar to order files in tarball correctly in this case:

$ touch 1 2 3; echo -e '1\n2\n3' | tar -T- -c | tar t
1
2
3

Signed-off-by: SASAKI Suguru <suguru@sonik.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
archival/tar.c