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.h.in | |
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.h.in')
-rw-r--r-- | lib/libarchive/archive.h.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libarchive/archive.h.in b/lib/libarchive/archive.h.in index 54fafcb..6a3b92e 100644 --- a/lib/libarchive/archive.h.in +++ b/lib/libarchive/archive.h.in @@ -190,6 +190,7 @@ ssize_t archive_read_data_into_fd(struct archive *, int fd); #define ARCHIVE_EXTRACT_PERM (2) /* Default: restore perm only for reg file*/ #define ARCHIVE_EXTRACT_TIME (4) /* Default: mod time not restored */ #define ARCHIVE_EXTRACT_NO_OVERWRITE (8) /* Default: Replace files on disk */ +#define ARCHIVE_EXTRACT_UNLINK (16) /* Default: don't unlink existing files */ int archive_read_extract(struct archive *, struct archive_entry *, int flags); |