cpio: implement -R/--owner
authorAaro Koskinen <aaro.koskinen@iki.fi>
Fri, 16 Oct 2015 15:24:46 +0000 (17:24 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 16 Oct 2015 15:24:46 +0000 (17:24 +0200)
commit2735bc00e35c5fd8eec6d656f4d8a17ee2630c2a
treea04c7e75f1363e431431c24dc36549a5ff7e9595
parent93dd9fd90ae284e7878767fe14bcb17e3edd9cf8
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>
archival/Kbuild.src
archival/cpio.c
archival/libarchive/Kbuild.src
archival/libarchive/common.c [new file with mode: 0644]
archival/libarchive/get_header_cpio.c
coreutils/chown.c
include/bb_archive.h