cvs commit: src/lib/libarchive archive_write_disk.c

Tim Kientzle kientzle at
Wed Aug 27 04:36:18 UTC 2008

kientzle    2008-08-27 04:36:07 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_7)
    lib/libarchive       archive_write_disk.c 
  SVN rev 182228 on 2008-08-27 04:36:07Z by kientzle
  MFC r182093: Ignore NO_OVERWRITE_NEWER if the current object is a directory.
  Before this, the often-recommended incantation
     find -d . | cpio -p <target>
  fails to properly carry through dir metadata because each
  file copy implicitly creates the parent dir, which cpio subsequently
  refuses to overwrite.  With this patch, the incantation works
  with or without the -d option to find because without it, there
  is no implicit dir creation, and with it, the subsequent dir
  restore will update the metadata on the dir.
  Revision  Changes    Path  +5 -1      src/lib/libarchive/archive_write_disk.c

More information about the cvs-all mailing list