[Toybox] [PATCH] tr: fix behavior if read fails.

enh enh at google.com
Tue Dec 8 10:34:21 PST 2020


ack

On Mon, Dec 7, 2020 at 11:48 PM Rob Landley <rob at landley.net> wrote:

> On 12/7/20 6:51 PM, enh via Toybox wrote:
> > (ping on this, in case you didn't see it...)
>
> I saw it, I'm just halfway through my own cleanup of tr. Well, more like
> 1/4 of
> the way through. :)
>
> I didn't consider the fix time critical because the error in question
> should
> only happen when there's filesystem corruption, media ejection, or a
> network
> mount loses connection. Even deleting the file won't annoy an existing
> filehandle unless it's a samba mount. Truncating the file so you're
> reading off
> the end just returns 0 on the next read...
>
> Rob
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20201208/8a0065f3/attachment.htm>


More information about the Toybox mailing list