Artifacts Associated With Ticket 219158
Ticket change [4cb98c24e1] (rid 126937) by nobody on 2000-10-26 05:02:25:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
OriginalBugID: 1399 Bug Version: 8.0.3 SubmitDate: '1999-03-02' LastModified: '2000-04-03' Severity: LOW Status: Assigned Submitter: pat ChangedBy: hobbs OS: Linux-SuSE OSVersion: + NCR Unix + Siemens Reliant Unix Machine: Other FixedDate: '2000-10-25' ClosedDate: '2000-10-25' Name: Ulrich Schöbel ReproducibleScript: Test fCmd-9.4 works on Linux and NCR, but fails on Siemens (Reliant 5.43). ObservedBehavior: file rename uses the rename syscall. According to the man page and an ancient AT&T spec "rename" should fail with EACCES when moving a 555 directory to a new destination. fCmd-9.4 expects a buggy implementation of "rename". DesiredBehavior: Thus, Tcls "file rename" should fail, too. The solaris docs seem to say the same thing, but it does indeed work without error on Solaris (as well as Linux and HP)... -- 04/03/2000 hobbs
- foundin initialized to: "obsolete: 8.0.3"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "37. File System"
- title initialized to:
Test fCmd-9.4 relies on buggy rename implementation
- type initialized to: "Bug"
Ticket change [2b0115145a] (rid 118665) by andreas_kupries on 2001-08-24 05:09:20:
- assignee changed to: "vincentdarley"
Ticket change [2ae2e680d3] (rid 118649) by vincentdarley on 2001-09-18 00:20:25:
- priority changed to: "1 Zero"
- resolution changed to: "Postponed"
Ticket change [51ac3ab9e0] (rid 126170) by vincentdarley on 2002-04-05 00:55:34:
- assignee changed to: "nobody"
- icomment:
Logged In: YES user_id=32170 This is not something I am qualified to look into.
- login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"
Ticket change [37541370dc] (rid 107252) by dgp on 2002-07-06 03:53:45:
- icomment:
Logged In: YES user_id=80530 should this be closed as really being "bugs" in the operating system(s) ?
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [d0bcc3c595] (rid 113233) by dgp on 2003-11-13 05:25:14:
- assignee changed to: "vincentdarley"
Ticket change [026be35e94] (rid 119647) by vincentdarley on 2003-11-13 05:53:48:
- assignee changed to: "hobbs"
Ticket change [cf7ca81a8a] (rid 112985) by smallm on 2008-02-11 10:14:20:
- icomment:
Logged In: YES user_id=691174 Originator: NO OpenBSD 4.2-current also fails on this test when using Tcl 8.5.1. According to this page below, an implementation has the option to fail when the source directory to rename lacks write permission: http://www.opengroup.org/onlinepubs/009695399/functions/rename.html "Write access permission is required for the directory containing old and the directory containing new. If the old argument points to the pathname of a directory, write access permission may be required for the directory named by old, and, if it exists, the directory named by new."
- login: "smallm"
- mimetype: "text/plain"
- username: "smallm"
- icomment:
Ticket change [7ad0209f88] (rid 90402) by dgp on 2013-03-24 22:10:11:
- assignee changed to: "stwo"
- icomment:
What's the story on BSD systems now?
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
Ticket change [e7459bb27d] (rid 104426) by smallm on 2013-05-07 10:02:36:
- icomment:
Using 8.6.0, it still fails for me on openbsd-current dated May 3, 2013 on macppc: fCmd.test ==== fCmd-9.4.b file rename: comprehensive: dir to new name FAILED ==== Contents of test case: file mkdir td1 td2 testchmod 555 td2 file rename td1 td3 file rename td2 td4 list [lsort [glob td*]] [file writable td3] [file writable td4] ---- Test generated error; Return code was: 1 ---- Return code should have been one of: 0 2 ---- errorInfo: error renaming "td2" to "td4": permission denied while executing "file rename td2 td4" ("uplevel" body line 5) invoked from within "uplevel 1 $script" ---- errorCode: POSIX EACCES {permission denied} ==== fCmd-9.4.b FAILED I tried NetBSD 6.0.1 and DragonFlyBSD 3.3 and it passed in both of those. Now that I read my comment below, I'm not sure how I thought that quote applied here. Maybe I missed the word _containing_? Sorry about that. I wear glasses now. - login: "smallm"
- mimetype: "text/plain"
- username: "smallm"
- icomment:
Ticket change [c00f133622] (rid 102346) by smallm on 2013-05-08 08:58:43:
- icomment:
I was hasty with the last paragraph of this new comment. Of course it was the second sentence of the quote, with the words "write access permission may be required for the directory named by old" that applies here. The younger me wasn't as blind as I thought.
- login: "smallm"
- mimetype: "text/plain"
- username: "smallm"
- icomment:
Ticket change [6f9c43f158] (rid 100342) by smallm on 2013-05-18 09:57:27:
- icomment:
One more thing, this is intentional behaviour on the part of OpenBSD, as recently clarified in their rename(2) man page: http://www.openbsd.org/cgi-bin/cvsweb/src/lib/libc/sys/rename.2.diff?r1=1.18;r2=1.19 http://marc.info/?l=openbsd-misc&m=136802986314774&w=2
- login: "smallm"
- mimetype: "text/plain"
- username: "smallm"
- icomment:
Ticket change [9bfdd06864] (rid 257695) by serhiy.storchaka on 2026-10-12 11:18:59:
- icomment:
POSIX allows <code>rename()</code> to require write permission for a directory being renamed, and OpenBSD and macOS 10.5 do. Proposed fix in branch [/timeline?r=fCmd-test-constraints|fCmd-test-constraints]: fCmd-9.4 is split into a test for a writable directory, which runs everywhere, and tests for a read-only directory which expect success or "permission denied" depending on the new constraint <code>renameNeedsDirWrite</code> (OpenBSD, macOS 10.5). The branch also restores the definition of <code>notWine</code>, see [300724b80c].
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [284fe4bb9f] (rid 261413) by jan.nijtmans on 2026-11-11 10:59:38:
- assignee changed to: "jan.nijtmans"
- closedate changed to: "2461355.9580860995"
- closer changed to: "jan.nijtmans"
- comment changed to:
OriginalBugID: 1399 Bug Version: 8.0.3 SubmitDate: '1999-03-02' LastModified: '2000-04-03' Severity: LOW Status: Assigned Submitter: pat ChangedBy: hobbs OS: Linux-SuSE OSVersion: + NCR Unix + Siemens Reliant Unix Machine: Other FixedDate: '2000-10-25' ClosedDate: '2000-10-25' Name: Ulrich Schöbel ReproducibleScript: Test fCmd-9.4 works on Linux and NCR, but fails on Siemens (Reliant 5.43). ObservedBehavior: file rename uses the rename syscall. According to the man page and an ancient AT&T spec "rename" should fail with EACCES when moving a 555 directory to a new destination. fCmd-9.4 expects a buggy implementation of "rename". DesiredBehavior: Thus, Tcls "file rename" should fail, too. The solaris docs seem to say the same thing, but it does indeed work without error on Solaris (as well as Linux and HP)... -- 04/03/2000 hobbs
- icomment:
Fixed in [f9dfe7796a|trunk] and core-9-0-branch. Had to add an additional notOSX constraint on fCmd-9.4.2, that's all.
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- severity changed to: "Minor"
- status changed to: "Closed"