access(), eaccess() and faccessat() will always dereference
symbolic links.
So add a note the manual page, that stat(2) should be used in
the case of symbolic links.
PR: 262895
MFC after: 1 week
Differential D44890
access.2: Mention that lstat(2) should be used for symbolic links gbe on Apr 21 2024, 9:56 AM. Authored by Tags None Referenced Files
Subscribers
Details
access(), eaccess() and faccessat() will always dereference So add a note the manual page, that stat(2) should be used in PR: 262895 mandoc output review and 'mandoc -Tlint' checks
Diff Detail
Event TimelineComment Actions I realise that it's my fault for using the weak word "refer" in my original suggestion (I originally wrote "access, eaccess, faccessat will ALWAYS dereference symbolic links. If you need to refer to the symbolic link itself, you'll have to instead use stat(2)") but I think it looks even less suitable in your submission. Would "If the symbolic link itself needs to be referenced..." be better? Cheers, Jamie |