From owner-cvs-src-old@FreeBSD.ORG Fri Jul 24 13:40:45 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6CCB3106566B for ; Fri, 24 Jul 2009 13:40:45 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 56C8F8FC13 for ; Fri, 24 Jul 2009 13:40:45 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n6ODejvI017930 for ; Fri, 24 Jul 2009 13:40:45 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n6ODej5X017929 for cvs-src-old@freebsd.org; Fri, 24 Jul 2009 13:40:45 GMT (envelope-from jhb@repoman.freebsd.org) Message-Id: <200907241340.n6ODej5X017929@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jhb@repoman.freebsd.org using -f From: John Baldwin Date: Fri, 24 Jul 2009 13:40:25 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/usr.bin/locate/locate fastfind.c locate.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Jul 2009 13:40:45 -0000 jhb 2009-07-24 13:40:25 UTC FreeBSD src repository Modified files: usr.bin/locate/locate fastfind.c locate.c Log: SVN rev 195839 on 2009-07-24 13:40:25Z by jhb Move the check to ensure the locate database has the minimum required size when using mmap() before invoking mmap(). This avoids a confusing error message when locate is invoked against a zero-size database after the recent change to make mmap() fail requests to map 0 bytes. Submitted by: Jaakko Heinonen jh of saunalahti dot fi Approved by: re (kensmith) MFC after: 1 week Revision Changes Path 1.16 +0 -3 src/usr.bin/locate/locate/fastfind.c 1.19 +2 -0 src/usr.bin/locate/locate/locate.c