K 10 svn:author V 8 kientzle K 8 svn:date V 27 2004-04-29T05:19:42.000000Z K 7 svn:log V 609 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. END