5feaacbab8
We want to check whether the next call we make will try to send more than 1<<30 bytes, not whether the total number of bytes to transfer is more than that. Interestingly, the read() fallback implementation already has the right check, presumably because files larger than libbuf are commonplace, whereas files larger than 1<<30 bytes are not. Tested locally using truncate to create a 2GiB file (which works) and a 2.5GiB file (which does not work), tar to create the tarfile, and then tar to extract them. |
||
---|---|---|
.. | ||
args.c | ||
commas.c | ||
deflate.c | ||
dirtree.c | ||
elf.c | ||
env.c | ||
hash.c | ||
lib.c | ||
lib.h | ||
llist.c | ||
lsm.h | ||
net.c | ||
password.c | ||
portability.c | ||
portability.h | ||
toyflags.h | ||
tty.c | ||
utf8.c | ||
xwrap.c |