[BusyBox-cvs] busybox/libbb copyfd.c,1.8,1.9
Glenn McGrath
bug1 at busybox.net
Mon Nov 24 23:50:15 UTC 2003
Update of /var/cvs/busybox/libbb
In directory winder:/tmp/cvs-serv27473/libbb
Modified Files:
copyfd.c
Log Message:
When a size of 0 is passed to copyfd_size, dont do anything, it was
reading untill eof which breaks tar
Index: copyfd.c
===================================================================
RCS file: /var/cvs/busybox/libbb/copyfd.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- copyfd.c 22 Nov 2003 02:13:41 -0000 1.8
+++ copyfd.c 24 Nov 2003 23:50:07 -0000 1.9
@@ -78,7 +78,10 @@
extern int bb_copyfd_size(int fd1, int fd2, const off_t size)
{
- return(bb_full_fd_action(fd1, fd2, size, bb_full_write));
+ if (size) {
+ return(bb_full_fd_action(fd1, fd2, size, bb_full_write));
+ }
+ return(0);
}
extern int bb_copyfd_eof(int fd1, int fd2)
More information about the busybox-cvs
mailing list