Bug 1138835

Summary: getconf PATH returns non-directory "/bin"
Product: [Fedora] Fedora Reporter: Siddhesh Poyarekar <spoyarek>
Component: glibcAssignee: Carlos O'Donell <codonell>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: ashankar, codonell, fweimer, jakub, jhunt, law, mcermak, mnewsome, pfrankli, qe-baseos-tools-bugs, spoyarek
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1124453 Environment:
Last Closed: 2014-11-05 10:38:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1124453    
Bug Blocks:    

Description Siddhesh Poyarekar 2014-09-05 18:20:08 UTC
+++ This bug was initially created as a clone of Bug #1124453 +++

Description of problem:

With RHEL7 merging /bin into /usr/bin and turning it into a symlink, but "getconf PATH" is still returning the "/bin" component:
======
$ getconf PATH
/bin:/usr/bin
======

And of course the library POSIX call confstr(_CS_PATH,...) is also returning the erroneous "/bin:/usr/bin" string.

It should now just be "/usr/bin".

--- Additional comment from Carlos O'Donell on 2014-07-29 10:44:04 EDT ---

We can fix this in Fedora and RHEL. It won't go upstream and it will be a distro specific customization for distributions that have acceted "Move To /usr".

Technically this is a hard-coded define in:
sysdeps/unix/confstr.h:#define	CS_PATH	"/bin:/usr/bin"

Easy enough to adjust, and that should fix getconf and confstr. QE should verify.