View | Details | Raw Unified | Return to bug 7835
Collapse All | Expand All

(-)usr.bin/whereis.pl.new (-2 / +2 lines)
Lines 144-150 Link Here
144
		"/usr/src/usr.sbin", "/usr/src/libexec",
144
		"/usr/src/usr.sbin", "/usr/src/libexec",
145
		"/usr/src/gnu/bin", "/usr/src/gnu/usr.bin",
145
		"/usr/src/gnu/bin", "/usr/src/gnu/usr.bin",
146
		"/usr/src/gnu/sbin", "/usr/src/gnu/usr.sbin",
146
		"/usr/src/gnu/sbin", "/usr/src/gnu/usr.sbin",
147
		"/usr/src/gnu/libexec");
147
		"/usr/src/gnu/libexec", "/usr/src/contrib");
148
148
149
    #
149
    #
150
    # if /usr/ports exists, look in all its subdirs, too
150
    # if /usr/ports exists, look in all its subdirs, too
Lines 213-219 Link Here
213
	$found = 0;
213
	$found = 0;
214
	$unusual++;
214
	$unusual++;
215
	foreach (@sources) {
215
	foreach (@sources) {
216
	    $line .= " $_/$name", $unusual--, $found++, last if -d "$_/$name";
216
	    $line .= " $_/$name", $unusual--, $found++ if -d "$_/$name";
217
	}
217
	}
218
	#
218
	#
219
	# If not yet found, ask locate(1) to do the search for us.
219
	# If not yet found, ask locate(1) to do the search for us.

Return to bug 7835