diff options
-rw-r--r-- | man3/euidaccess.3 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/man3/euidaccess.3 b/man3/euidaccess.3 index e7452bfa..58349baa 100644 --- a/man3/euidaccess.3 +++ b/man3/euidaccess.3 @@ -77,6 +77,13 @@ Some other systems have an .\" e.g., FreeBSD 6.1. .BR eaccess () function. +.SH NOTES +.IR Warning : +Using this function to check a process's permissions on a file before +performing some operation based on that information leads to race conditions: +the file permissions may change between the two steps. +Generally, it is safer just to attempt the desired operation and handle +any permission error that occurs. .SH "SEE ALSO" .BR access (2), .BR chmod (2), |