Message142514
Another infinite loop that isn't caught in Python 3.2.1: With the symbolic link
link => link/inside
a readlink("link") call will keep looping.
Anyhow, the proposed solution in issue11397_py32_2.patch does not account for paths with multiple independent references to the same link. Example link:
here => .
Calling readlink("here/here") for me should return "/media/disk/home/vadmium" (my current directory, containing the "here" link), but the proposed version returns an "/media/disk/home/vadmium/here/here" (incompletely resolved).
I suggest something similar to "realpath_link_stack.py" I am attaching. I think the main difference is it pops each link off the cycle-detection stack after it has been resolved. |
|
Date |
User |
Action |
Args |
2011-08-20 06:03:26 | martin.panter | set | recipients:
+ martin.panter, terry.reedy, vstinner, giampaolo.rodola, santoso.wijaya, wm, mkovtun |
2011-08-20 06:03:26 | martin.panter | set | messageid: <1313820206.83.0.0724967152182.issue11397@psf.upfronthosting.co.za> |
2011-08-20 06:03:26 | martin.panter | link | issue11397 messages |
2011-08-20 06:03:25 | martin.panter | create | |
|