Overview
| Artifact ID: | 777b2d9d43c6d65478a3076984d140a1b3a9558a |
|---|---|
| Ticket: | 1604355fffffffffffffffffffffffffffffffff
TclpOpenFileChannel : try to open file which don't exist |
| User & Date: | dkf on 2012-08-27 18:18:55 |
Changes
- assignee changed to: "dkf"
- closedate changed to: "2012-08-27T11:18:55"
- closer changed to: "dkf"
- icomment:
allow_comments - 1 I believe that the correct thing to do is to *not* stat() the file first, as that would introduce a race condition. Due to various bugs/"issues" in filesystem implementations on some OSes, it's also not at all certain that doing a stat() (or an access() for that matter) would give you useful information. (There have been AFS implementations which got access() wrong, and stat() ignores ACLs which may be set on many filesystems.) Scripts can always use [file stat] or [file readable] themselves before the [open], but they should be aware that they run the risk of things changing or the information coming back being non-useful. Sorry it causes excess logging outside Tcl, but we *must* prioritize getting Tcl's semantics correct.
- login: "dkf"
- mimetype: "text/plain"
- resolution changed to: "Rejected"
- status changed to: "Closed"
- username: "dkf"