cvs commit: src/lib/libarchive archive_read_support_format_tar.c

Tim Kientzle kientzle at FreeBSD.org
Mon Jun 7 04:32:16 GMT 2004


kientzle    2004-06-07 04:32:10 UTC

  FreeBSD src repository

  Modified files:
    lib/libarchive       archive_read_support_format_tar.c 
  Log:
  Tar bidder should just return a zero bid ("not me!") if
  it sees a truncated input the first time it gets called.
  (In particular, files shorter than 512 bytes cannot be tar archives.)
  This allows the top-level archive_read_next_header code to
  generate a proper error message for unrecognized file types.
  
  Pointed out by: numerous ports that expect tar to extract non-tar files ;-(
  Thanks to: Kris Kennaway
  
  Revision  Changes    Path
  1.18      +9 -3      src/lib/libarchive/archive_read_support_format_tar.c


More information about the cvs-src mailing list