Red Hat Bugzilla – Bug 1124453
getconf PATH returns non-directory "/bin"
Last modified: 2016-11-24 07:15:47 EST
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".
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.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHSA-2015-0327.html