Page MenuHomeFreeBSD

cp: Fix improper use of O_PATH.
ClosedPublic

Authored by des on Mon, Jun 23, 8:23 PM.
Tags
None
Referenced Files
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
Unknown Object (File)
Tue, Jun 24, 9:21 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 Not Applicable
Unit
Tests Not Applicable