On Sat, Mar 31, 2001 at 11:18:09AM -0700, Warner Losh wrote:
> In message <[EMAIL PROTECTED]> Paul 
>Herman writes:
> : Shouldn't the stat(2) manpage then also carry the same warning that
> : access(2) has (apparently dating back to 4.4BSD-Lite)?  ...or maybe
> : even a suggestion to use fstat(2) instead...
> 
> No.  stat can be used safely.  In fact, it can even be used to detect
> when the old switch-er-ooo has taken place on file systems that
> conform to the POSIX standard.  However, it does take some care to use 
> it safely.

Don't you need fstat to do this? (In which case you may as well just
open the file and fstat it anyway).

        David.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to