X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Ftmpfiles%2Ftmpfiles.c;h=c948d4d218b7cd42ac2d6125f2da3c010c892d46;hb=cf1d0302aeaf4e44a6a643fb41e5525fdd04b1d5;hp=930b9a662a20ec90175f0e2c956b445b94392457;hpb=7a7d5db71f12ae6f3c055b88a85f6bc9305ea1c4;p=elogind.git diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c index 930b9a662..c948d4d21 100644 --- a/src/tmpfiles/tmpfiles.c +++ b/src/tmpfiles/tmpfiles.c @@ -682,7 +682,6 @@ static int path_set_xattrs(Item *i, const char *path) { static int get_acls_from_arg(Item *item) { #ifdef HAVE_ACL int r; - _cleanup_(acl_freep) acl_t a = NULL, d = NULL; assert(item); @@ -699,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; @@ -737,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