From f7eb6b134db8fed6a6851b6a3d00a2ea0e11eadd Mon Sep 17 00:00:00 2001 From: Jose Luis Duran Date: Tue, 27 Aug 2024 02:23:14 +0000 Subject: [PATCH] open(2): Extend EINVAL's description PR: 281033 (cherry picked from commit 02c23c3b5ac9c9c1115c8b892034bb5d67b05c06) --- lib/libc/sys/open.2 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/libc/sys/open.2 b/lib/libc/sys/open.2 index 220561cc568..4cdceb33653 100644 --- a/lib/libc/sys/open.2 +++ b/lib/libc/sys/open.2 @@ -25,7 +25,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd January 29, 2024 +.Dd August 25, 2024 .Dt OPEN 2 .Os .Sh NAME @@ -580,6 +580,12 @@ and .Dv O_EXEC or .Dv O_SEARCH . +.It Bq Er EINVAL +.Dv O_CREAT +is specified, +and the last component of the +.Fa path +argument is invalid on the file system on which the file is being created. .It Bq Er EBADF The .Fa path