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 <1305514402.69.0.449438068729.issue12084@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2011-05-16 02:53:22ocean-citysetrecipients: + ocean-city, georg.brandl
2011-05-16 02:53:22ocean-citysetmessageid: <1305514402.69.0.449438068729.issue12084@psf.upfronthosting.co.za>
2011-05-16 02:53:22ocean-citylinkissue12084 messages
2011-05-16 02:53:21ocean-citycreate