summaryrefslogtreecommitdiffstats
path: root/lib/libarchive/archive_entry.c
diff options
context:
space:
mode:
authorkientzle <kientzle@FreeBSD.org>2005-03-13 02:53:42 +0000
committerkientzle <kientzle@FreeBSD.org>2005-03-13 02:53:42 +0000
commit4f2d6bca6d7e459e19bf8d134afc1097b3f66759 (patch)
tree4c9ecd42c1869019e457d6081215cc5c8a55edeb /lib/libarchive/archive_entry.c
parent380715dd3e96b98c0b648a751f6a0565cbee7bc0 (diff)
downloadFreeBSD-src-4f2d6bca6d7e459e19bf8d134afc1097b3f66759.zip
FreeBSD-src-4f2d6bca6d7e459e19bf8d134afc1097b3f66759.tar.gz
Support extracting entries with pathnames longer than PATH_MAX. In
testing, I've archived and restored dir trees with ~1MB pathnames. Most formats, of course, have much smaller limits.
Diffstat (limited to 'lib/libarchive/archive_entry.c')
-rw-r--r--lib/libarchive/archive_entry.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libarchive/archive_entry.c b/lib/libarchive/archive_entry.c
index 8c52aa5..f0f0042 100644
--- a/lib/libarchive/archive_entry.c
+++ b/lib/libarchive/archive_entry.c
@@ -598,6 +598,12 @@ archive_entry_set_pathname(struct archive_entry *entry, const char *name)
}
void
+archive_entry_copy_pathname(struct archive_entry *entry, const char *name)
+{
+ aes_copy_mbs(&entry->ae_pathname, name);
+}
+
+void
archive_entry_copy_pathname_w(struct archive_entry *entry, const wchar_t *name)
{
aes_copy_wcs(&entry->ae_pathname, name);
OpenPOWER on IntegriCloud