Bug 3470

Summary: Odd output from "whereis"
Product: [Retired] Red Hat Linux Reporter: Edward Kuns <eddie.kuns>
Component: util-linuxAssignee: Jay Turner <jturner>
Status: CLOSED NOTABUG QA Contact:
Severity: low Docs Contact:
Priority: medium    
Version: 6.0CC: srevivo
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-06-29 19:09:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Edward Kuns 1999-06-15 06:09:23 UTC
I have /opt symlinked to /usr/opt.  Since upgrading to Red
Hat 6.0, the 'whereis' command seemingly looks in
"/opt/../bin" as well as "/usr/bin":


kilroy> whereis whereis
whereis: /usr/bin/whereis /opt/../bin/whereis
/usr/man/man1/whereis.1

If I "PATH=/bin:/usr/bin" I get the same output above, so
this isn't anything in my PATH variable.

Comment 1 Jeff Johnson 1999-06-15 11:44:59 UTC
A "strings /bin/whereis" indicates that whereis looks in /opt/*/bin.
The ".." should be ignored.