summaryrefslogtreecommitdiff
path: root/archival/cpio.c
diff options
context:
space:
mode:
authorGlenn L McGrath2002-11-04 23:47:31 +0000
committerGlenn L McGrath2002-11-04 23:47:31 +0000
commit8e940984231a5baf98b6e2a637477dd701d314a9 (patch)
tree5864c9961fdbfbcb8ecf09e78077544f9c8d12c3 /archival/cpio.c
parentf92caa7619d3f2dd7159a8bfb846e0f6dd4bab25 (diff)
downloadbusybox-8e940984231a5baf98b6e2a637477dd701d314a9.zip
busybox-8e940984231a5baf98b6e2a637477dd701d314a9.tar.gz
Change filter paramaters, filters can be more powefull now
Diffstat (limited to 'archival/cpio.c')
-rw-r--r--archival/cpio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/archival/cpio.c b/archival/cpio.c
index 0d06149..2aa1194 100644
--- a/archival/cpio.c
+++ b/archival/cpio.c
@@ -116,7 +116,7 @@ extern int cpio_main(int argc, char **argv)
tmp = tmp->next;
}
pending_hardlinks = 0; /* No more pending hardlinks, read next file entry */
- }
+ }
/* There can be padding before archive header */
data_align(archive_handle, 4);
@@ -138,7 +138,7 @@ extern int cpio_main(int argc, char **argv)
if ((cpio_header[5] != '1') && (cpio_header[5] != '2')) {
error_msg_and_die("Unsupported cpio format, use newc or crc");
- }
+ }
sscanf(cpio_header, "%6c%8x%8x%8x%8x%8x%8lx%8lx%16c%8x%8x%8x%8c",
dummy, &inode, (unsigned int*)&file_header->mode,
@@ -206,7 +206,7 @@ extern int cpio_main(int argc, char **argv)
file_header->device = (major << 8) | minor;
extract_flag = FALSE;
- if (archive_handle->filter(archive_handle->accept, archive_handle->reject, file_header->name) == EXIT_SUCCESS) {
+ if (archive_handle->filter(archive_handle) == EXIT_SUCCESS) {
struct stat statbuf;
extract_flag = TRUE;