projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0515da
)
When a size of 0 is passed to copyfd_size, dont do anything, it was
author
Glenn L McGrath
<bug1@ihug.co.nz>
Mon, 24 Nov 2003 23:50:07 +0000
(23:50 -0000)
committer
Glenn L McGrath
<bug1@ihug.co.nz>
Mon, 24 Nov 2003 23:50:07 +0000
(23:50 -0000)
reading untill eof which breaks tar
libbb/copyfd.c
patch
|
blob
|
history
diff --git
a/libbb/copyfd.c
b/libbb/copyfd.c
index 62ada8e02b2e1de4191450600fa28786d8022094..1ef994c98d1787d16303b0dd46401d38388c74b9 100644
(file)
--- a/
libbb/copyfd.c
+++ b/
libbb/copyfd.c
@@
-78,7
+78,10
@@
extern size_t bb_full_fd_action(int src_fd, int dst_fd, const size_t size, ssize
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)