Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ed8527a418c4b55871f8bac7200d211279984dc3
Ticket: 855923ffffffffffffffffffffffffffffffffff
[file readable/writable] broken on W2K (CVS HEAD)
User & Date: cc_benny on 2003-12-07 21:56:24
Changes

  1. assignee changed to: "vincentdarley"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    [file readable] returns 0 for files on my system.
    Below is the output of the attached test script.
    The also attached patch fixes the problem for
    me.
    
    The root of the problem seems to be an incorrect
    use of the MapGenericMask API.
    
    >>>>>>>>>>>>
    % source test.fileaccess.tcl
    % test
    Owner: BUILTIN\Administrators
    User: CAESAR\benny
    
    Test no access
    OK
    
    Test readable only
    1 != [file readable test.dat]
    Actual rights are:
    I:\Projects\test.dat CAESAR\benny:R
    
    Test writable only
    1 != [file writable test.dat]
    Actual rights are:
    I:\Projects\test.dat CAESAR\benny:(special access:)
    
                                      READ_CONTROL
                                      SYNCHRONIZE
                                      FILE_GENERIC_WRITE
                                      FILE_WRITE_DATA
                                      FILE_APPEND_DATA
                                      FILE_WRITE_EA
                                      FILE_EXECUTE
                                      FILE_WRITE_ATTRIBUTES
    
    Test read+write
    1 != [file readable test.dat]
    1 != [file writable test.dat]
    Actual rights are:
    I:\Projects\test.dat CAESAR\benny:(special access:)
    
                                      READ_CONTROL
                                      SYNCHRONIZE
                                      FILE_GENERIC_READ
                                      FILE_GENERIC_WRITE
                                      FILE_GENERIC_EXECUTE
                                      FILE_READ_DATA
                                      FILE_WRITE_DATA
                                      FILE_APPEND_DATA
                                      FILE_READ_EA
                                      FILE_WRITE_EA
                                      FILE_EXECUTE
                                      FILE_READ_ATTRIBUTES
                                      FILE_WRITE_ATTRIBUTES
    
    Test full access
    1 != [file readable test.dat]
    1 != [file writable test.dat]
    Actual rights are:
    I:\Projects\test.dat CAESAR\benny:F
    % 
    <<<<<<<<<<
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "cc_benny"
  9. subsystem changed to: "37. File System"
  10. title changed to: "[file readable/writable] broken on W2K (CVS HEAD)"
  11. type changed to: "Bug"