cvs commit: src/lib/libarchive archive_read_support_format_tar.c

Tim Kientzle kientzle at
Fri Jun 4 10:27:23 GMT 2004

kientzle    2004/06/04 03:27:23 PDT

  FreeBSD src repository

  Modified files:
    lib/libarchive       archive_read_support_format_tar.c 
  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

More information about the cvs-src mailing list