Page MenuHomeFreeBSD

realpath: Report correct path on failure
AcceptedPublic

Authored by des on Fri, Oct 10, 2:05 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Oct 11, 1:49 AM
Unknown Object (File)
Sat, Oct 11, 1:44 AM
Unknown Object (File)
Sat, Oct 11, 1:43 AM
Unknown Object (File)
Fri, Oct 10, 8:05 PM
Unknown Object (File)
Fri, Oct 10, 8:05 PM
Unknown Object (File)
Fri, Oct 10, 8:05 PM
Unknown Object (File)
Fri, Oct 10, 7:40 PM
Unknown Object (File)
Fri, Oct 10, 7:01 PM
Subscribers

Details

Reviewers
markj
Group Reviewers
Klara
Summary

If lstat() fails with EACCES or ENOTDIR, the path we need to return in
the caller-provided buffer is that of the parent directory (which is
either unreadable or not a directory; the latter can only happen in the
case of a race) rather than that of the child we attempted to stat.

Sponsored by: Klara, Inc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 67702
Build 64585: arc lint + arc unit