From owner-cvs-src@FreeBSD.ORG Sat Jun 21 00:52:38 2008 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AAE851065670; Sat, 21 Jun 2008 00:52:38 +0000 (UTC) (envelope-from pgollucci@p6m7g8.com) Received: from EXHUB015-4.exch015.msoutlookonline.net (exhub015-4.exch015.msoutlookonline.net [207.5.72.96]) by mx1.freebsd.org (Postfix) with ESMTP id 7A3368FC14; Sat, 21 Jun 2008 00:52:38 +0000 (UTC) (envelope-from pgollucci@p6m7g8.com) Received: from smgellar.p6m7g8.net (70.88.236.22) by smtpx15.msoutlookonline.net (207.5.72.103) with Microsoft SMTP Server (TLS) id 8.1.278.0; Fri, 20 Jun 2008 17:42:33 -0700 Message-ID: <485C4E76.2000704@p6m7g8.com> Date: Fri, 20 Jun 2008 20:42:30 -0400 From: "Philip M. Gollucci" Organization: RideCharge Inc User-Agent: Thunderbird 2.0.0.14 (X11/20080610) MIME-Version: 1.0 To: Joerg Wunsch References: <200806200839.m5K8dp1c063576@repoman.freebsd.org> In-Reply-To: <200806200839.m5K8dp1c063576@repoman.freebsd.org> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Cc: cvs-src@freebsd.org, src-committers@freebsd.org, cvs-all@freebsd.org Subject: Re: cvs commit: src/usr.bin/whereis whereis.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Jun 2008 00:52:38 -0000 Joerg Wunsch wrote: > joerg 2008-06-20 08:39:42 UTC > > FreeBSD src repository > > Modified files: > usr.bin/whereis whereis.c > Log: > SVN rev 179888 on 2008-06-20 08:39:42Z by joerg > > Make the search for sources in PATH_PORTS more accurate. I only > noticed that a "whereis -qs qemu" matched the distfiles subdir of qemu > rather than /usr/ports/emulators/qemu. > > It now ignores all dot entries in /usr/ports, plus all entries > starting with a capital letter (maintenance stuff like Templates, but > also includes subdir CVS), plus /usr/ports/distfiles which is simply a > magic name in that respect. While your at it, what about .svn dirs .... I guess thats covered by 'dot' entries. > | if (dirp->d_name[0] == '.' || > | - strcmp(dirp->d_name, "CVS") == 0) > | - /* ignore dot entries and CVS subdir */ -- ------------------------------------------------------------------------ Philip M. Gollucci (philip@ridecharge.com) o:703.549.2050x206 Senior System Admin - Riderway, Inc. http://riderway.com / http://ridecharge.com 1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70 3F8C 75B8 8FFB DB9B 8C1C Work like you don't need the money, love like you'll never get hurt, and dance like nobody's watching.