ls.c patch to avoid generating way-too-long time stamps

2005-03-11 Thread Paul Eggert
I installed this: 2005-03-11 Paul Eggert [EMAIL PROTECTED] * src/ls.c (TIME_STAMP_LEN_MAXIMUM): New constant. (long_time_expected_width, print_long_format): Use it, to avoid some possible denial-of-service attacks. * NEWS: Document this. *

Re: Bug in uniq?

2005-03-11 Thread Paul Eggert
Ian Sue Wing [EMAIL PROTECTED] writes: I have examined the file visually in a text editor, and confirmed that it has duplicate lines. Your text editor is ignoring the distinction between lines that end with CRLF and lines that end with plain LF. Cygwin uniq isn't ignoring that distinction,

Re: Bug in uniq?

2005-03-11 Thread James Youngman
On Fri, Mar 11, 2005 at 03:05:55PM -0500, Ian Sue Wing wrote: Yesterday I downloaded and installed a copy of CYGWIN. I am using the uniq utility to purge duplicate line entries from a large, tab-delimited file with several columns of data. (The file, which I have already run through sort, is

a memory bug in stat.c

2005-03-11 Thread Guochun Shi
hi, list I ran stat -c %s filename and get segmentation fault. I found there is a bug, here is a patch to fix it. diff -u stat.c.old stat.c --- stat.c.old 2003-03-22 16:32:02.0 -0600 +++ stat.c 2005-03-11 16:51:37.0 -0600 @@ -554,7 +554,7 @@ /* create a working copy

Re: Bug in uniq?

2005-03-11 Thread James Youngman
On Fri, Mar 11, 2005 at 03:05:55PM -0500, Ian Sue Wing wrote: I have examined the file visually in a text editor, You missed the fact that the file is not a Unix text file. It contains carriage-return characters, but only on some lines. There are 17637 carriage-return characters in the file.