[BusyBox] tar -O extracts too much

Bastian Blank waldi at debian.org
Mon Dec 22 20:02:35 UTC 2003


hi folks

tar -O extracts to much. the attached patch hopefully fix the problem.

bastian

-- 
It is a human characteristic to love little animals, especially if
they're attractive in some way.
		-- McCoy, "The Trouble with Tribbles", stardate 4525.6
-------------- next part --------------
Index: archival/libunarchive/data_extract_to_stdout.c
===================================================================
--- archival/libunarchive/data_extract_to_stdout.c	(revision 77)
+++ archival/libunarchive/data_extract_to_stdout.c	(working copy)
@@ -18,5 +18,7 @@
 
 extern void data_extract_to_stdout(archive_handle_t *archive_handle)
 {
-	bb_copyfd_eof(archive_handle->src_fd, fileno(stdout));
+	file_header_t *file_header = archive_handle->file_header;
+
+	bb_copyfd_size(archive_handle->src_fd, fileno(stdout), file_header->size);
 }
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://lists.busybox.net/pipermail/busybox/attachments/20031222/42001045/attachment-0002.pgp 


More information about the busybox mailing list