[ python-Bugs-1513646 ] os.access reports incorrect write permissions in Windows
SourceForge.net
noreply at sourceforge.net
Thu Jun 29 21:56:57 CEST 2006
Bugs item #1513646, was opened at 2006-06-27 15:01
Message generated for change (Comment added) made by yi_ding
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1513646&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Windows
Group: Python 2.5
Status: Open
Resolution: None
Priority: 7
Submitted By: Yi S. Ding (yi_ding)
Assigned to: Martin v. Löwis (loewis)
Summary: os.access reports incorrect write permissions in Windows
Initial Comment:
Platform: Python 2.5b1 Windows XP
Bug:
os.access will report that a user doesn't have write
permissions to a file or directory when the user
actually does.
Reproducibility: always
This is being run on an administrator account.
>>> import os
>>> os.access("C:\\", os.W_OK)
False
>>> os.access("C:\\test.txt", os.W_OK)
False
I have also checked that Python can indeed write to the
file.
----------------------------------------------------------------------
>Comment By: Yi S. Ding (yi_ding)
Date: 2006-06-29 12:56
Message:
Logged In: YES
user_id=1081617
Yeah, it's only 2.5, and only 2.5b1. Basically, there's a
double ampersand used instead of a single ampersand in
posixmodule.c. I've attached the patch.
----------------------------------------------------------------------
Comment By: Neal Norwitz (nnorwitz)
Date: 2006-06-27 22:28
Message:
Logged In: YES
user_id=33168
Does this problem only occur with 2.5 or is it also present
in 2.4?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1513646&group_id=5470
More information about the Python-bugs-list
mailing list