aboutsummaryrefslogtreecommitdiff
path: root/lib/libarchive/archive_entry.c
diff options
context:
space:
mode:
authorTim Kientzle <kientzle@FreeBSD.org>2004-06-27 23:16:42 +0000
committerTim Kientzle <kientzle@FreeBSD.org>2004-06-27 23:16:42 +0000
commit4660ecd1dcf195cf24ec9f81da3949b1d5d61e13 (patch)
tree2e600a07cf5a2831efef2f112c7038347d963e15 /lib/libarchive/archive_entry.c
parent6324e64978ecc71c7646bc8ad3a28371b11fe6ac (diff)
downloadsrc-4660ecd1dcf195cf24ec9f81da3949b1d5d61e13.tar.gz
src-4660ecd1dcf195cf24ec9f81da3949b1d5d61e13.zip
Add two new convenience functions to query the uid/gid from an
archive_entry. Update the Makefile MLINKS and manpage to bring it up-to-date with the current status of archive_entry. At least the manpage actually lists all of the functions now, even if it doesn't really yet explain them all.
Notes
Notes: svn path=/head/; revision=131211
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 0007e7a8e3cb..0a7611454c4f 100644
--- a/lib/libarchive/archive_entry.c
+++ b/lib/libarchive/archive_entry.c
@@ -384,6 +384,12 @@ archive_entry_fflags_text(struct archive_entry *entry)
return (f);
}
+gid_t
+archive_entry_gid(struct archive_entry *entry)
+{
+ return (entry->ae_stat.st_gid);
+}
+
const char *
archive_entry_gname(struct archive_entry *entry)
{
@@ -468,6 +474,12 @@ archive_entry_symlink(struct archive_entry *entry)
return (aes_get_mbs(&entry->ae_symlink));
}
+uid_t
+archive_entry_uid(struct archive_entry *entry)
+{
+ return (entry->ae_stat.st_uid);
+}
+
const char *
archive_entry_uname(struct archive_entry *entry)
{