diff options
| author | Michael Kerrisk <mtk.manpages@gmail.com> | 2021-08-12 02:47:23 +0200 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2021-08-12 05:45:21 +0200 |
| commit | a9db6c1ba3817c79f3f9f74976ffe17f8b2df1c2 (patch) | |
| tree | efec264e8d84cb712efc5a386c1037626cc7b705 /man2 | |
| parent | 56dddcbad5a7a8af0ef9bdf7e7deaad92a28795b (diff) | |
| download | man-pages-a9db6c1ba3817c79f3f9f74976ffe17f8b2df1c2.tar.gz | |
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>
Diffstat (limited to 'man2')
| -rw-r--r-- | man2/open.2 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/man2/open.2 b/man2/open.2 index a4f774b2c4..711fd96b8b 100644 --- a/man2/open.2 +++ b/man2/open.2 @@ -959,6 +959,13 @@ referred to by the file descriptor the calling process, as is done by .BR open () 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) The |
