Date: Fri, 4 Jun 2004 03:27:23 -0700 (PDT) From: Tim Kientzle <kientzle@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libarchive archive_read_support_format_tar.c Message-ID: <200406041027.i54ARNDg015620@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
kientzle 2004/06/04 03:27:23 PDT FreeBSD src repository Modified files: lib/libarchive archive_read_support_format_tar.c Log: When we go to read the next tar header, if we get zero bytes, accept that as end-of-archive. Otherwise, a short read at this point generates an error. This accomodates broken tar writers (such as the one apparently in use at AT&T Labs) that don't even write a single end-of-archive block. Note that both star and pdtar behave this way as well. In contrast, gtar doesn't complain in either case, and as a result, will generate no warning for a lot of trashed archives. Pointed out by: shells/ksh93 port (Thanks to Kris Kennaway) Revision Changes Path 1.16 +22 -3 src/lib/libarchive/archive_read_support_format_tar.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200406041027.i54ARNDg015620>