On Nov 24 2025, Chet Ramey wrote:

> On 11/22/25 5:08 AM, Andreas Schwab wrote:
>> On Nov 21 2025, Chet Ramey wrote:
>> 
>>> Yes, this defeats the bash check. I tend to agree with kre that this is
>>> a Linux kernel bug, but here we are.
>> I don't think so.  This can happen with any file (even "normal" regular
>> ones) if another process is modifying it just between the stat and the
>> read calls.
>
> The problem is whether or not you think this is something that can happen
> to a shell script, and whether the file `shrinking' indicates something
> to be concerned about.

The use of the unspecified value of errno is certainly a bug in bash.

-- 
Andreas Schwab, SUSE Labs, [email protected]
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."

Reply via email to