summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAaro Koskinen2015-10-16 17:24:46 +0200
committerDenys Vlasenko2015-10-16 17:24:46 +0200
commit2735bc00e35c5fd8eec6d656f4d8a17ee2630c2a (patch)
treea04c7e75f1363e431431c24dc36549a5ff7e9595 /include
parent93dd9fd90ae284e7878767fe14bcb17e3edd9cf8 (diff)
downloadbusybox-2735bc00e35c5fd8eec6d656f4d8a17ee2630c2a.zip
busybox-2735bc00e35c5fd8eec6d656f4d8a17ee2630c2a.tar.gz
cpio: implement -R/--owner
Implement -R/--owner to force ownership of files. function old new delta cpio_main 532 586 +54 get_header_cpio 909 939 +30 print 36 65 +29 cpio_o 804 832 +28 cpio_TRAILER - 11 +11 packed_usage 30667 30662 -5 static.trailer 11 - -11 ------------------------------------------------------------------------------ (add/remove: 1/1 grow/shrink: 4/1 up/down: 152/-16) Total: 136 bytes Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r--include/bb_archive.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/bb_archive.h b/include/bb_archive.h
index 5d9e24c..2329d02 100644
--- a/include/bb_archive.h
+++ b/include/bb_archive.h
@@ -95,6 +95,7 @@ typedef struct archive_handle_t {
#endif
#if ENABLE_CPIO || ENABLE_RPM2CPIO || ENABLE_RPM
uoff_t cpio__blocks;
+ struct bb_uidgid_t cpio__owner;
struct hardlinks_t *cpio__hardlinks_to_create;
struct hardlinks_t *cpio__created_hardlinks;
#endif
@@ -159,6 +160,8 @@ struct BUG_tar_header {
};
+extern const char cpio_TRAILER[];
+
archive_handle_t *init_handle(void) FAST_FUNC;