diff --git a/lib/libc/sys/open.2 b/lib/libc/sys/open.2 --- a/lib/libc/sys/open.2 +++ b/lib/libc/sys/open.2 @@ -572,12 +572,6 @@ .Dv O_EXEC or .Dv O_SEARCH . -.It Bq Er EINVAL -The -.Dv O_RESOLVE_BENEATH -flag is specified and -.Dv path -is absolute. .It Bq Er EBADF The .Fa path @@ -610,15 +604,9 @@ or contained a ".." component leading to a directory outside of the directory hierarchy specified by .Fa fd , -and the process is in capability mode. -.It Bq Er ENOTCAPABLE -The +and strict relative lookup was either requested by providing the .Dv O_RESOLVE_BENEATH -flag was provided, and the relative -.Fa path -escapes the -.Ar fd -directory. +flag, or enforced due to the process being in capability mode. .El .Sh SEE ALSO .Xr chmod 2 ,