]> git.ipfire.org Git - thirdparty/coreutils.git/commit
cp: copy_file_data now supports ibytes
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 6 Aug 2025 14:53:35 +0000 (07:53 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 16 Sep 2025 06:17:34 +0000 (23:17 -0700)
commit560a39f7c04952f7ef7965c114115659a29b61fb
tree7cd3ba4541675b5fac572bee15be43caaa9fee3e
parentbcc5cdfb9ba5f92726191c3a7128bd4a83d3c0a4
cp: copy_file_data now supports ibytes

This does not affect current coreutils behavior;
it is merely to help make copy_file_data more useful in the future.
* src/copy-file-data.c (lseek_copy): New arg ibytes.
Caller changed.
(copy_file_data): Implement the ibytes arg; formerly
it was always treated as COUNT_MAX, though all callers
currently pass COUNT_MAX so there was no problem in practice.
src/copy-file-data.c