Skip to content
Tcl Source Code History Of Ticket 219158
Login

History Of Ticket 219158

Artifacts Associated With Ticket 219158

  1. Ticket change [4cb98c24e1] (rid 126937) by nobody on 2000-10-26 05:02:25:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. 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
      
    4. foundin initialized to: "obsolete: 8.0.3"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "37. File System"
    10. title initialized to:
      Test fCmd-9.4 relies on buggy rename implementation
      
    11. type initialized to: "Bug"
  2. Ticket change [2b0115145a] (rid 118665) by andreas_kupries on 2001-08-24 05:09:20:

    1. assignee changed to: "vincentdarley"
  3. Ticket change [2ae2e680d3] (rid 118649) by vincentdarley on 2001-09-18 00:20:25:

    1. priority changed to: "1 Zero"
    2. resolution changed to: "Postponed"
  4. Ticket change [51ac3ab9e0] (rid 126170) by vincentdarley on 2002-04-05 00:55:34:

    1. assignee changed to: "nobody"
    2. icomment:
      Logged In: YES 
      user_id=32170
      
      This is not something I am qualified to look into.
      
      
      
    3. login: "vincentdarley"
    4. mimetype: "text/plain"
    5. username: "vincentdarley"
  5. Ticket change [37541370dc] (rid 107252) by dgp on 2002-07-06 03:53:45:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      should this be closed as really being "bugs"
      in the operating system(s) ?
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  6. Ticket change [d0bcc3c595] (rid 113233) by dgp on 2003-11-13 05:25:14:

    1. assignee changed to: "vincentdarley"
  7. Ticket change [026be35e94] (rid 119647) by vincentdarley on 2003-11-13 05:53:48:

    1. assignee changed to: "hobbs"
  8. Ticket change [cf7ca81a8a] (rid 112985) by smallm on 2008-02-11 10:14:20:

    1. 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."
      
      
      
    2. login: "smallm"
    3. mimetype: "text/plain"
    4. username: "smallm"
  9. Ticket change [7ad0209f88] (rid 90402) by dgp on 2013-03-24 22:10:11:

    1. assignee changed to: "stwo"
    2. icomment:
      What's the story on BSD systems now?
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. username: "dgp"
  10. Ticket change [e7459bb27d] (rid 104426) by smallm on 2013-05-07 10:02:36:

    1. 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.
      
      
      
    2. login: "smallm"
    3. mimetype: "text/plain"
    4. username: "smallm"
  11. Ticket change [c00f133622] (rid 102346) by smallm on 2013-05-08 08:58:43:

    1. 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.
      
      
    2. login: "smallm"
    3. mimetype: "text/plain"
    4. username: "smallm"
  12. Ticket change [6f9c43f158] (rid 100342) by smallm on 2013-05-18 09:57:27:

    1. 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
      
      
    2. login: "smallm"
    3. mimetype: "text/plain"
    4. username: "smallm"
  13. Ticket change [9bfdd06864] (rid 257695) by serhiy.storchaka on 2026-10-12 11:18:59:

    1. 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].
      
    2. login: "serhiy.storchaka"
    3. mimetype: "text/x-fossil-wiki"
  14. Ticket change [284fe4bb9f] (rid 261413) by jan.nijtmans on 2026-11-11 10:59:38:

    1. assignee changed to: "jan.nijtmans"
    2. closedate changed to: "2461355.9580860995"
    3. closer changed to: "jan.nijtmans"
    4. 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
      
    5. 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.
      
    6. login: "jan.nijtmans"
    7. mimetype: "text/x-fossil-wiki"
    8. resolution changed to: "Fixed"
    9. severity changed to: "Minor"
    10. status changed to: "Closed"