Page MenuHomeFreeBSD

cp: Fix improper use of O_PATH.
ClosedPublic

Authored by des on Jun 23 2025, 8:23 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Sep 28, 12:19 AM
Unknown Object (File)
Mon, Sep 22, 8:45 PM
Unknown Object (File)
Sat, Sep 20, 2:15 AM
Unknown Object (File)
Fri, Sep 19, 1:47 AM
Unknown Object (File)
Sep 16 2025, 3:14 AM
Unknown Object (File)
Sep 13 2025, 1:13 PM
Unknown Object (File)
Sep 12 2025, 7:53 AM
Unknown Object (File)
Sep 10 2025, 6:19 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