summaryrefslogtreecommitdiffstats
path: root/lib/libarchive/archive_entry.c
diff options
context:
space:
mode:
authorkientzle <kientzle@FreeBSD.org>2004-06-27 23:16:42 +0000
committerkientzle <kientzle@FreeBSD.org>2004-06-27 23:16:42 +0000
commit36a1ffc19fdb2f673d50d56144bf6e6e177efdc4 (patch)
tree2e600a07cf5a2831efef2f112c7038347d963e15 /lib/libarchive/archive_entry.c
parentbac8cc2a430f9c92e42c0e8b79eac42b782d818f (diff)
downloadFreeBSD-src-36a1ffc19fdb2f673d50d56144bf6e6e177efdc4.zip
FreeBSD-src-36a1ffc19fdb2f673d50d56144bf6e6e177efdc4.tar.gz
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.
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 0007e7a..0a76114 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)
{
OpenPOWER on IntegriCloud