Patches item #1576166, was opened at 2006-10-12 21:51 Message generated for change (Comment added) made by loewis You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1576166&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.6 Status: Open Resolution: None Priority: 5 Submitted By: Snaury (snaury) Assigned to: Nobody/Anonymous (nobody) Summary: os.utime acess denied with directories on win32 Initial Comment: Try the following code: >>> import os >>> os.mkdir('8') >>> os.utime('8',None) Traceback (most recent call last): File "<stdin>", line 1, in <module> WindowsError: [Error 13] Access is denied: '8' >>> This fix passes correct flags to CreateFile to successfully open directories (when built with wide filenames support, in other case native utime is used and msvcrt has the very same bug). ---------------------------------------------------------------------- >Comment By: Martin v. Löwis (loewis) Date: 2006-10-14 21:59 Message: Logged In: YES user_id=21627 The patch looks wrong. Opening a file with FILE_FLAG_BACKUP_SEMANTICS requires the SE_BACKUP_NAME. If the user does not have the privilege, opening will fail. This is wrong, because the user still might be able to change the time stamp of a regular file. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1576166&group_id=5470 _______________________________________________ Patches mailing list Patches@python.org http://mail.python.org/mailman/listinfo/patches