[Bug 262895] access(2) man page should mention softlinks
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 262895] access(2) man page should mention softlinks"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 14 May 2024 06:46:40 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262895 Dag-Erling Smørgrav <des@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |des@FreeBSD.org --- Comment #4 from Dag-Erling Smørgrav <des@FreeBSD.org> --- Jamie, how exactly did you “almost get bitten” by this? `access()` etc always dereference the symbolic link because the question they answer is “what would happen if I tried to `open()` this path” and `open()` always dereferences symbolic links. Furthermore, as is already noted in the manual page, you should probably not be using `access()` at all for reasons entirely unrelated to whether or not it follows symbolic links. -- You are receiving this mail because: You are on the CC list for the bug.