]> git.gag.com Git - debian/tar/commit
Fix appending to archive with changed blocking factor.
authorSergey Poznyakoff <gray@gnu.org.ua>
Mon, 14 Mar 2016 22:02:40 +0000 (00:02 +0200)
committerSergey Poznyakoff <gray@gnu.org.ua>
Mon, 14 Mar 2016 22:02:40 +0000 (00:02 +0200)
commit2a7c84b4a9d2a0740c7453e82433518218d1bb17
treec988df57abe6f05a5e1b90b12e2186dd6bf03d1e
parentda7845c6563e7337bf3e8364046a7989091f190e
Fix appending to archive with changed blocking factor.

* src/buffer.c (flush_archive): If previous reading attempt resulted
in short read, correctly use the remaining record space.
(backspace_output): Fix position calculation (still has to be
improved).

* tests/append05.at: New test case.
* tests/Makefile.am: Add new test.
* tests/testsuite.at: Likewise.
src/buffer.c
tests/Makefile.am
tests/append.at
tests/append05.at [new file with mode: 0644]
tests/testsuite.at