[New-bugs-announce] [issue2528] Change os.access to check ACLs under Windows

Tim Golden report at bugs.python.org
Tue Apr 1 16:19:18 CEST 2008

New submission from Tim Golden <mail at timgolden.me.uk>:

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.

components: Library (Lib)
files: os_access-r62091.patch
keywords: patch
messages: 64811
nosy: tim.golden
severity: normal
status: open
title: Change os.access to check ACLs under Windows
versions: Python 2.6
Added file: http://bugs.python.org/file9919/os_access-r62091.patch

Tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list