Here's the fix for the paste bug introduced in coreutils-5.1.1.
* src/paste.c (paste_parallel): Declare local, chr, to be of type
`int', not `char', since it must hold EOF. This bug would make
paste infloop on some systems. Test failures reported by Nelson
H. F. Beebe and Christian Krackowizer.
Index: src/paste.c
===================================================================
RCS file: /fetish/cu/src/paste.c,v
retrieving revision 1.71
retrieving revision 1.72
diff -u -p -u -r1.71 -r1.72
--- src/paste.c 21 Jan 2004 23:37:59 -0000 1.71
+++ src/paste.c 23 Jan 2004 09:26:24 -0000 1.72
@@ -202,7 +202,7 @@ paste_parallel (size_t nfiles, char **fn
for (i = 0; fileptr[i] != ENDLIST && files_open; i++)
{
- char chr IF_LINT (= 0); /* Input character. */
+ int chr IF_LINT (= 0); /* Input character. */
size_t line_length = 0; /* Number of chars in line. */
if (fileptr[i] != CLOSED)
{
_______________________________________________
Bug-coreutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-coreutils