From nobody Tue May 14 06:43:27 2024 X-Original-To: dev-commits-src-main@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 4Vdmyp1Dm9z5KXc2; Tue, 14 May 2024 06:43:30 +0000 (UTC) (envelope-from des@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Vdmyn6tSdz4mmk; Tue, 14 May 2024 06:43:29 +0000 (UTC) (envelope-from des@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1715669010; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Bl41G+fu2AQgGr5bhPmTJbVyr41CrCkuN7HrUiRK0go=; b=gzzEdWAl67GseRwPOA+vHg+VRzqiqExBgiYSKTHT5nhf6mABymEoUpJNTL9Gz2On31cAF8 3V3mjfyH/w/d/iOxoEI7PxtyinYkWgMU+WXy1QY0pe7eyYNevujGkJ8hr04q0ytHuM3mrw LbTBB/pzc27WB5Nr0GlH1K5H6XK9DnQv4IM8ATXxcBIr9ZOVB1y8JX0BGG5+qIibsxw3IP zQYn0dH9qNs7524WQZLNK1Xgk3tpKj43S5g6xMsLLUoHf5XSw7TlBspNX9YURrCc+IEOK/ /Lj4sjlJRGm2qzKwyQiw1NiSqfVP6SmKP7BXpMZC0GFhQZY5yzigxe8xMtIuGQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1715669010; a=rsa-sha256; cv=none; b=lgYGxOEhC2U1n+eJ+43P67wERV3MnzJ3ZHTSm01mFtE3MndpMFI40PRm355oM0zIzgwNJj yQ+jCEP3gS3fkqR8hiEqlFURdF0K3tTAE/8IhBCW2LVeCKlzee96t6sOg6Hu1k5ZKz4qgp BqV9KD42pM6DhU+BRXsy4LKAI3rYHnjRtSdAvMv/p1tqxsyjNNBOYVDD6yko0rOaRTrA// efGP5Y5kqzw4fJpBGDK/HADmEiFbmWMAduFvgzV6w3j2XI2+x9cvfmiY6RueFsb2ZXa3lz B0W2CFXiPsZTZ//aVdB+VSKIMFEXZXgp/axGtl5hLDjJ0Yhxvm4vaPSkhvIxcQ== 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=1715669010; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Bl41G+fu2AQgGr5bhPmTJbVyr41CrCkuN7HrUiRK0go=; b=pjHjXPSL/KMir7B/p8t+O4u0plVG8gy6IPmwKJdi4QWQH6QSMyZRzElDkNxjm82V5AFiI+ 3kcnhZygcTWiKbv6izWlIzcYfS2J6gAxUQeOEEDOyz5cyctFlT78NIb2J6/L35bqvP632+ DlfyHGMIOmW+Wc+AE+4xR6XjqcsskgfGyJM9VeSBGpVGc3ZY9niuUztvcnxTBDE2vd9L3W 04Z/AelqtISe+x0aruKZdiy53+d4mteaXJqMf7D7SetTEs44vj8jL2nubMbqoyIxtIzGeh Hdt3Leubxc1BsC79jR5SUDCKZ4WoSwAS6frrp8/GM/UL0/eO+kGNXvrhTSLGvA== Received: from ltc.des.dev (2a02-8428-0993-f001-922e-16ff-fef1-acef.rev.sfr.net [IPv6:2a02:8428:993:f001:922e:16ff:fef1:acef]) (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) (Authenticated sender: des) by smtp.freebsd.org (Postfix) with ESMTPSA id 4Vdmyn5nBFzZ2M; Tue, 14 May 2024 06:43:29 +0000 (UTC) (envelope-from des@freebsd.org) Received: by ltc.des.dev (Postfix, from userid 1001) id 111F11529F; Tue, 14 May 2024 08:43:27 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Gordon Bergling Cc: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: Re: git: 421025a274fb - main - access.2: Mention that lstat(2) should be used for symbolic links In-Reply-To: <202405130840.44D8eXdL014138@gitrepo.freebsd.org> (Gordon Bergling's message of "Mon, 13 May 2024 08:40:33 GMT") References: <202405130840.44D8eXdL014138@gitrepo.freebsd.org> User-Agent: Gnus/5.13 (Gnus v5.13) Date: Tue, 14 May 2024 08:43:27 +0200 Message-ID: <86le4czyeo.fsf@ltc.des.dev> List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Gordon Bergling writes: > commit 421025a274fb5759b3ecc8bdb30b24db830b45ae > Author: Gordon Bergling > AuthorDate: 2024-05-13 08:40:12 +0000 > Commit: Gordon Bergling > CommitDate: 2024-05-13 08:40:12 +0000 > > access.2: Mention that lstat(2) should be used for symbolic links >=20=20=20=20=20 > access(), eaccess() and faccessat() will always dereference > symbolic links. >=20=20=20=20=20 > So add a note in the manual page, that lstat(2) should be > used in the case of symbolic links. Please revert. This is pointless. The purpose of `access()` is to (try to) tell you what would happen if you tried to `open()` a given path, and there is no way to `open()` a symlink without dereferencing it, so this addition answers a question that nobody is asking. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@FreeBSD.org