summaryrefslogtreecommitdiff
path: root/archival/cpio.c
diff options
context:
space:
mode:
authorDenis Vlasenko2008-10-17 14:03:56 +0000
committerDenis Vlasenko2008-10-17 14:03:56 +0000
commitd83676ec47fa359bad9ed949919edc68f84a4ef2 (patch)
treebc813a7833f68625902a96d3625b33c28bac06a6 /archival/cpio.c
parentaa9eb1fc6718aec0a6a67b2dc748c3416056411e (diff)
downloadbusybox-d83676ec47fa359bad9ed949919edc68f84a4ef2.zip
busybox-d83676ec47fa359bad9ed949919edc68f84a4ef2.tar.gz
data_extract_all: do not complain if directory exists on mkdir
rpm/cpio: move "20653 blocks" printout from get_header_cpio to cpio_main - rpm doesn't want to have that
Diffstat (limited to 'archival/cpio.c')
-rw-r--r--archival/cpio.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/archival/cpio.c b/archival/cpio.c
index 37b6b5c..d39640d 100644
--- a/archival/cpio.c
+++ b/archival/cpio.c
@@ -344,5 +344,8 @@ int cpio_main(int argc UNUSED_PARAM, char **argv)
while (get_header_cpio(archive_handle) == EXIT_SUCCESS)
continue;
+ /* see get_header_cpio */
+ printf("%lu blocks\n", (unsigned long)(ptrdiff_t)(archive_handle->ah_priv[2]));
+
return EXIT_SUCCESS;
}