diff --git a/man2/open.2 b/man2/open.2 index 711fd96b8..bfc1b2f6b 100644 --- a/man2/open.2 +++ b/man2/open.2 @@ -966,6 +966,19 @@ must be a directory that was opened for reading or using the .B O_PATH flag. +.PP +If the pathname given in +.I pathname +is relative, and +.I dirfd +is not a valid file descriptor, an error +.RB ( EBADF ) +results. +(Specifying an invalid file descriptor number in +.I dirfd +can be used as a means to ensure that +.I pathname +is absolute.) .\" .SS openat2(2) The