[Toybox] [PATCH] Fix wc -c optimization.

Rob Landley rob at landley.net
Sat Feb 13 08:37:45 PST 2016


On 02/12/2016 10:16 AM, enh wrote:
> Check the fstat(2) return value rather than read uninitialized memory if
> it failed, and add a special case for files that claim to be zero-length
> but aren't (as is common in /proc on Linux).
> ---
>  toys/posix/wc.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Attachment?

Rob

 1455381465.0


More information about the Toybox mailing list