[Bug 262895] access(2) man page should mention softlinks

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 28 Mar 2022 17:38:21 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262895

            Bug ID: 262895
           Summary: access(2) man page should mention softlinks
           Product: Documentation
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Manual Pages
          Assignee: bugs@FreeBSD.org
          Reporter: jamie@catflap.org
                CC: doc@FreeBSD.org

I almost got bitten by this.

access, eaccess, faccessat will ALWAYS dereference symbolic links.

(though Linux allows the flag AT_SYMLINK_NOFOLLOW to be applied to faccessat)

Could a note like this be added to the man page?

"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)"

-- 
You are receiving this mail because:
You are the assignee for the bug.