Artifacts Associated With Ticket 1604355
Ticket change [1aaabcf260] (rid 123021) by julien_dumont on 2006-11-28 09:48:48:
- assignee initialized to: "andreas_kupries"
- cmimetype initialized to: "text/plain"
- comment initialized to:
TclpOpenFileChannel don't use stats for check if file exist before trying to open it. This is very usefull on nfs / autofs / network remote filesystem for avoid lags due to remote filesystem implementation. Problem occurs on tcl 8.4.14 see patch (1604352)
- foundin initialized to: "None"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "julien_dumont"
- subsystem initialized to: "25. Channel System"
- title initialized to:
TclpOpenFileChannel : try to open file which don't exist
- type initialized to: "Bug"
Ticket change [ad05dfbb74] (rid 101397) by dkf on 2006-11-28 16:56:41:
- foundin changed to: "obsolete: 8.4.14"
Ticket change [777b2d9d43] (rid 89784) by dkf on 2012-08-27 18:18:55:
- 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"