Description of problem: I found that pwd displays wrong value when deleting current directory and changing directory to ".." pwd command gives as a result: /root/foo/bar/.. Steps to reproduce are self explanatory: Version-Release number of selected component (if applicable): 3.0 How reproducible: Always Steps to Reproduce: 1. cd /tmp 2. mkdir -p foo/bar 3. cd foo/bar 4. rm -rf /tmp/foo 5. cd .. gives "error retrieving current directory" but after that: 6. pwd gives /tmp/foo/bar/.. Actual Results: pwd should not diplay ".." in the path, and exit code should not be 0 Expected Results: pwd should give "could not get current directory: getwd: cannot access parent directories" and exits with error code 1, like in RHEL3 (I tried on RHEL4 and RHEL3-U3) Additional info: It's worse with these steps: 1. cd /tmp 2. mkdir -p foo/bar/foo 3. cd foo/bar/foo 4. rm -rf /tmp/foo 5. cd ../.. gives "error retrieving current directory" but after that: 6. pwd gives /tmp/foo/bar/../..
Clarifying some bugzilla fields: Version-Release number of selected component: 3.0-19.2 Affects all architectures, not just ia64. I see the same behaviour here.
The root cause seems to be that chdir("..") succeeds unexpectedly.
Thank you for submitting this issue for consideration in Red Hat Enterprise Linux. The release for which you requested us to review is now End of Life. Please See https://access.redhat.com/support/policy/updates/errata/ If you would like Red Hat to re-consider your feature request for an active release, please re-open the request via appropriate support channels and provide additional supporting details about the importance of this issue.