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
- assignee changed to: "dgp"
- cmimetype changed to: "text/plain"
- 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. - foundin changed to: "None"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "decosterjos"
- subsystem changed to: "39. Package Manager"
- title changed to:
package require fails due to [file readable] problem
- type changed to: "Patch"