summaryrefslogtreecommitdiff
path: root/src/shared/acl-util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-06-17 22:08:21 +0200
committerLennart Poettering <lennart@poettering.net>2015-06-17 22:08:21 +0200
commite738c945ec16e14b96eab402024b0caca47f89d8 (patch)
tree00c2bc4a83f7aad013fa6ad4f48ab504f99c601e /src/shared/acl-util.h
parent7391cb5d581c4d48dec689686fd9514fdb7d4888 (diff)
acl-util: various smaller fixes to parse_acl()
- Make string parameter const - Don't log some OOM errors, but not others - Don't eat up errors generated by acl_from_text() - Make sure check for success of every single strv_push() call
Diffstat (limited to 'src/shared/acl-util.h')
-rw-r--r--src/shared/acl-util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/acl-util.h b/src/shared/acl-util.h
index c8bcc266d0..cf612e8722 100644
--- a/src/shared/acl-util.h
+++ b/src/shared/acl-util.h
@@ -33,7 +33,7 @@ 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 add_base_acls_if_needed(acl_t *acl_p, const char *path);
int acl_search_groups(const char* path, char ***ret_groups);
-int parse_acl(char *text, acl_t *acl_access, acl_t *acl_default, bool want_mask);
+int parse_acl(const char *text, acl_t *acl_access, acl_t *acl_default, bool want_mask);
int acls_for_file(const char *path, acl_type_t type, acl_t new, acl_t *acl);
/* acl_free takes multiple argument types.