Gordon Bergling <g...@freebsd.org> writes: > commit 421025a274fb5759b3ecc8bdb30b24db830b45ae > Author: Gordon Bergling <g...@freebsd.org> > AuthorDate: 2024-05-13 08:40:12 +0000 > Commit: Gordon Bergling <g...@freebsd.org> > CommitDate: 2024-05-13 08:40:12 +0000 > > access.2: Mention that lstat(2) should be used for symbolic links > > access(), eaccess() and faccessat() will always dereference > symbolic links. > > 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 -- Dag-Erling Smørgrav - d...@freebsd.org