New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Subtle bug in os.path.realpath on Cygwin #38825
Comments
Cygwin allows mounting directories within other mount $ cd /
$ mkdir X
$ mkdir X/Y
$ ln -s X Z
$ mount C:/ /Z/Y
$ ls Z/Y
[...contents of C:\...]
$ ls X/Y
[empty directory]
$ python -c "import os; print os.path.realpath('Z/Y')"
/X/Y
[bad because /X/Y is empty yet the original Z/Y has files] In Cygwin, the correct answer would be either 'C:\\' or Conceivably this problem can happen in UNIces other |
Logged In: YES I'd think this is rather a Cygwin bug than a Python bug. Before the mount, /X/Y and /Z/Y refer to the same directory, |
Logged In: YES I agree with Sjoerd - this is a Cygwin bug, not a Python one. |
Logged In: YES Closing as suggested. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: