HomeFreeBSD

realpath: Belatedly document POSIX conformance

Description

realpath: Belatedly document POSIX conformance

We've been mostly POSIX-conforming since r236400 and fully since r240410,
which fixed a corner case where a missing non-leaf directory would be
reported as ENOTDIR instead of ENOENT.

Approved by: re (cperciva)
Sponsored by: Klara, Inc.
Fixes: 7877ed7ce33e ("Avoid mapping ENOENT to ENOTDIR for non-existent path components.")
Reviewed by: ziaee, markj
Differential Revision: https://reviews.freebsd.org/D53027

(cherry picked from commit 7c66667d45e95af59f59e41ef169119a974a6be1)
(cherry picked from commit 50d6a56a198c7c3961313a933f54eea94ffa4b5f)

Details

Provenance
desAuthored on Oct 13 2025, 11:53 AM
cpercivaCommitted on Oct 30 2025, 11:49 PM
Reviewer
ziaee
Differential Revision
D53027: realpath: Belatedly document POSIX conformance
Parents
rG38c42ca57ba5: realpath: Report correct path on failure
Branches
Unknown
Tags
Unknown