Give users a hint when their locate database is too small.

Benjamin Kaduk kaduk at MIT.EDU
Wed Nov 14 21:48:32 UTC 2012


On Wed, 14 Nov 2012, Eitan Adler wrote:

> On 14 November 2012 11:32, Warren Block <wblock at wonkity.com> wrote:
>> On Tue, 13 Nov 2012, Benjamin Kaduk wrote:
>>>>
>>>>         if (len < (2*NBG))
>>>> -               errx(1, "database too small: %s", db);
>>>> +               errx(1, "database too small: %s\nRun
>>>> /usr/libexec/locate.updatedb", db);
>>>
>>>
>>> That looks longer than 80 characters, a limit given implicitly in style.9.
>
> I think he meant the source line is too long.

Indeed.  Apparently alpine wrapped it for my reply; I'm not sure why.

-Ben


More information about the freebsd-hackers mailing list