]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Issue 682: Correctly write gnutar filenames of exactly 512 bytes
authorTim Kientzle <kientzle@gmail.com>
Wed, 1 Jun 2016 04:01:59 +0000 (21:01 -0700)
committerTim Kientzle <kientzle@gmail.com>
Wed, 1 Jun 2016 04:01:59 +0000 (21:01 -0700)
commited497f0e18339d5412e0dfd9e86e671187dadc9d
tree2c36557e26c92ddd643ff7147eac4a3e0eb7071e
parentba20a8b3b9de1a4baf018ceeb298dfd63bcaccfb
Issue 682: Correctly write gnutar filenames of exactly 512 bytes

Previous code omitted the final zero byte for filenames and
linknames.  This is usually okay since the final block is
padded with zero bytes, but if the filename exactly filled
the block, there would be no zero byte.
Makefile.am
libarchive/archive_write_set_format_gnutar.c
libarchive/test/CMakeLists.txt
libarchive/test/test_write_format_gnutar_filenames.c [new file with mode: 0644]