struct blob_attr *cur;
int rem;
- if (!cl->gid && !cl->gid)
+ if (!cl->gid && !cl->uid)
return 0;
acl = avl_find_ge_element(&ubusd_acls, obj, acl, avl);
- while (acl && !avl_is_last(&ubusd_acls, &acl->avl)) {
+ while (acl) {
int diff = ubusd_acl_match_path(obj, acl->avl.key, NULL);
if (diff)
struct ubusd_acl_obj *o;
char *k;
- o = calloc_a(1, sizeof(*o), &k, strlen(obj) + 1);
+ o = calloc_a(sizeof(*o), &k, strlen(obj) + 1);
o->user = file->user;
o->group = file->group;
o->avl.key = k;