From nobody Fri Jan 26 15:38:31 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TM20R2pv9z58Lwt; Fri, 26 Jan 2024 15:38:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TM20R275Hz4V4d; Fri, 26 Jan 2024 15:38:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1706283511; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=BbmRuPB4qhBtyEz+gGsomiEH79SIEtEVj2PeEGzrrU4=; b=FvtTsibZaPeykowJ6Nqw9efvuZFxLZLZZuLi6bL2aOwXl4/dVn2NNlebTh1PGWcUvB2qOf i+Gx/qkogSGdbzVr7viUhccYG2VcUVmJhoePnre7thPV1ZCK2shZefL8Fv8C2omn3sDYUo BAQfaASxRK2R3XCGOerP6YGihZV5O1b8rDm7pUsocS5VauPVY1Tlyi8mVO8sTvtjE45wEO 5vfqyuNqcOguvzJntaX738nJ7aHs/d6hxY3funHbY3GrxboP6ai+ORD7SHutANyUJXpoM4 AqEBjXp2hUqp+EFU+a0UvkvkWoYLYtONJHnLiHU4y+DWwzIw84N97uGFZtrMGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1706283511; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=BbmRuPB4qhBtyEz+gGsomiEH79SIEtEVj2PeEGzrrU4=; b=QzVzXnT2HPtauQVxZucu330cvxLZcCpIUShag+AUS+DLbIRFHCLLe2Tazu2xasGqBirtfx GrgtIPj3Q7OuFDp3dGXB6cPxRsFrrDD/DyPY7pcx2Sw4kSAy2kDLohDvJNP+mcU0ybuGEb VMRygenGnBTQruP8+wOaDMj3CjmTh8DHuh2FuHDBhOV2ExbZRhbsceCjVfbFZHywajHBb5 APHrp2BRaMFpujEmDJCdcF1QJdHnCXFvVKX+bfac461ySEyiVkyU6sDfVoOHETCpPR6xMB N4NiOOT2/YwwFJO0ZuyEikca5kUaLDqVVm7lJHbTm9Qlgso6JMYF5Pq5iFWgAA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1706283511; a=rsa-sha256; cv=none; b=bz9oYJsTvAIJQZL0g9umBTtTpKYPtT9SSZ3AJH78Iskee8aP9eDMrpELNIgxUe/Wd24iOt iqy+jrIhQtg09V2HRc16P39gKWUJSfKJ2OTCgDrJ/ieAkcNcXZxP+RmhsLN7Gez6jCXIgX jQ9HuU0XyhmHK6YepQlEubDTcA/3NBzwM/1Ra9kY67RbI0ZHNKX1bsbiMN759JN608Ytkw +sjZQhjTv8Cc+Ap4tHZ0jhc8GWFaZa8x1HzQgW89mvuMRm/Q/hJcIMXUhNGLSptxkAcY5P h6aPF+iGhwcEhdtCQWDR+dVTcynTNlBMhjIVIEk0OAYYSpB3/PwIhzjpJrZvQA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TM20R139Bzn7g; Fri, 26 Jan 2024 15:38:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 40QFcVLE027043; Fri, 26 Jan 2024 15:38:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 40QFcVBR027040; Fri, 26 Jan 2024 15:38:31 GMT (envelope-from git) Date: Fri, 26 Jan 2024 15:38:31 GMT Message-Id: <202401261538.40QFcVBR027040@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ed Maste Subject: git: ea6a6b63e1fd - main - open: make non-POSIX errno value more apparent List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ea6a6b63e1fd304e790c8ed7627caf5e3ba52bc7 Auto-Submitted: auto-generated The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=ea6a6b63e1fd304e790c8ed7627caf5e3ba52bc7 commit ea6a6b63e1fd304e790c8ed7627caf5e3ba52bc7 Author: Ed Maste AuthorDate: 2024-01-26 15:19:04 +0000 Commit: Ed Maste CommitDate: 2024-01-26 15:36:32 +0000 open: make non-POSIX errno value more apparent In the errno list, add an explicit note and reference to the note in the STANDARDS section. When O_NOFOLLOW is specified and the target is a symbolic link FreeBSD sets errno to a value different than that specified by POSIX. Commit 295159dfa3ed added a note to this effect, but I missed it when reading through the list of errno values. PR: 214633 Reviewed by: markj Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D43618 --- lib/libc/sys/open.2 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/libc/sys/open.2 b/lib/libc/sys/open.2 index df9400e80036..a6859a6c4931 100644 --- a/lib/libc/sys/open.2 +++ b/lib/libc/sys/open.2 @@ -481,6 +481,10 @@ The system file table is full. .It Bq Er EMLINK .Dv O_NOFOLLOW was specified and the target is a symbolic link. +.Tn POSIX +specifies a different error for this case; see the note in +.Sx STANDARDS +below. .It Bq Er ENXIO The named file is a character special or block special file, and the device associated with this special file @@ -643,6 +647,7 @@ is set, and the process is in capability mode. .Sh STANDARDS These functions are specified by .St -p1003.1-2008 . +.Pp .Fx sets .Va errno