Preserve binary data when copying file streams

Copy the bytes returned by fread instead of treating each input chunk as a NUL-terminated string. Preserve the public stream positions and report read and write failures rather than returning success after a partial copy. Add binary boundary, current-position, native pipe error and full-device regression coverage.
This commit is contained in:
omrzk committed 2026-11-13 09:12:43 -06:00
1 parent b69d8a6013
commit 2dfc02e67d
4 files changed
+110 -5

No files matched your search

+1
View File
@@ -19,6 +19,7 @@ clean-local:
TESTS =
TESTS += chomp
TESTS += copyfile
TESTS += fcopyfile
TESTS += dir
TESTS += fexist
TESTS += fisdir