Tcl Source Code

View Ticket
Login
Ticket UUID: 1420432
Title: [win32] set file mtime fails on directories
Type: Bug Created on: 2006-01-31 12:28:08
Submitter: nobody Assigned to: vincentdarley
Subsystem: 37. File System Severity:
Priority: 5 Medium Last modified: 2006-10-01 20:12:41
Status: Closed Closed by: patthoyts
Resolution: Fixed Closed on: 2006-10-01 13:06:22
Version: obsolete: 8.4.12
Description:
OS: Win32, Windows XP SP2

Problem:
When using [file mtime {directory name} {new mtime}]
command fails with "permission denied" error.

Expected:
Directory mtime changed successfully

Possible fix:
file /win/tclWinFile.c, function TclpUtime
FILE_FLAG_BACKUP_SEMANTICS should be used instead of
FILE_ATTRIBUTE_NORMAL to successfully open directories.
User Comments:
patthoyts added on 2006-10-01 20:06:22:
Logged In: YES 
user_id=202636

Good suggestion.
Fixed in HEAD.

patthoyts added on 2006-10-01 20:12:41:
Logged In: YES 
user_id=202636

Backported to 8.4