Date: Fri, 20 Jun 2008 20:42:30 -0400 From: "Philip M. Gollucci" <pgollucci@p6m7g8.com> To: Joerg Wunsch <joerg@freebsd.org> Cc: cvs-src@freebsd.org, src-committers@freebsd.org, cvs-all@freebsd.org Subject: Re: cvs commit: src/usr.bin/whereis whereis.c Message-ID: <485C4E76.2000704@p6m7g8.com> In-Reply-To: <200806200839.m5K8dp1c063576@repoman.freebsd.org> References: <200806200839.m5K8dp1c063576@repoman.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?485C4E76.2000704>