|From:||Scott Schwartz <email@example.com>|
|Date:||Fri, 19 May 1995 14:00:22 -0400|
| But if all I want to check is the file readability, with no intent to read it, Then close the file right after opening it. | I suppose file-readable? should at least use open or access, not a simple stat | (as is done in scsh 0.3). As I think access(2) does the same checks than | open, just without opening the file, I suggested this way. Using access() is wrong. It is different than open(). You quoted the manpage: it is a special purpose thing for setuid programs, and nothing else.
|<Prev in Thread]||Current Thread||[Next in Thread>|