diff options
author | Ethan Yonker <dees_troy@teamw.in> | 2017-01-13 20:30:10 +0100 |
---|---|---|
committer | Dees Troy <dees_troy@teamw.in> | 2017-01-18 17:11:33 +0100 |
commit | 7118774ec94bb1a2e8ef7a5f8cbcb6b781ccfdd8 (patch) | |
tree | c04d4c315064be2dd94f58717ea4d2773f03fb87 /libtar/util.c | |
parent | ADBbackups: Fix wrong owner on binary backups. (diff) | |
download | android_bootable_recovery-7118774ec94bb1a2e8ef7a5f8cbcb6b781ccfdd8.tar android_bootable_recovery-7118774ec94bb1a2e8ef7a5f8cbcb6b781ccfdd8.tar.gz android_bootable_recovery-7118774ec94bb1a2e8ef7a5f8cbcb6b781ccfdd8.tar.bz2 android_bootable_recovery-7118774ec94bb1a2e8ef7a5f8cbcb6b781ccfdd8.tar.lz android_bootable_recovery-7118774ec94bb1a2e8ef7a5f8cbcb6b781ccfdd8.tar.xz android_bootable_recovery-7118774ec94bb1a2e8ef7a5f8cbcb6b781ccfdd8.tar.zst android_bootable_recovery-7118774ec94bb1a2e8ef7a5f8cbcb6b781ccfdd8.zip |
Diffstat (limited to '')
-rw-r--r-- | libtar/util.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libtar/util.c b/libtar/util.c index f472f38b5..7fb3f51f0 100644 --- a/libtar/util.c +++ b/libtar/util.c @@ -15,6 +15,7 @@ #include <stdio.h> #include <sys/param.h> #include <errno.h> +#include <linux/capability.h> #ifdef STDC_HEADERS # include <string.h> @@ -210,3 +211,11 @@ int_to_oct_ex(int64_t num, char *oct, size_t octlen) } int_to_oct(num, oct, octlen); } + +void print_caps(struct vfs_cap_data *cap_data) { + printf(" magic_etc=%u \n", cap_data->magic_etc); + printf(" data[0].permitted=%u \n", cap_data->data[0].permitted); + printf(" data[0].inheritable=%u \n", cap_data->data[0].inheritable); + printf(" data[1].permitted=%u \n", cap_data->data[1].permitted); + printf(" data[1].inheritable=%u \n", cap_data->data[1].inheritable); +} |