coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] dd: don't exit successfully if seek= is used and ftruncate f


From: Pádraig Brady
Subject: Re: [PATCH] dd: don't exit successfully if seek= is used and ftruncate fails
Date: Thu, 25 Dec 2025 19:23:19 +0000
User-agent: Mozilla Thunderbird Beta

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

[Prev in Thread] Current Thread [Next in Thread]