Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Apr 2004 22:19:42 -0700 (PDT)
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_extract.c
Message-ID:  <200404290519.i3T5Jg5Z070983@repoman.freebsd.org>

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



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