Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 379735ddc82d8aa0bb4e72a421b819b889c33a8d
Ticket: 1969717fffffffffffffffffffffffffffffffff
package require fails due to [file readable] problem
User & Date: decosterjos on 2008-05-22 16:09:56
Changes

  1. assignee changed to: "dgp"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Platform: Windows
    
    Version: head
    
    Observation: [package require] fails for a package located on a drive mounted via samba
    
    This problem is caused by [file readable] failing to get the correct access rights for the pkgIndex.tcl files on this samba drive. I look into the 'NativeAccess' code in tclWinFile.c and could not find what is wrong. Pat Thoyts also looked at the code and couldn't see what's caused [file readable] to fail. 
    
    I suggest a work around for [package require] by replacing the [file readable $file] by a [catch {open $file r}]. This solves the [package require] problem. [file readable] still remains 'fragile' but the user can work around that problem in his own code when needed.
    
    It's not clear where the problem originates. Could be a samba problem, could be a problem with the code in tclWinFile.c.
    
    I attached a patch for package.tcl (head).
    
    Regards,
    
    Jos.
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "decosterjos"
  10. subsystem changed to: "39. Package Manager"
  11. title changed to:
    package require fails due to [file readable] problem
    
  12. type changed to: "Patch"