This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ocean-city
Recipients georg.brandl, ocean-city
Date 2011-05-16.02:53:21
SpamBayes Score 8.68343e-07
Marked as misclassified No
Message-id <>
Hello. I noticed os.stat() on windows may traverse wrong path on relative symbolic when current working directory != the directory where symbolic link is in. This is because the relative path DeviceIoControl() returns is just passed to win32_xstat without converting to absolute path.

I'm sorry because I implemented this function, and it's hard for me to debug this because I don't have Vista/7. This patch uses GetFinalPathNameByHandle like original code does, plus should handle symlink to system locked file.

Can anyone test and commit this patch?
Date User Action Args
2011-05-16 02:53:22ocean-citysetrecipients: + ocean-city, georg.brandl
2011-05-16 02:53:22ocean-citysetmessageid: <>
2011-05-16 02:53:22ocean-citylinkissue12084 messages
2011-05-16 02:53:21ocean-citycreate