summaryrefslogtreecommitdiffstats
path: root/usr.bin/whereis
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>1998-10-04 10:33:37 +0000
committerobrien <obrien@FreeBSD.org>1998-10-04 10:33:37 +0000
commitc14379293644f18826381fa3d6e774bbb56fc414 (patch)
tree4f3c335ef49ce36adcf1e971d0d467be3c80564b /usr.bin/whereis
parent2e5ae0a020e42f0281c822371808bdfd2a8963ff (diff)
downloadFreeBSD-src-c14379293644f18826381fa3d6e774bbb56fc414.zip
FreeBSD-src-c14379293644f18826381fa3d6e774bbb56fc414.tar.gz
Also look in /usr/src/contrib.
PR: bin/7835 Submitted by: Stephen J. Roznowski <sjr@home.net>
Diffstat (limited to 'usr.bin/whereis')
-rw-r--r--usr.bin/whereis/whereis.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/whereis/whereis.pl b/usr.bin/whereis/whereis.pl
index 3502d8c..3835253 100644
--- a/usr.bin/whereis/whereis.pl
+++ b/usr.bin/whereis/whereis.pl
@@ -28,7 +28,7 @@
#
# Rewritten from scratch for FreeBSD after the 4.3BSD manual page.
#
-# $Id: whereis.pl,v 1.4 1997/02/22 19:57:48 peter Exp $
+# $Id: whereis.pl,v 1.5 1997/12/22 19:11:28 ache Exp $
#
sub usage
@@ -144,7 +144,7 @@ if (!defined(@sources)) {
"/usr/src/usr.sbin", "/usr/src/libexec",
"/usr/src/gnu/bin", "/usr/src/gnu/usr.bin",
"/usr/src/gnu/sbin", "/usr/src/gnu/usr.sbin",
- "/usr/src/gnu/libexec");
+ "/usr/src/gnu/libexec", "/usr/src/contrib");
#
# if /usr/ports exists, look in all its subdirs, too
@@ -213,7 +213,7 @@ foreach $name (@names) {
$found = 0;
$unusual++;
foreach (@sources) {
- $line .= " $_/$name", $unusual--, $found++, last if -d "$_/$name";
+ $line .= " $_/$name", $unusual--, $found++ if -d "$_/$name";
}
#
# If not yet found, ask locate(1) to do the search for us.
OpenPOWER on IntegriCloud