cvs commit: src/lib/libarchive Makefile archive_write_set_format_pax.c archive_write_set_format_ustar.c src/lib/libarchive/test Makefile test_tar_filenames.c

Tim Kientzle kientzle at FreeBSD.org
Sat Apr 14 08:20:32 UTC 2007


kientzle    2007-04-14 08:20:31 UTC

  FreeBSD src repository

  Modified files:
    lib/libarchive       Makefile archive_write_set_format_pax.c 
                         archive_write_set_format_ustar.c 
    lib/libarchive/test  Makefile 
  Added files:
    lib/libarchive/test  test_tar_filenames.c 
  Log:
  Conventionally, tar archives have always included a trailing '/'
  for directories.  bsdtar used to add this, but that recently got
  lost somehow.  So now I'm adding it back in libarchive.
  The only odd part of doing this in libarchive:  Adding a directory to
  a tar archive and then reading it back again can yield a different name.
  
  Add a test case to exercise some boundary conditions with
  tar filenames and ensure that trailing slashes are added to
  dir names only as necessary.
  
  Thanks to: Oliver Lehmann for bringing this regression to my attention.
  
  Revision  Changes    Path
  1.66      +1 -1      src/lib/libarchive/Makefile
  1.40      +87 -65    src/lib/libarchive/archive_write_set_format_pax.c
  1.22      +16 -8     src/lib/libarchive/archive_write_set_format_ustar.c
  1.4       +1 -0      src/lib/libarchive/test/Makefile
  1.1       +156 -0    src/lib/libarchive/test/test_tar_filenames.c (new)


More information about the cvs-all mailing list