tar: fix --to-command wrt short writes
authorDenys Vlasenko <vda.linux@googlemail.com>
Sat, 26 Jun 2010 16:11:44 +0000 (18:11 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sat, 26 Jun 2010 16:11:44 +0000 (18:11 +0200)
commitd0a8a0d31243f2ac798531ced2cca45ddf1fea42
treece787a64a86b6bf9dd65a9ab7d38d704b9701c1f
parent894fa0ad62924bcfc2d37e045e36d25ad5784888
tar: fix --to-command wrt short writes

function                                             old     new   delta
bb_copyfd_exact_size                                  51      98     +47
bb_full_fd_action                                    362     394     +32
get_header_tar                                      1546    1558     +12
data_extract_to_command                              430     439      +9
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/0 up/down: 100/0)             Total: 100 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
archival/libunarchive/data_extract_to_command.c
libbb/copyfd.c