Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2026-11-06
14:10 • Ticket [26fd1451b8] MS Windows VS2015 32 bit core-8-6-branch: test failure &quot... artifact: 18ff11dce7 user: oehhar
13:34
Fix [26fd1451b8]: fCmd-9.3, fCmd-9.10 and winFCmd-3.10 failed on Windows check-in: 74718c7d2a user: jan.nijtmans tags: core-8-6-branch
13:10 • Closed ticket [26fd1451b8]: MS Windows VS2015 32 bit core-8-6-branch: test failu... artifact: 0415c303ed user: oehhar
12:00
Fix [26fd1451b8]: fCmd-9.3, fCmd-9.10 and winFCmd-3.10 failed on Windows check-in: ede2fcda1a user: jan.nijtmans tags: core-9-0-branch
11:52
Fix [26fd1451b8]: fCmd-9.3, fCmd-9.10 and winFCmd-3.10 failed on Windows check-in: 6a05bcdb32 user: jan.nijtmans tags: trunk, main
2026-11-05
20:59 • Open ticket [26fd1451b8]: MS Windows VS2015 32 bit core-8-6-branch: test failure... artifact: 9494ccdedb user: serhiy.storchaka
20:57
Fix [26fd1451b8]: fCmd-9.3, fCmd-9.10 and winFCmd-3.10 failed on Windows with "permission denied" in... closed check-in: 926e363f6c user: serhiy.storchaka tags: win-testchmod-keep-delete
2026-05-21
11:09 • Closed ticket [26fd1451b8]: MS Windows VS2015 32 bit core-8-6-branch: test failu... artifact: d02cc6f3e4 user: apnadkarni
2023-09-13
13:03 • Ticket [a1f11d96b8] VC6 compilation error of core-8-6-branch: error C2065: '... artifact: fd5ddb7cfe user: oehhar
13:00 • Ticket [26fd1451b8] MS Windows VS2015 32 bit core-8-6-branch: test failure &quot... artifact: e8729734d7 user: oehhar
12:09 • Ticket [43b0656605] MS Windows: files with emojis are found by glob but not reco... artifact: 491a5cce6f user: oehhar
12:08 • New ticket [26fd1451b8] MS Windows VS2015 32 bit core-8-6-branch: test failure &... artifact: 9aae088fe1 user: oehhar

MS Windows VS2015 32 bit core-8-6-branch: test failure "permission denied" in fCmd-9.3, fCmd-9.5, fCmd-9.7, fCmd-9.10, winFCmd-3.10

Closed / Fixed26fd1451b848d03baefd037b4b5602ac4d41f635Created 3 years agoUpdated 27 days ago
Descriptionwiki2023-09-13 12:08:41
Test failures with permission denied on fCmd-9.3, fCmd-9.5, fCmd-9.7, fCmd-9.10, winFCmd-3.10 Platform: Win 64 bit GER Compiled: VS2015 32 bit
==== fCmd-9.3 file rename: comprehensive: file to new name FAILED
==== Contents of test case:

    createfile tf1
    createfile tf2
    testchmod 0o444 tf2
    file rename tf1 tf3
    file rename tf2 tf4
    list [lsort [glob tf*]] [file writable tf3] [file writable tf4]

---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: error renaming "tf2" to "tf4": permission denied
    while executing
"file rename tf2 tf4"
    ("uplevel" body line 6)
    invoked from within
"uplevel 1 $script"
---- errorCode: POSIX EACCES {permission denied}
==== fCmd-9.3 FAILED

---- fCmd-9.5 start


==== fCmd-9.5 file rename: comprehensive: file to self FAILED
==== Contents of test case:

    createfile tf1 tf1
    createfile tf2 tf2
    testchmod 0o444 tf2
    file rename -force tf1 tf1
    file rename -force tf2 tf2
    list [contents tf1] [contents tf2] [file writable tf1] [file writable tf2]

---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: error renaming "tf2": permission denied
    while executing
"file rename -force tf2 tf2"
    ("uplevel" body line 6)
    invoked from within
"uplevel 1 $script"
---- errorCode: POSIX EACCES {permission denied}
==== fCmd-9.5 FAILED

---- fCmd-9.7 start


==== fCmd-9.7 file rename: comprehensive: file to existing file FAILED
==== Contents of test case:

    createfile tf1
    createfile tf2
    createfile tfs1
    createfile tfs2
    createfile tfs3
    createfile tfs4
    createfile tfd1
    createfile tfd2
    createfile tfd3
    createfile tfd4
    testchmod 0o444 tfs3
    testchmod 0o444 tfs4
    testchmod 0o444 tfd2
    testchmod 0o444 tfd4
    set msg [list [catch {file rename tf1 tf2} msg] $msg]
    file rename -force tfs1 tfd1
    file rename -force tfs2 tfd2
    file rename -force tfs3 tfd3
    file rename -force tfs4 tfd4
    list [lsort [glob tf*]] $msg [file writable tfd1] [file writable tfd2] [file writable tfd3] [file writable tfd4]

