Overview
| Artifact ID: | 708c29db03110212ac696a25bcd7531e2f6c1f8a |
|---|---|
| Ticket: | 930225ffffffffffffffffffffffffffffffffff
access() - safe to use? |
| User & Date: | dkf on 2004-04-06 21:38:30 |
Changes
- icomment:
Logged In: YES user_id=79902 OK, access(2) is broken-by-design but we can't substitute for anything else. Solution is for *users* to avoid it when running in a Tcl interpreter with non-trivial privileges. In theory we could enforce this by refusing to call access() when the real and effective [ug]ids are different, but that would be very intrusive. A better solution would be to provide access to something like fstat() so that code could check that it has opened what it thinks it has opened...?
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"