Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 5529d2e1eaa21b622f912c4175f166baea79822b
Ticket: 1193497fffffffffffffffffffffffffffffffff
file writable lies for certain XP directories
User & Date: fvogelnew1 on 2006-03-11 04:47:20
Changes

  1. icomment:
    Logged In: YES 
    user_id=1245417
    
    From Jason's comment below (2005-05-04 01:05):
    
    "
    Clearly from the MSDN document it states that the
    "Read-only attribute" does not mean that the directory is 
    not writable, but instead means it is a "special 
    customized folder". The writeability is determined by the 
    ACL list.
    "
    
    So for instance for the particular test that fails in 
    cmdAH.test:
    
    test cmdAH-17.2 {Tcl_FileObjCmd: writable} {
        -constraints {notRoot testchmod}
        -setup   {testchmod 0555 $gorpfile}
        -body    {file writable $gorpfile}
        -result  0
    }
    
    $gorpfile has its readonly attribute set (-setup option) 
    before running the actual test which is {file writable 
    $gorpfile}
    
    But file writable now checks for the ACL list rather than 
    for the readonly attribute. This is definitely correct and 
    is actually the goal of the patch.
    
    So no surprise if this test fails.
    
    It should just be rewritten to remove write permissions on 
    the file instead of setting the readonly attribute before 
    trying file writable. Alternatively the test could check 
    for -result 1, which really is the expected result for 
    file writable regardless of the readonly attribute.
    
    IMHO the test should be updated, not the patch.
    
    I'll have a look at the other failing tests from fCmd.test.
    
    
    
    
  2. login: "fvogelnew1"
  3. mimetype: "text/plain"
  4. username: "fvogelnew1"