summaryrefslogtreecommitdiffstats
path: root/lib/libarchive/archive_entry.c
diff options
context:
space:
mode:
authorkientzle <kientzle@FreeBSD.org>2007-07-15 19:10:34 +0000
committerkientzle <kientzle@FreeBSD.org>2007-07-15 19:10:34 +0000
commit235eaa1de0144fe4b74f0955091911fb67fffa86 (patch)
tree0a92e6da312e1c5b2f59612c3d02a6373a8e46d8 /lib/libarchive/archive_entry.c
parentac6c4bee91669e490f5a9794c11a8ce9b42b4f00 (diff)
downloadFreeBSD-src-235eaa1de0144fe4b74f0955091911fb67fffa86.zip
FreeBSD-src-235eaa1de0144fe4b74f0955091911fb67fffa86.tar.gz
Add archive_entry_copy_gname() and archive_entry_copy_uname()
functions. Approved by: re (bmah) MFC after: 3 days
Diffstat (limited to 'lib/libarchive/archive_entry.c')
-rw-r--r--lib/libarchive/archive_entry.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/libarchive/archive_entry.c b/lib/libarchive/archive_entry.c
index 6123a6a..3f6984d 100644
--- a/lib/libarchive/archive_entry.c
+++ b/lib/libarchive/archive_entry.c
@@ -652,6 +652,12 @@ archive_entry_set_gname(struct archive_entry *entry, const char *name)
}
void
+archive_entry_copy_gname(struct archive_entry *entry, const char *name)
+{
+ aes_copy_mbs(&entry->ae_gname, name);
+}
+
+void
archive_entry_copy_gname_w(struct archive_entry *entry, const wchar_t *name)
{
aes_copy_wcs(&entry->ae_gname, name);
@@ -836,6 +842,12 @@ archive_entry_set_uname(struct archive_entry *entry, const char *name)
}
void
+archive_entry_copy_uname(struct archive_entry *entry, const char *name)
+{
+ aes_copy_mbs(&entry->ae_uname, name);
+}
+
+void
archive_entry_copy_uname_w(struct archive_entry *entry, const wchar_t *name)
{
aes_copy_wcs(&entry->ae_uname, name);
OpenPOWER on IntegriCloud