---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: error renaming "tfs2" to "tfd2": permission denied
    while executing
"file rename -force tfs2 tfd2"
    ("uplevel" body line 18)
    invoked from within
"uplevel 1 $script"
---- errorCode: POSIX EACCES {permission denied}
==== fCmd-9.7 FAILED

---- fCmd-9.9 start
---- fCmd-9.10 start


==== fCmd-9.10 file rename: comprehensive: file to new name and dir FAILED
==== Contents of test case:

    createfile tf1
    createfile tf2
    file mkdir td1
    testchmod 0o444 tf2
    file rename tf1 [file join td1 tf3]
    file rename tf2 [file join td1 tf4]
    list [catch {glob tf*}] [lsort [glob -directory td1 t*]]  [file writable [file join td1 tf3]] [file writable [file join td1 tf4]]

---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: error renaming "tf2" to "td1/tf4": permission denied
    while executing
"file rename tf2 [file join td1 tf4]"
    ("uplevel" body line 7)
    invoked from within
"uplevel 1 $script"
---- errorCode: POSIX EACCES {permission denied}
==== fCmd-9.10 FAILED

...

==== winFCmd-3.10 TclpDeleteFile: path is readonly FAILED
==== Contents of test case:

    createfile tf1
    testchmod 0 tf1
    testfile rm tf1
    file exists tf1

---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: EACCES
    while executing
"testfile rm tf1"
    ("uplevel" body line 4)
    invoked from within
"uplevel 1 $script"
---- errorCode: NONE
==== winFCmd-3.10 FAILED

Thank you all, Harald

Referenced by6
  • 74718c7d2aFix [26fd1451b8]: fCmd-9.3, fCmd-9.10 and winFCmd-3.10 failed on Windows check-in2026-11-06 13:34:30
  • ede2fcda1aFix [26fd1451b8]: fCmd-9.3, fCmd-9.10 and winFCmd-3.10 failed on Windows check-in2026-11-06 12:00:59
  • 6a05bcdb32Fix [26fd1451b8]: fCmd-9.3, fCmd-9.10 and winFCmd-3.10 failed on Windows check-in2026-11-06 11:52:50
  • 926e363f6cFix [26fd1451b8]: fCmd-9.3, fCmd-9.10 and winFCmd-3.10 failed on Windows with "permission denied" in a directory where the user has only "Modify" rights. testchmod removed DELETE from a file, so it could only be renamed or deleted if the directory granted FILE_DELETE_CHILD. As on Unix, the file mode no longer prevents renaming or deleting. check-in2026-11-05 20:57:05
  • fd5ddb7cfeTicket [a1f11d96b8] VC6 compilation error of core-8-6-branch: error C2065: 'int16_t' : undeclared identifier status still Closed with 5 other changes ticket2023-09-13 13:03:31
  • 491a5cce6fTicket [43b0656605] MS Windows: files with emojis are found by glob but not recognized by file exists or open status still Open with 4 other changes ticket2023-09-13 12:09:59
oehharwiki2023-09-13 13:00:42

Thanks to fix [122f576e90], VC6 compilation gets possible.

I can confirm, that also on VC6, the upper test errors arise

This allows me to compare to TCL 8.6.13 release:

  • new failing tests: fCmd-9.3, fCmd-9.5, fCmd-9.7, fCmd-9.10, winFCmd-3.10
  • not failing any more: winFCmd-6.1, winFCmd-6.9, winFCmd-6.13, winFCmd-9.3

Thank you all ! Harald

apnadkarniplain2026-05-21 11:09:21
testchmod is now fixed in 9.1 (not 9.0!) so you should not see these failures (I don't).

Please reopen if they still exist in the trunk.
serhiy.storchakawiki2026-11-05 20:59:28

They still exist on trunk and in 9.0.5 RC0 (reported again on tcl-core). They depend on the directory: testchmod removes DELETE from the file, so it can only be renamed or deleted if the directory grants FILE_DELETE_CHILD. That is true with Full Control (the user profile, an elevated shell, CI), but not for a folder created under C:\ by a non-elevated user, where Authenticated Users have only Modify. Reproduced on Windows 11 in such a folder.

Proposed fix in branch win-testchmod-keep-delete: as on Unix, the file mode does not prevent renaming or deleting, so testchmod keeps DELETE for files. Directories are unchanged.

oehharwiki2026-11-06 13:10:59

Serhiys fix merged by Jan to:

Tested with success on main on MS-Win 11 in folder c:\test\...

Ticket closed.

Thanks for all, Harald

oehharwiki2026-11-06 14:10:20

And to core-8-6-branch by [74718c7d2a].

Thanks, Harald

Log in (anonymous is fine) to add a comment.