Re: git: 421025a274fb - main - access.2: Mention that lstat(2) should be used for symbolic links
Date: Tue, 14 May 2024 06:43:27 UTC
Gordon Bergling <gbe@FreeBSD.org> writes: > commit 421025a274fb5759b3ecc8bdb30b24db830b45ae > Author: Gordon Bergling <gbe@FreeBSD.org> > AuthorDate: 2024-05-13 08:40:12 +0000 > Commit: Gordon Bergling <gbe@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 - des@FreeBSD.org