mirror of
https://github.com/sheumann/hush.git
synced 2024-08-27 18:29:23 +00:00
When a size of 0 is passed to copyfd_size, dont do anything, it was
reading untill eof which breaks tar
This commit is contained in:
parent
f0515dad66
commit
c3498f678a
@ -78,8 +78,11 @@ 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)
|
||||
{
|
||||
if (size) {
|
||||
return(bb_full_fd_action(fd1, fd2, size, bb_full_write));
|
||||
}
|
||||
return(0);
|
||||
}
|
||||
|
||||
extern int bb_copyfd_eof(int fd1, int fd2)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user