Skip to content

Commit 92ff693

Browse files
committed
Fix SF bug #991735, os.access reports true for read-only directories. Will backport
1 parent 708e51a commit 92ff693

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Doc/lib/libos.tex

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -692,6 +692,11 @@ \subsection{Files and Directories \label{os-file-dir}}
692692
open a file before actually doing so using \function{open()} creates a
693693
security hole, because the user might exploit the short time interval
694694
between checking and opening the file to manipulate it.}
695+
696+
\note{I/O operations may fail even when \function{access()}
697+
indicates that they would succeed, particularly for operations
698+
on network filesystems which may have permissions semantics
699+
beyond the usual \POSIX{} permission-bit model.}
695700
\end{funcdesc}
696701

697702
\begin{datadesc}{F_OK}

0 commit comments

Comments
 (0)