cvs commit: src/lib/libarchive archive_read_support_format_tar.c

Tim Kientzle kientzle at FreeBSD.org
Sat Sep 4 14:49:42 PDT 2004


kientzle    2004-09-04 21:49:42 UTC

  FreeBSD src repository

  Modified files:
    lib/libarchive       archive_read_support_format_tar.c 
  Log:
  Some old tar archives rely on "regular-file-plus-trailing-slash" to
  denote a directory.  Unfortunately, in the presence of GNU or POSIX
  extensions, this code was checking the truncated filename stored in the
  regular header rather than the full filename stored in the extended
  attribute.  As a result, long filenames with '/' in just the right
  position would trigger this check and be erroneously marked as
  directories.  Move the check so it only considers the full filename.
  Note: the check can't simply be disabled for archives that contain
  these extensions because there are some very broken archivers out
  there.
  
  Thanks to: Will Froning
  MFC after: 3 days
  
  Revision  Changes    Path
  1.27      +22 -12    src/lib/libarchive/archive_read_support_format_tar.c


More information about the cvs-src mailing list