Commit Graph
2 Commits
Author SHA1 Message Date
omrzk 8befd09cf5 Report read errors from fsendfile()
fsendfile() returns the number of bytes copied when reading the source
fails, as if it had reached the end of the file.  It stops when fread()
returns nothing, without checking why.

Check ferror() on the source and return -1, with errno from the failed
read.

Closes #24
2026-11-16 14:13:06 +01:00
Joachim Wiberg c9633ffbb0 Rename tests/ -> test/ and update internal refs.
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
2021-10-03 12:22:33 +02:00