Andreas Schwab <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> > > * 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? _______________________________________________ Bug-coreutils mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-coreutils
