chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bus-proxy: implement 'at_console'
[elogind.git]
/
src
/
shared
/
acl-util.h
diff --git
a/src/shared/acl-util.h
b/src/shared/acl-util.h
index 23090d99843a6d55b9c1b04763e6bbd508773239..a753ad14fdc24ad939c6f2b47493d1025abbaad5 100644
(file)
--- a/
src/shared/acl-util.h
+++ b/
src/shared/acl-util.h
@@
-24,4
+24,13
@@
#include <stdbool.h>
int acl_find_uid(acl_t acl, uid_t uid, acl_entry_t *entry);
#include <stdbool.h>
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);
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);
+}