HomeFreeBSD

sys: Mark ACL conversion routines as __result_use_check

Description

sys: Mark ACL conversion routines as __result_use_check

Both acl_copy_oldacl_into_acl() and acl_copy_acl_into_oldacl() may fail
in some circumstances (e.g., acl.acl_cnt exceeding the capacity of
OLDACL_MAX_ENTRIES). This change marks both routines with
__result_use_check, enforcing check for errors by the caller.

Suggested by: markj
Reviewed by: markj, emaste
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D46254

(cherry picked from commit ef9fc9609a1ff53047577aa7cf51246fc04c954b)

Details

Provenance
khorben_defora.orgAuthored on Aug 9 2024, 5:37 PM
emasteCommitted on Sep 5 2024, 2:50 PM
Reviewer
markj
Differential Revision
Restricted Differential Revision
Parents
rGab7a79806e31: libfetch: don't include fragments in HTTP requests
Branches
Unknown
Tags
Unknown