Skip to content
Tcl Source Code History Of Ticket 2935503
Login

History Of Ticket 2935503

Artifacts Associated With Ticket 2935503

  1. Ticket change [919e3a1335] (rid 120648) by apnadkarni on 2010-01-20 09:25:12:

    1. assignee initialized to: "vincentdarley"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      From c.l.t  posting by keithv -
      ----
      Is the mode value from file stat meaningful on Windows.
      Under tcl 8.5, it always seems to return 0644
      even if you have permission write to the file.
      
      (This problem came up when I was trying to figure
      out why tcllib's ftpd package wouldn't let me delete
      a file.)
      
      Thanks,
      Keith 
      ----
      
      Looking at the code, the problem is in the NativeStatMode function in tclWinFile.c
      The lines propagating the owner bits to group and others -
          mode |= (mode & 0x0700) >> 3;
          mode |= (mode & 0x0700) >> 6;
      should be
          mode |= (mode & 0700) >> 3;
          mode |= (mode & 0700) >> 6;
      
      (i.e. octal 700, not hex)
      
      /Ashok
      
    4. foundin initialized to: "None"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "apnadkarni"
    10. subsystem initialized to: "37. File System"
    11. title initialized to: "Incorrect mode field returned by file stat command"
    12. type initialized to: "Bug"
  2. Ticket change [2f989fbd1d] (rid 93085) by apnadkarni on 2011-08-25 22:21:49:

    1. assignee changed to: "dgp"
    2. icomment:
      Reassigned to dgp as per instruction from him
      
      
    3. login: "apnadkarni"
    4. mimetype: "text/plain"
    5. username: "apnadkarni"
  3. Ticket change [1134f8e03d] (rid 95104) by nijtmans on 2011-10-11 20:39:22:

    1. closedate changed to: "2011-10-11T13:39:22"
    2. closer changed to: "nijtmans"
    3. foundin changed to: "obsolete: 8.4.19"
    4. icomment:
      This one is so trivial, just let's fix it.....
      
      Test io-40.2, which was previously unix-only
      adapted to show how valid this bug report is.
      
      Fixed in all open branches.
      
      
    5. login: "nijtmans"
    6. mimetype: "text/plain"
    7. resolution changed to: "Fixed"
    8. status changed to: "Pending"
    9. username: "nijtmans"
  4. Ticket change [48289159ac] (rid 99833) by dgp on 2011-10-13 00:24:34:

    1. icomment:
      
      Test fails in a tcl/unix build on OSX Snow Leopard:
      
      
      ==== io-40.2 POSIX open access modes: CREAT FAILED
      ==== Contents of test case:
      
          file delete $path(test3)
          set f [open $path(test3) {WRONLY CREAT} 0o666]
          file stat $path(test3) stats
          set x [format "0o%o" [expr $stats(mode)&0o777]]
          puts $f "line 1"
          close $f
          set f [open $path(test3) r]
          lappend x [gets $f]
          close $f
          set x
      
      ---- Result was:
      0o644 {line 1}
      ---- Result should have been (exact matching):
      0o666 {line 1}
      ==== io-40.2 FAILED
      
      
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  5. Ticket change [cc4997b33e] (rid 95670) by dgp on 2011-10-13 01:43:15:

    1. icomment:
      Same failure on Centos system. 
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  6. Ticket change [c3bde7acd5] (rid 111716) by dgp on 2011-10-13 01:46:55:

    1. assignee changed to: "nijtmans"
    2. icomment:
      
      Just because we ask for permissions 0o666
      doesn't mean we'll get them depending on
      what permissions we have on the containing dir.
      
      
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. resolution changed to: "None"
    6. status changed to: "Open"
    7. username: "dgp"
  7. Ticket change [1efaee618b] (rid 91069) by andreas_kupries on 2011-10-13 01:53:39:

    1. icomment:
      And the user's 'umask' settings in the current shell may effect results too.
      
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  8. Ticket change [af678e9d12] (rid 97806) by nijtmans on 2011-10-13 15:04:21:

    1. closedate changed to: "2011-10-13T08:04:21"
    2. closer changed to: "nijtmans"
    3. icomment:
      Reverting test-case, als the actual change is Windows-only anyway.
      
      So it was not that trivial.......
      
      
    4. login: "nijtmans"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Pending"
    8. username: "nijtmans"
  9. Ticket change [dfcf82b4f6] (rid 115078) by nijtmans on 2012-06-22 20:01:56:

    1. closedate changed to: "2012-06-22T13:01:56"
    2. closer changed to: "nijtmans"
    3. icomment:
      
      
      allow_comments - 1
      
      
      
    4. login: "nijtmans"
    5. mimetype: "text/plain"
    6. status changed to: "Closed"
    7. username: "nijtmans"