[BusyBox-cvs] busybox/archival/libunarchive data_extract_to_stdout.c, 1.3, 1.4
Glenn McGrath
bug1 at busybox.net
Mon Dec 22 21:02:43 UTC 2003
Update of /var/cvs/busybox/archival/libunarchive
In directory nail:/tmp/cvs-serv1017/archival/libunarchive
Modified Files:
data_extract_to_stdout.c
Log Message:
Fix a bug of mine where extracting files to stdout would extract to
much, modified patch from Bastian Blank
Index: data_extract_to_stdout.c
===================================================================
RCS file: /var/cvs/busybox/archival/libunarchive/data_extract_to_stdout.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- data_extract_to_stdout.c 21 Nov 2003 22:24:48 -0000 1.3
+++ data_extract_to_stdout.c 22 Dec 2003 21:02:41 -0000 1.4
@@ -18,5 +18,5 @@
extern void data_extract_to_stdout(archive_handle_t *archive_handle)
{
- bb_copyfd_eof(archive_handle->src_fd, fileno(stdout));
+ bb_copyfd_size(archive_handle->src_fd, fileno(stdout), archive_handle->file_header->size);
}
More information about the busybox-cvs
mailing list