diff options
Diffstat (limited to 'src/shared/acl-util.h')
-rw-r--r-- | src/shared/acl-util.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/shared/acl-util.h b/src/shared/acl-util.h index 36ef490d7e..a753ad14fd 100644 --- a/src/shared/acl-util.h +++ b/src/shared/acl-util.h @@ -26,3 +26,11 @@ int acl_find_uid(acl_t acl, uid_t uid, acl_entry_t *entry); int calc_acl_mask_if_needed(acl_t *acl_p); int search_acl_groups(char*** dst, const char* path, bool* belong); + +static inline void acl_freep(acl_t *acl) { + + if (!*acl) + return; + + acl_free(*acl); +} |