From nobody Fri Mar 22 13:33:15 2024 X-Original-To: standards@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 4V1NZ41vbNz5DxH6 for ; Fri, 22 Mar 2024 13:33:16 +0000 (UTC) (envelope-from bugzilla-noreply@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 4V1NZ36pC2z45cW for ; Fri, 22 Mar 2024 13:33:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1711114396; a=rsa-sha256; cv=none; b=Ff6YyHaPQQ0dc9N2McwCS75vUu8n6Dq0Y4KO0xbsOLx31ce4izaB79ueXydtEcaIndCVR3 mrHHCE6L6zJsJvoYaIz4fk62d0Qcss47Xn3MNsrI3Aru6qqAW37ybDkQwTrA+INlm9GIEO ecnkOTi3J/iKkJbEN+ftwBXs+F0I8YsVGnwRMFme8+dlxEbpopaps11sQIg92jR5Eueyxw G1GDLLl7sesykQ/yE5AAeeq8ZlONgi+OkXTyQsz8h43+A948SggPkTc3br6Lbe1kAtu9P3 +CtgU6tcFWgdKH0/5sP59Q1SzhXH1joevdldMktY4PN/eDhvuxjiH8lqEgwaEg== 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=1711114396; 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: in-reply-to:in-reply-to:references:references; bh=plIV/mFgBF9rCqukOKYFsX0aoWt4t4/QlhI31u+cEY4=; b=r08gkT7LfrZbpjHLyzh/T/UR+f9SvvK1G1QFCq7MhpKkycOm9y2xTF6gDbNsgmuskGCq8B FYj+N3Fk+8PFN/xepCSin/8ol7akhLDlgKIH125F7TKmF0DKZDN6sXHtXhPsYWL4pa3/Tj xskDo2It/QoKYQq8JVYkXXnvRPCDmNYXkM2/bIHMH+rZ5vJgtqcy4Uc9QHwmLfjQTrEqkE 51rpU84iFOCdoxaiMeZ622p03eA5YoCZ55BUlqeykFebwP9IVdZtodwkQm0b3ZSizp6EAd t1CIjtlrmz7xt7YelZh/8p1gqhhE6nnOaq3SMr3HGoG0tHrvVIiZ7Nt5WeOYxQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 4V1NZ36Ng3z1LDw for ; Fri, 22 Mar 2024 13:33:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 42MDXFBa096989 for ; Fri, 22 Mar 2024 13:33:15 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 42MDXFY8096984 for standards@FreeBSD.org; Fri, 22 Mar 2024 13:33:15 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: standards@FreeBSD.org Subject: [Bug 214633] Open symlink with O_NOFOLLOW should fail with ELOOP, not EMLINK Date: Fri, 22 Mar 2024 13:33:15 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: standards X-Bugzilla-Version: 11.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: standards@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Standards compliance List-Archive: https://lists.freebsd.org/archives/freebsd-standards List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-standards@freebsd.org X-BeenThere: freebsd-standards@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214633 --- Comment #8 from commit-hook@FreeBSD.org --- A commit in branch stable/14 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3Dc3c75c142c0cb9fe9bf166e3416195bc5= 9ad0e12 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(+) --=20 You are receiving this mail because: You are the assignee for the bug.=