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

Warren Block wblock at wonkity.com
Wed Nov 14 16:32:43 UTC 2012


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.

There's a \n in there.


More information about the freebsd-hackers mailing list