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

Rob Landley rob at landley.net
Mon Dec 7 23:59:41 PST 2020


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



More information about the Toybox mailing list