diff options
author | kientzle <kientzle@FreeBSD.org> | 2004-03-06 01:05:32 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2004-03-06 01:05:32 +0000 |
commit | a96c560b594bffc7166cb1c5e63654f7399add46 (patch) | |
tree | 152c719b5ac7d877522326c6b689a8a6f2201fe9 /lib/libarchive/archive_read.3 | |
parent | eec560a7c3d39c4df33de9f491596645da8bd368 (diff) | |
download | FreeBSD-src-a96c560b594bffc7166cb1c5e63654f7399add46.zip FreeBSD-src-a96c560b594bffc7166cb1c5e63654f7399add46.tar.gz |
Add ARCHIVE_EXTRACT_UNLINK option to permit clients to
control how archive_extract handles pre-existing files.
(Not implemented yet, but documented.)
Diffstat (limited to 'lib/libarchive/archive_read.3')
-rw-r--r-- | lib/libarchive/archive_read.3 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/libarchive/archive_read.3 b/lib/libarchive/archive_read.3 index c2d2c3d..c5bd04e 100644 --- a/lib/libarchive/archive_read.3 +++ b/lib/libarchive/archive_read.3 @@ -178,6 +178,11 @@ Note that restoring of atime is not currently supported. .It Cm ARCHIVE_EXTRACT_NO_OVERWRITE Existing files on disk will not be overwritten. By default, existing files are unlinked before the new entry is written. +.It Cm ARCHIVE_EXTRACT_UNLINK +Existing files on disk will be unlinked and recreated from scratch. +By default, existing files are truncated and rewritten, but +the file is not recreated. +In particular, the default behavior does not break existing hard links. .El .It Fn archive_read_finish Complete the archive, invoke the close callback, and release |