patch applied (packages/directory): FIX #1280: getPermissions
wasn't working on Vista
Simon Marlow
simonmar at microsoft.com
Thu Aug 23 10:12:56 EDT 2007
Thu Aug 23 04:16:05 PDT 2007 Simon Marlow <simonmar at microsoft.com>
* FIX #1280: getPermissions wasn't working on Vista
It turns out that _access() in the Windows C runtime used to ignore
the X_OK flag, in Vista it now returns an error. After browsing the C
runtime sources, I discovered that _stat() has an almost but not quite
completely bogus implementation of the st_mode field, which lets us
implement a slightly less incorrect approximation to getPermissions than does
_access().
M ./System/Directory.hs +25
M ./include/HsDirectory.h +1
More information about the Cvs-libraries
mailing list