mirror of https://github.com/mkerrisk/man-pages
open.2: Clarify that openat()'s dirfd must be opened with O_RDONLY or O_PATH
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
56dddcbad5
commit
a9db6c1ba3
|
@ -959,6 +959,13 @@ referred to by the file descriptor
|
||||||
the calling process, as is done by
|
the calling process, as is done by
|
||||||
.BR open ()
|
.BR open ()
|
||||||
for a relative pathname).
|
for a relative pathname).
|
||||||
|
In this case,
|
||||||
|
.I dirfd
|
||||||
|
must be a directory that was opened for reading
|
||||||
|
.RB ( O_RDONLY )
|
||||||
|
or using the
|
||||||
|
.B O_PATH
|
||||||
|
flag.
|
||||||
.\"
|
.\"
|
||||||
.SS openat2(2)
|
.SS openat2(2)
|
||||||
The
|
The
|
||||||
|
|
Loading…
Reference in New Issue