diff options
author | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-11-21 22:24:57 +0000 |
---|---|---|
committer | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-11-21 22:24:57 +0000 |
commit | d77eade56a2e7bf8bef3caafb69d2079c16b57d6 (patch) | |
tree | e949e5879a7083bac9e2da249363f9c613d0a409 /archival/libunarchive/get_header_tar.c | |
parent | 6ed9d590d5323fae0933b685181eb8dcd640844b (diff) | |
download | busybox-w32-d77eade56a2e7bf8bef3caafb69d2079c16b57d6.tar.gz busybox-w32-d77eade56a2e7bf8bef3caafb69d2079c16b57d6.tar.bz2 busybox-w32-d77eade56a2e7bf8bef3caafb69d2079c16b57d6.zip |
As we no longer use function pointers for read in common archiving code
archive_xread can be replaced with bb_full_read, and archive_copy_file
with bb_copyfd*
bb_copyfd is split into two functions bb_copyfd_size and bb_copyfd_eof,
they share a common backend.
git-svn-id: svn://busybox.net/trunk/busybox@7984 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'archival/libunarchive/get_header_tar.c')
-rw-r--r-- | archival/libunarchive/get_header_tar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/archival/libunarchive/get_header_tar.c b/archival/libunarchive/get_header_tar.c index d55189f42..603535a4c 100644 --- a/archival/libunarchive/get_header_tar.c +++ b/archival/libunarchive/get_header_tar.c | |||
@@ -57,7 +57,7 @@ extern char get_header_tar(archive_handle_t *archive_handle) | |||
57 | /* Align header */ | 57 | /* Align header */ |
58 | data_align(archive_handle, 512); | 58 | data_align(archive_handle, 512); |
59 | 59 | ||
60 | if (archive_xread(archive_handle, tar.raw, 512) != 512) { | 60 | if (bb_full_read(archive_handle->src_fd, tar.raw, 512) != 512) { |
61 | /* Assume end of file */ | 61 | /* Assume end of file */ |
62 | return(EXIT_FAILURE); | 62 | return(EXIT_FAILURE); |
63 | } | 63 | } |