From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 14 16:35:40 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 64A1474B for ; Wed, 14 Nov 2012 16:35:40 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id C714D8FC12 for ; Wed, 14 Nov 2012 16:35:39 +0000 (UTC) Received: by mail-la0-f54.google.com with SMTP id j13so634535lah.13 for ; Wed, 14 Nov 2012 08:35:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eitanadler.com; s=0xdeadbeef; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=AtcjBqELp1Ny7l+2d2Kj+QAadcWjQ6zchXx5Jqd/EmQ=; b=t6RjEa33/MuRIO5p+Zkm9TzWkVKijA3a6beoQz8TGXyAqnJEszyoewxGAkNbJcnymJ so0cjzlYnFuJ5nrxPsZhhwI+2HYEJ8QR36ulLOT5NU5zoLpWTlGd4Tdl9fNHqNczAq6h anucx4PfiBB63jblBkz/7G3wcl7F6Xf3t4Bug= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:x-gm-message-state; bh=AtcjBqELp1Ny7l+2d2Kj+QAadcWjQ6zchXx5Jqd/EmQ=; b=PjaclNcEk9QtRDxqv9qV6593DgR83eEpIKuN90zdzUvOdcmvnaHW68Yj91KGymEivw 2b4IX7hUSo4zrFxy6fSLAunc0d4iAY52W47Av3kHEyya8rHg/yF3CRLhTjC51Pr2rVRL s0ljxrPAg4oUrSFtZr9fd9UtfIuVOv2OeTbXUzxFv6++L0ZhJKbGwAFoeKjn4IieU6ct 9p7taq3Wf3loEAlmLdIkbeoFPrarNX4MBCaQmvKToSRgiaG2JeY1yeCea5jt00uPCrDT IvEM3VjlFihn1sdjy3cDL/V6/JRJnEsAPsFezbb2lQzxFsOs4KU9qNfCGUVQNiglxa+v D69g== Received: by 10.112.104.2 with SMTP id ga2mr11074614lbb.48.1352910938467; Wed, 14 Nov 2012 08:35:38 -0800 (PST) MIME-Version: 1.0 Received: by 10.112.25.166 with HTTP; Wed, 14 Nov 2012 08:35:08 -0800 (PST) In-Reply-To: References: From: Eitan Adler Date: Wed, 14 Nov 2012 11:35:08 -0500 Message-ID: Subject: Re: Give users a hint when their locate database is too small. To: Warren Block Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQn2EgzR2eiHkfkVUihQhNMgG7OW8+P2CB1BP1OZ9dM3KXG645HFcFG/+fClaoCegnV6P+Cm Cc: FreeBSD Hackers , Benjamin Kaduk X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Nov 2012 16:35:40 -0000 On 14 November 2012 11:32, Warren Block 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. -- Eitan Adler