Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 2fc1991bff701e76ad7f6b3107fa1751834d8a07
Ticket: 1852572fffffffffffffffffffffffffffffffff
file writable broken
User & Date: dkf on 2009-02-15 16:15:20
Changes

  1. foundin changed to: "obsolete: 8.4.18"
  2. icomment:
    (Note: I cannot test this at all; I don't have a Linux system at the moment *or* Samba at all.)
    
    These files, can they be actually written by Tcl? As in, can you [open] them for writing/appending? If so, the problem is in Tcl_FSAccess(); [file writable] is a thin layer over that API. Due to fundamental race conditions, it is strongly recommended that if you need to write a file, you should just [open] it and get on with it (using [catch] - or [try] in 8.6 - to handle failures) rather than doing [file writable] first to see if you might succeed.
    
    Note also (to anyone working on a fix) that doing Tcl_FSStat() and then looking at the permissions bits is not a workaround at all; it will fail utterly on systems with ACLs such as AFS. (I suspect that there may be a problem with either Linux or Samba's handling of the access() syscall in this case, but due to the race condition it is not something I consider to be a disaster.)
    
    
  3. login: "dkf"
  4. mimetype: "text/plain"
  5. username: "dkf"