Message16982
Cygwin allows mounting directories within other mount
points. This can cause os.path.realpath to expand some
symlinks that it shouldn't. For example:
$ 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
'/cygdrive/c/'.
Conceivably this problem can happen in UNIces other
than Cygwin. It would be rather annoying to fix,
because it would require looking at the mount table.
But I thought I would mention it anyway... |
|
Date |
User |
Action |
Args |
2007-08-23 14:14:46 | admin | link | issue768419 messages |
2007-08-23 14:14:46 | admin | create | |
|