Re: uniq(1) is broken

2016-10-16 Thread Rin Okuyama
On 2016/10/16 15:18, Abhinav Upadhyay wrote: Your patch looks good, I tested and committed. Thanks for the fix :-) Fix confirmed. Thanks for your review and commit. Rin

Re: uniq(1) is broken

2016-10-16 Thread Abhinav Upadhyay
On Sun, Oct 16, 2016 at 6:58 AM, Rin Okuyama <rokuy...@rk.phys.keio.ac.jp> wrote: > uniq(1) is currently broken: > > % cat test > 1 > 12 > 1 > 1 > % uniq test > 1 > 12 > 1 > 1 > > This bug was introduced to uniq.c rev. 1.19, >

uniq(1) is broken

2016-10-15 Thread Rin Okuyama
uniq(1) is currently broken: % cat test 1 12 1 1 % uniq test 1 12 1 1 This bug was introduced to uniq.c rev. 1.19, http://cvsweb.netbsd.org/bsdweb.cgi/src/usr.bin/uniq/uniq.c#rev1.19 where the size of buffer and the length of line are mixed up. Please apply the attached