Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Sep 2004 21:49:42 +0000 (UTC)
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:  <200409042149.i84LngeY096669@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200409042149.i84LngeY096669>