Tarsnap / tarsnap

Command-line client code for Tarsnap.
https://tarsnap.com
Other
865 stars 60 forks source link

write.c: include padding in final progress message #566

Closed gperciva closed 1 year ago

gperciva commented 1 year ago

At the moment, tarsnap -c --totals reports a number 1024 bytes higher than tarsnap -c --progress-bytes 1G. That's because --progress-bytes didn't update the size of the archive after archive_write_close, thereby missing the final 2 blocks of 512 padding bytes.

gperciva commented 1 year ago

(CI failure due to github actions is being a pain again)