bug-coreutils
[Top][All Lists]
Advanced

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

Re: Coreutils 5.0.91: Fix crash in head/tail


From: Jim Meyering
Subject: Re: Coreutils 5.0.91: Fix crash in head/tail
Date: Thu, 04 Sep 2003 23:42:38 +0200

Andreas Schwab <address@hidden> wrote:
> tail crashes on read failures, like trying to read from a directory.
> head has the same bug, but it is harder to trigger.
>
> Andreas.
>
> 2003-09-03  Andreas Schwab  <address@hidden>
>
>       * src/tail.c (pipe_lines): Don't truncate return value from
>       safe_read.
>       * src/head.c (elide_tail_lines_pipe): Likewise.

Thank you for those patches!
I've applied them.

I presume this `crash' happens only on systems where
sizeof int < sizeof size_t, Right?

Can you provide a test case?
or at least describe how to reproduce the failures?




reply via email to

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