Page MenuHomeFreeBSD

cp: Fix improper use of O_PATH.
ClosedPublic

Authored by des on Mon, Jun 23, 8:23 PM.
Tags
None
Referenced Files
F122391200: D50984.diff
Fri, Jul 4, 10:42 PM
Unknown Object (File)
Fri, Jun 27, 3:41 PM
Unknown Object (File)
Fri, Jun 27, 3:41 PM
Unknown Object (File)
Fri, Jun 27, 3:41 PM
Unknown Object (File)
Fri, Jun 27, 3:41 PM
Unknown Object (File)
Fri, Jun 27, 3:41 PM
Unknown Object (File)
Tue, Jun 24, 9:47 PM
Unknown Object (File)
Tue, Jun 24, 9:22 PM
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 65033
Build 61916: arc lint + arc unit