(bsd)tar is broken on 6.1

Tim Kientzle tim at kientzle.com
Fri May 26 10:24:04 PDT 2006


Patrick M. Hausen wrote:
>>>I have narrowed the problem to a specific subdirectory and I think I
>>>have the explanation:
>>>
>>>-rw-r--r--  1 jmz  jmz    4312 Apr 16  1947 supclkrd.prg

Yes, libarchive in 6.1 has a broken assertion in
the tar-writing code that causes it to
(erroneously) reject files with very
old dates.

This is fixed in -CURRENT; I plan to MFC
a bunch of fixes like this to 6-STABLE
very soon.

In the meantime, you can fix this by
installing the most current libarchive
from:

  http://people.freebsd.org/~kientzle/libarchive

Or you can temporarily patch it by looking in
src/lib/libarchive/archive_write_format_pax.c
and changing the second call to
__archive_write_format_header_ustar()
so that the last argument is 0, not 1.
(The 1 here enables the above-mentioned
assertion checks.)

Tim


More information about the freebsd-stable mailing list