From nobody Fri Mar 22 13:32:22 2024 X-Original-To: dev-commits-src-branches@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 4V1NY341GNz5Dwn4; Fri, 22 Mar 2024 13:32:23 +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 4V1NY263cmz43km; Fri, 22 Mar 2024 13:32:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711114342; 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=fAVtAYgNEn0oM/Ul3F24oXDubp8lyPtF/aS0fla+RiY=; b=DsOfQwF67Jh+Jd9oTcWTEAsgMJ2qyRc37zp1j8tr8Cv+kCpDibUzQvFHXGw6xlbvAVzGyq dpMgvE6mFNErvb86/+ZpNEI8pms9KkE52gHMJAI3gtxKKjVma06qyv+PPd0k753QDmCtTZ XKM0RJ6LozDOSzwgMwdVzBgD9ustnI6Z90ErsAnBlmvNu8ItFgLnNePRfQn9iAGjgIUhu4 tOeAovyfJAE0t0t09Z3bESKP9O+nYTcTuRhCAnEE+y8e6HRpwQIgIxctzqdRkUMVzqWlpy 0Tt4x+JEwGh9c/8XMZNLRaQpJOKzf55S1WbjfPO9XGJMsjmMNmV2beHqU9JxgA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1711114342; a=rsa-sha256; cv=none; b=L1Wgg5OiYJ+z53q5Qt7dmJhDloEw18/V3FsxpyZw8DC9ogeL1BP96hGHyJKYhz4JqQVXVg kd7K55UTzqWKPzo3pzrtNaQzVS+YSsJt6dKhBXebU1rAvNAB5Yccu3vGDMLBTMMFl8/Jc5 k7tPSPwaSAlfp8SKy6qdhsR0i2XLsnjnLJvgduPb3gaoAd08SSm5GfGjxFcWSALT/39Hff cYNB87XNAUq1j14rCGHBV5/cI5hbtfEec5jSvlh5f07upGd2pF6AnB25rImH8/IXzocKsf Z2QrKsJ7hnPy7wBULZeCFJoUwtWTGS/Nob884r7khYUUZFW1RCWwRyMq5hNgLw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711114342; 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=fAVtAYgNEn0oM/Ul3F24oXDubp8lyPtF/aS0fla+RiY=; b=WmHGVZgIoEi+vAMBSrofrYs7O3HzU4RgZ+g+MQFkyRexWa5bMM3IEt0EXhEOgkEJRnIs+M SpQ+tlRIiqp8VcL+q/5JEc2J553QLHh+240Tz2OzmPcujEuBAYV3oCLyxX9/BtpWEU6hno bfZxGeBzMwoWf32bd2eIXCTmABKMDUY00l/utz/PvPG1XzmUPgZ7ZBmjvSNVKR8T1SIbmW vslYSXtMgkqU+Uv0pZuCYZIbVnw7pvi+y7T5BhADYfFiu4c68T7bKkTKbBIAPdK/yJ+gKU J3Llu/FY+UME1oDPMy0d1BS+qKlljRQe1602i/Tl/m55HDNd3DHn/ZWF3m5k9w== 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 4V1NY25gvZz1KxZ; Fri, 22 Mar 2024 13:32:22 +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 42MDWMjF002222; Fri, 22 Mar 2024 13:32:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 42MDWMIA002219; Fri, 22 Mar 2024 13:32:22 GMT (envelope-from git) Date: Fri, 22 Mar 2024 13:32:22 GMT Message-Id: <202403221332.42MDWMIA002219@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Ed Maste Subject: git: c3c75c142c0c - stable/14 - open: make non-POSIX errno value more apparent List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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/stable/14 X-Git-Reftype: branch X-Git-Commit: c3c75c142c0cb9fe9bf166e3416195bc59ad0e12 Auto-Submitted: auto-generated The branch stable/14 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=c3c75c142c0cb9fe9bf166e3416195bc59ad0e12 commit c3c75c142c0cb9fe9bf166e3416195bc59ad0e12 Author: Ed Maste AuthorDate: 2024-01-26 15:19:04 +0000 Commit: Ed Maste CommitDate: 2024-03-22 13:30:30 +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 (cherry picked from commit ea6a6b63e1fd304e790c8ed7627caf5e3ba52bc7) --- 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 67a059db10da..383dd58b2a31 100644 --- a/lib/libc/sys/open.2 +++ b/lib/libc/sys/open.2 @@ -487,6 +487,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 @@ -649,6 +653,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