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 tim.golden
Recipients tim.golden
Date 2008-04-01.14:19:16
SpamBayes Score 0.3193834
Marked as misclassified No
Message-id <1207059558.9.0.891835325783.issue2528@psf.upfronthosting.co.za>
In-reply-to
Content
At present, os.access under Windows simply calls GetFileAttributes to
determine the readonly attribute (ignoring directories). The patch
attached combines this with the use of the AccessCheck API to compare
the user's permissions with those required for the path.

I'm assuming that ATTRIB and CACLS will be available for use in the unit
tests included.

I haven't altered the structure of the posix_access function at all
although I suspect that it could now be simplified now that we're not
supporting Win9x.
History
Date User Action Args
2008-04-01 14:19:19tim.goldensetspambayes_score: 0.319383 -> 0.3193834
recipients: + tim.golden
2008-04-01 14:19:18tim.goldensetspambayes_score: 0.319383 -> 0.319383
messageid: <1207059558.9.0.891835325783.issue2528@psf.upfronthosting.co.za>
2008-04-01 14:19:18tim.goldenlinkissue2528 messages
2008-04-01 14:19:18tim.goldencreate