Skip to content
Tcl Source Code History Of Ticket 749876ffffffffffffffffffffffffffffffffff
Login

History Of Ticket 749876ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 749876ffffffffffffffffffffffffffffffffff

  1. Ticket change [66b034a640] (rid 102761) by dgp on 2003-06-05 23:20:49:

    1. assignee initialized to: "vincentdarley"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      [file writable $directory] returns 1, yet
      [open [file join $directory newFile] w] fails.
      
      More detail from original user report:
      
      "On Windows, with the NTFS file system,
      there appears to be two ways to
      set file permissions.  You can use the old FAT
      based system, where you can set a read-only
      attribute bit.  It looks like this is what is
      checked by the Tcl 'file writable' command.
      Alternatively, there is a "security" tab in the file
      properties dialog box, which allows you to
      grant various access on a group-by-group basis.
      I've been testing this against Tcl 8.4.2 (Active
      Tcl release), and haven't found any way to
      detect the latter restriction, other than trying the
      access directly."
      
    4. foundin initialized to: "obsolete: 8.4.2"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "dgp"
    9. subsystem initialized to: "36. Pathname Management"
    10. title initialized to: "NTFS: [file writable $directory] lies"
    11. type initialized to: "Bug"
  2. Ticket change [91dfe8f7f2] (rid 120693) by vincentdarley on 2003-06-23 14:51:22:

    1. icomment:
      Logged In: YES 
      user_id=32170
      
      This all filters through to 'NativeAccess' in tclWinFile.c, which 
      in turn calls:
      
          attr = (*tclWinProcs->getFileAttributesProc)(nativePath);
      
      so presumably that call isn't aware of the NTFS permissions. 
      Tcl also has a tclWinProcs->getFileAttributesExProc available, 
      which might return more information.  In fact 'file stat' uses it, 
      so perhaps that could be used to test something of this, even 
      from pure Tcl.
      
      
      
      
    2. login: "vincentdarley"
    3. mimetype: "text/plain"
    4. username: "vincentdarley"
  3. Ticket change [cd5110e5f6] (rid 95871) by dgp on 2003-06-24 01:24:52:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      "[file stat] was the first thing I tried.  On my Win2K
      laptop, I create
      two files, one with write access enabled, one without. 
      Other than the
      timestamps, the file stat arrays are identical."
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  4. Ticket change [546434a2ff] (rid 93944) by vincentdarley on 2003-06-24 02:20:22:

    1. icomment:
      Logged In: YES 
      user_id=32170
      
      yeah... a quick search on msdn shows up nothing extra which 
      is useful on the 'Ex' proc.  No idea how to gather this 
      information at present.
      
      
      
    2. login: "vincentdarley"
    3. mimetype: "text/plain"
    4. username: "vincentdarley"
  5. Ticket change [4a217efed6] (rid 126483) by vincentdarley on 2003-06-24 18:29:16:

    1. icomment:
      Logged In: YES 
      user_id=32170
      
      It appears as if 'GetSecurityInfo' or 'GetNamedSecurityInfo' 
      are the correct APIs to use to get this information. We should 
      also examine what possible performance hit will be imposed by 
      adding these to every 'access/stat' call in WinTcl.
      
      http://msdn.microsoft.com/library/default.asp?url=/library/en-
      us/security/security/getsecurityinfo.asp
      
      
      
      
    2. login: "vincentdarley"
    3. mimetype: "text/plain"
    4. username: "vincentdarley"
  6. Ticket change [d90577a938] (rid 107544) by vincentdarley on 2003-06-24 18:30:53:

    1. icomment:
      Logged In: YES 
      user_id=32170
      
      And 'GetFileSecurity' may be a quicker way to the right info 
      we need.
      
      
      
    2. login: "vincentdarley"
    3. mimetype: "text/plain"
    4. username: "vincentdarley"
  7. Ticket change [dcfcf644ad] (rid 114582) by dgp on 2003-10-03 05:04:38:

    1. priority changed to: "8"
  8. Ticket change [91860a50a0] (rid 120629) by vincentdarley on 2003-10-03 16:59:09:

    1. icomment:
      Logged In: YES 
      user_id=32170
      
      I've taken a closer look at this, 'GetFileSecurity' is
      clearly the way to go, but it is more complicated (as ever)
      than it ought to be, and I don't think I am going to be able
      to get this into 8.4.5.
      
      
      
    2. login: "vincentdarley"
    3. mimetype: "text/plain"
    4. priority changed to: "5 Medium"
    5. username: "vincentdarley"
  9. Ticket change [c432cb34a5] (rid 111801) by vincentdarley on 2003-10-13 22:18:33:

    1. icomment:
      Logged In: YES 
      user_id=32170
      
      I have a patch which does this (but mixed in with other
      changes at present so can't attach here).  However, the
      performance hit is quite large ('file readable'  will be 5-6
      times slower than 'file exists' after this change), and the
      code is complex enough I don't think we should drop it into
      Tcl 8.4.5 at such short notice.
      
      
      
      
    2. login: "vincentdarley"
    3. mimetype: "text/plain"
    4. username: "vincentdarley"
  10. Ticket change [08c5b4df0e] (rid 89619) by vincentdarley on 2003-10-13 23:48:59:

    1. foundin changed to: "obsolete: 8.5a0"
    2. icomment:
      Logged In: YES 
      user_id=32170
      
      Fixed in Tcl 8.5a0.
      
      
      
    3. login: "vincentdarley"
    4. mimetype: "text/plain"
    5. username: "vincentdarley"
  11. Ticket change [2c7cf83b10] (rid 118912) by vincentdarley on 2003-10-13 23:49:23:

    1. closedate changed to: "2003-10-13T16:49:23"
    2. closer changed to: "vincentdarley"
    3. resolution changed to: "Fixed"
    4. status changed to: "Closed"