Re: tail(1) issue with large numbers

2017-02-01 Thread Stefan Sperling
On Wed, Feb 01, 2017 at 03:25:30PM +0100, Stefan Sperling wrote: > On Tue, Jan 31, 2017 at 04:22:24PM +0100, Martijn van Duren wrote: > > Here's a patch to allocate memory in chunks of 1024. > > This value arbitrarily chosen. > > > > It still won't save you if your input is lines long, >

Re: tail(1) issue with large numbers

2017-02-01 Thread Stefan Sperling
On Tue, Jan 31, 2017 at 04:22:24PM +0100, Martijn van Duren wrote: > Here's a patch to allocate memory in chunks of 1024. > This value arbitrarily chosen. > > It still won't save you if your input is lines long, > but it will safe you in this use case. > > martijn@ OK by me.

Re: tail(1) issue with large numbers

2017-01-31 Thread Martijn van Duren
On 01/31/17 15:34, Stefan Sperling wrote: > On Tue, Jan 31, 2017 at 03:36:21PM +0300, Soner Tari wrote: >>> Synopsis: With large line numbers, tail(1) makes the system unusable. >>> Category: system >>> Environment: >> System : OpenBSD 6.0 >> Details : OpenBSD 6.0 (GENERIC)

Re: tail(1) issue with large numbers

2017-01-31 Thread Stefan Sperling
On Tue, Jan 31, 2017 at 03:36:21PM +0300, Soner Tari wrote: > >Synopsis: With large line numbers, tail(1) makes the system unusable. > >Category: system > >Environment: > System  : OpenBSD 6.0 > Details : OpenBSD 6.0 (GENERIC) #2148: Tue Jul 26 12:55:20 > MDT 2016 >

tail(1) issue with large numbers

2017-01-31 Thread Soner Tari
>Synopsis: With large line numbers, tail(1) makes the system unusable. >Category: system >Environment: System  : OpenBSD 6.0 Details : OpenBSD 6.0 (GENERIC) #2148: Tue Jul 26 12:55:20 MDT 2016  dera...@amd64.openbsd.org:/usr/src/sys/arch/am