Page MenuHomeFreeBSD

cp: Fix improper use of O_PATH.
ClosedPublic

Authored by des on Jun 23 2025, 8:23 PM.
Tags
None
Referenced Files
F151544434: D50984.id157466.diff
Thu, Apr 9, 2:50 AM
Unknown Object (File)
Sun, Apr 5, 1:25 AM
Unknown Object (File)
Sat, Apr 4, 11:43 AM
Unknown Object (File)
Fri, Apr 3, 12:59 AM
Unknown Object (File)
Tue, Mar 31, 12:00 PM
Unknown Object (File)
Tue, Mar 31, 4:19 AM
Unknown Object (File)
Thu, Mar 19, 2:22 AM
Unknown Object (File)
Thu, Mar 19, 2:17 AM
Subscribers

Details

Summary

This does not appear to make any practical difference at the moment, but
technically O_PATH means “I'm not going to use this descriptor for any
other purposes than vnode lookups”, so using it to read the directory's
ACLs is improper and might fail in the future.

Fixes: 82fc0d09e8625
Sponsored by: Klara, Inc.

Diff Detail

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