cvs commit: src/lib/libarchive archive_read_extract.c

Tim Kientzle kientzle at FreeBSD.org
Wed Apr 28 22:19:42 PDT 2004


kientzle    2004/04/28 22:19:42 PDT

  FreeBSD src repository

  Modified files:
    lib/libarchive       archive_read_extract.c 
  Log:
  Implement ARCHIVE_EXTRACT_UNLINK for regular files.  This supports the
  -U flag to bsdtar.  Essentially, this option breaks existing hard
  links.  According to SUSv2, tar is supposed to overwrite existing
  files on extract by default which, in particular, preserves
  existing hard links.  Note that this is yet another bug in gtar; it
  appears to always break existing links.  (Maybe gtar's -U is broken?)
  
  I'm unsure about how to handle this for other file types; the current
  code always unlinks first unless the NO_OVERWRITE flag is specified.
  I've commented this issue liberally and will come back to it later.
  
  Revision  Changes    Path
  1.10      +49 -7     src/lib/libarchive/archive_read_extract.c


More information about the cvs-src mailing list