On 25/12/2025 12:07, Pádraig Brady wrote:
On 25/12/2025 06:42, Collin Funk wrote:
So, based on my interpretation, when this ftruncate fails the output
file, if it exists, should not be modified, since it occurs before the
copy.

This v2 patch also checks for that behavior. I will leave it a bit for
review.

+1

Actually the | operator doesn't guaranteed order, so
this will have to be done in independent steps:

  int exit_status = dd_copy () | synchronize_output ();

cheers,
Padraig

Reply via email to