Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#3361 [win32] set file mtime fails on directories

obsolete: 8.4.12
closed-fixed
Vince Darley
5
2006-10-01
2006-01-31
Anonymous
No

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.

Discussion

  • Pat Thoyts
    Pat Thoyts
    2006-10-01

    Logged In: YES
    user_id=202636

    Good suggestion.
    Fixed in HEAD.

     
  • Pat Thoyts
    Pat Thoyts
    2006-10-01

    • status: open --> closed-fixed
     
  • Pat Thoyts
    Pat Thoyts
    2006-10-01

    Logged In: YES
    user_id=202636

    Backported to 8.4