From 93ac7d8468feec562b468e87e1e04b0afdec0951 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sat, 9 Jan 2010 19:56:15 +0100 Subject: cpio: improve help text; document two TODOs Signed-off-by: Denys Vlasenko --- archival/libunarchive/get_header_cpio.c | 4 ++++ archival/libunarchive/header_list.c | 1 + 2 files changed, 5 insertions(+) (limited to 'archival/libunarchive') diff --git a/archival/libunarchive/get_header_cpio.c b/archival/libunarchive/get_header_cpio.c index ddc49f70e..4507d538b 100644 --- a/archival/libunarchive/get_header_cpio.c +++ b/archival/libunarchive/get_header_cpio.c @@ -115,6 +115,10 @@ char FAST_FUNC get_header_cpio(archive_handle_t *archive_handle) if (archive_handle->filter(archive_handle) == EXIT_SUCCESS) { archive_handle->action_data(archive_handle); +//TODO: run "echo /etc/hosts | cpio -pv /tmp" twice. On 2nd run: +//cpio: etc/hosts not created: newer or same age file exists +//etc/hosts <-- should NOT show it +//2 blocks <-- should say "0 blocks" archive_handle->action_header(file_header); } else { data_skip(archive_handle); diff --git a/archival/libunarchive/header_list.c b/archival/libunarchive/header_list.c index 6ec2df363..b1c425aca 100644 --- a/archival/libunarchive/header_list.c +++ b/archival/libunarchive/header_list.c @@ -7,5 +7,6 @@ void FAST_FUNC header_list(const file_header_t *file_header) { +//TODO: cpio -vp DIR should output "DIR/NAME", not just "NAME" */ puts(file_header->name); } -- cgit v1.2.3