tmpfiles: fix compilation without acl support

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2015-02-02 20:28:39 -05:00
parent 3208148114
commit 35888b67f7
1 changed files with 2 additions and 0 deletions

View File

@ -698,6 +698,7 @@ static int get_acls_from_arg(Item *item) {
return 0;
}
#ifdef HAVE_ACL
static int path_set_acl(const char *path, acl_type_t type, acl_t acl, bool modify) {
_cleanup_(acl_freep) acl_t dup = NULL;
int r;
@ -736,6 +737,7 @@ static int path_set_acl(const char *path, acl_type_t type, acl_t acl, bool modif
strna(t), path);
return 0;
}
#endif
static int path_set_acls(Item *item, const char *path) {
#ifdef HAVE_ACL