Commit b37b8eca authored by Georg Brandl's avatar Georg Brandl

bug [ 872769 ] os.access() documentation should stress race conditions

parent 75d5106b
......@@ -680,6 +680,11 @@ test permissions. Return \constant{True} if access is allowed,
\constant{False} if not.
See the \UNIX{} man page \manpage{access}{2} for more information.
Availability: Macintosh, \UNIX, Windows.
\note{Using \function{access()} to check if a user is authorized to e.g.
open a file before actually doing so using \function{open()} creates a
security hole, because the user might exploit the short time interval
between checking and opening the file to manipulate it.}
\end{funcdesc}
\begin{datadesc}{F_OK}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment