Page MenuHomeFreeBSD

open: make non-POSIX errno value more apparent
ClosedPublic

Authored by emaste on Jan 26 2024, 3:25 PM.
Tags
None
Referenced Files
F102673355: D43618.id133406.diff
Fri, Nov 15, 4:34 PM
F102660948: D43618.diff
Fri, Nov 15, 12:14 PM
Unknown Object (File)
Tue, Oct 22, 4:34 PM
Unknown Object (File)
Sat, Oct 19, 4:00 PM
Unknown Object (File)
Sat, Oct 19, 9:04 AM
Unknown Object (File)
Fri, Oct 18, 3:19 AM
Unknown Object (File)
Oct 2 2024, 10:46 PM
Unknown Object (File)
Sep 30 2024, 7:12 AM
Subscribers

Details

Summary
When O_NOFOLLOW is specified and the target is a symbolic link FreeBSD
sets errno to a value different to that specified by POSIX.  A note to
this effect was added in commit 295159dfa3ed, but I missed it when
reading through the list of errno values.  In the errno list, add an
explicit note and reference to the note in the STANDARDS section.

PR:             214633

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

emaste created this revision.

Thanks. This would have saved me a few minutes last night.

This revision is now accepted and ready to land.Jan 26 2024, 3:32 PM

I thought that .Tn was deprecated...

I thought that .Tn was deprecated...

Ah, there is some debate on that topic, but mandoc does indeed suggest it not be used. I just copied it from the existing .Tn POSIX below, and wouldn't object to a pass over e.g. all of libc's man pages.