From nobody Tue May 14 06:46:40 2024 X-Original-To: doc@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 4Vdn2S4k70z5KXb0 for ; Tue, 14 May 2024 06:46:40 +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 4Vdn2S1x5Mz4n0c for ; Tue, 14 May 2024 06:46:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1715669200; a=rsa-sha256; cv=none; b=e0UJWkltshV3cMKfDOhQxH6ihFIG/NvmS6ppphGN67W5HiAFjw9rerCLlCvgJAwvu9BGlQ FyKMtRcbeA1MowykI95ln1Y1QkgISvJp85tfw/ZIKWRB+S6l0tZ3y/wEJYQmLgnkf1DyNX H3SGjPXmficnjTrYTpMq5Dtjw/OkfXAmPIiJYeehYsCqcIIiONeM9sxrwWRiuCj3Vz0wy6 me5Y+wF7qs7kJCCrgIw9bMuJv4aqRPs8tVJaBGQ1EmQbVG+7/8kkNLh8augJZikDlMkA2Z s0SU9YUI+5gJs8Wp06i8tfqREXEktRJxeHLlIjPsfMlPy0MIO6H/LcxgLsusaA== 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=1715669200; 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=Dx+O9WyF5c95JqL1xeVb9vRkYIANTd8zEqzD1+V0LM0=; b=XLYWnE0PTE3FD5euXrgnmus7y9XgMVU3I0EJAFv7WgpnhmeWJk7RXFQ1N8vJAtBMotMPOE fHGEOnVHcoCZf8BeE4CxuLwmbDtCzMOj0UdZk5Pnn1CX4cQMzQO05r3L5TCewidWrNQyZ0 oJ8PyRMY1602I+1/Bwz4NfLpBuzndaKYWBqfNAXuh7eWGYn4PTYUjZ2Z4AmWZbNf+1pBSU iDNGsmbaa4j3hfYBno8HtKAcBptMn8Mu4hA9yqF7dEvbd9g/Jki9X2Xn8XVfU7tyhXURjh mdz/3IlC82o0IC62lOuQMhm77C6yLvjwQ/AEenK7aSV/mWZ5NQOJN1+5zVd3cg== 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 4Vdn2S1Y42zLWV for ; Tue, 14 May 2024 06:46:40 +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 44E6kepc087801 for ; Tue, 14 May 2024 06:46:40 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 44E6keLW087798 for doc@FreeBSD.org; Tue, 14 May 2024 06:46:40 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: doc@FreeBSD.org Subject: [Bug 262895] access(2) man page should mention softlinks Date: Tue, 14 May 2024 06:46:40 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Documentation X-Bugzilla-Component: Manual Pages X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: des@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gbe@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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: Documentation project List-Archive: https://lists.freebsd.org/archives/freebsd-doc List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-doc@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262895 Dag-Erling Sm=C3=B8rgrav changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |des@FreeBSD.org --- Comment #4 from Dag-Erling Sm=C3=B8rgrav --- Jamie, how exactly did you =E2=80=9Calmost get bitten=E2=80=9D by this? `a= ccess()` etc always dereference the symbolic link because the question they answer is =E2=80=9C= what would happen if I tried to `open()` this path=E2=80=9D and `open()` always derefe= rences symbolic links. Furthermore, as is already noted in the manual page, you should probably not be using `access()` at all for reasons entirely unrelat= ed to whether or not it follows symbolic links. --=20 You are receiving this mail because: You are on the CC list for the bug.=