From 2170ce77f285048ed05a8fdda5ee2cee36e51fb0 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Tue, 8 Sep 2026 20:30:32 +0900 Subject: [PATCH] acl-util: make acl_set_perm() helper return negative errno All callers expect it returns negative errno on failure. --- src/shared/acl-util.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/shared/acl-util.h b/src/shared/acl-util.h index c1eebac805..35b97780c6 100644 --- a/src/shared/acl-util.h +++ b/src/shared/acl-util.h @@ -2,6 +2,7 @@ #pragma once #include "dlopen-note.h" +#include "errno-util.h" #include "forward.h" #if HAVE_ACL @@ -62,7 +63,7 @@ DEFINE_TRIVIAL_CLEANUP_FUNC_FULL_RENAME(uid_t*, sym_acl_free, acl_free_uid_tpp, DEFINE_TRIVIAL_CLEANUP_FUNC_FULL_RENAME(gid_t*, sym_acl_free, acl_free_gid_tpp, NULL); static inline int acl_set_perm(acl_permset_t ps, acl_perm_t p, bool b) { - return (b ? sym_acl_add_perm : sym_acl_delete_perm)(ps, p); + return RET_NERRNO((b ? sym_acl_add_perm : sym_acl_delete_perm)(ps, p)); } #else