aboutsummaryrefslogtreecommitdiff
path: root/archival/libunarchive
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-01-09 19:56:15 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2010-01-09 19:56:15 +0100
commit93ac7d8468feec562b468e87e1e04b0afdec0951 (patch)
treefa45240bf23cdf232f4b76b2d1321d4b29fff146 /archival/libunarchive
parentdc698bb038756a926aaa529bda1b939eab2c1676 (diff)
downloadbusybox-w32-93ac7d8468feec562b468e87e1e04b0afdec0951.tar.gz
busybox-w32-93ac7d8468feec562b468e87e1e04b0afdec0951.tar.bz2
busybox-w32-93ac7d8468feec562b468e87e1e04b0afdec0951.zip
cpio: improve help text; document two TODOs
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'archival/libunarchive')
-rw-r--r--archival/libunarchive/get_header_cpio.c4
-rw-r--r--archival/libunarchive/header_list.c1
2 files changed, 5 insertions, 0 deletions
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)
115 115
116 if (archive_handle->filter(archive_handle) == EXIT_SUCCESS) { 116 if (archive_handle->filter(archive_handle) == EXIT_SUCCESS) {
117 archive_handle->action_data(archive_handle); 117 archive_handle->action_data(archive_handle);
118//TODO: run "echo /etc/hosts | cpio -pv /tmp" twice. On 2nd run:
119//cpio: etc/hosts not created: newer or same age file exists
120//etc/hosts <-- should NOT show it
121//2 blocks <-- should say "0 blocks"
118 archive_handle->action_header(file_header); 122 archive_handle->action_header(file_header);
119 } else { 123 } else {
120 data_skip(archive_handle); 124 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 @@
7 7
8void FAST_FUNC header_list(const file_header_t *file_header) 8void FAST_FUNC header_list(const file_header_t *file_header)
9{ 9{
10//TODO: cpio -vp DIR should output "DIR/NAME", not just "NAME" */
10 puts(file_header->name); 11 puts(file_header->name);
11} 12}