From d83676ec47fa359bad9ed949919edc68f84a4ef2 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Fri, 17 Oct 2008 14:03:56 +0000 Subject: 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 --- archival/cpio.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'archival/cpio.c') diff --git a/archival/cpio.c b/archival/cpio.c index 37b6b5cce..d39640d24 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; } -- cgit v1.2.3