Date: Tue, 14 May 2024 06:46:40 +0000 From: bugzilla-noreply@freebsd.org To: doc@FreeBSD.org Subject: [Bug 262895] access(2) man page should mention softlinks Message-ID: <bug-262895-9-AlHeodmAmP@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-262895-9@https.bugs.freebsd.org/bugzilla/> References: <bug-262895-9@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262895 Dag-Erling Sm=C3=B8rgrav <des@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |des@FreeBSD.org --- Comment #4 from Dag-Erling Sm=C3=B8rgrav <des@FreeBSD.org> --- 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.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-262895-9-AlHeodmAmP>