Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 6f9212e37ede5069cda4458b144194fd237995ad
Ticket: 1394972fffffffffffffffffffffffffffffffff
file readable lies for certain XP files
User & Date: mistachkin on 2006-03-16 06:54:36
Changes

  1. icomment:
    Logged In: YES 
    user_id=113501
    
    1. The "Permission denied" for the NTUSER.DAT file is
    basically a sharing violation (the OS has it opened for
    exclusive access).
    
    2. There is no way that I know of on Windows to determine if
    opening a file will result in a sharing violation without
    actually attempting to open the file.  If the [file
    readable] code actually did this, it could still end up
    being inaccurate (race condition; somebody opens the file
    after you check [file readable] but before you actually open
    the file).
    
    3. I believe that the intention of [file readable] is to
    check to see if the user would have permission to open the
    file based on the file permissions (the DACL on NT).  Vince,
    does the current code check the DACL properly on Windows and
    the file permissions on Unix?
    
    
    
  2. login: "mistachkin"
  3. mimetype: "text/plain"
  4. username: "mistachkin"