Lines Matching refs:item
222 Item *item = j->items + n;
224 if (fnmatch(item->path, match, FNM_PATHNAME|FNM_PERIOD) == 0)
225 return item;
428 /* Is there an item configured for this path? */
732 static int parse_acls_from_arg(Item *item) {
736 assert(item);
741 r = parse_acl(item->argument, &item->acl_access, &item->acl_default, !item->force);
743 log_warning_errno(r, "Failed to parse ACL \"%s\": %m. Ignoring", item->argument);
797 static int path_set_acls(Item *item, const char *path) {
804 assert(item);
821 if (item->acl_access)
822 r = path_set_acl(fn, path, ACL_TYPE_ACCESS, item->acl_access, item->force);
824 if (r == 0 && item->acl_default)
825 r = path_set_acl(fn, path, ACL_TYPE_DEFAULT, item->acl_default, item->force);
854 static int parse_attribute_from_arg(Item *item) {
885 assert(item);
887 p = item->argument;
902 log_error("Setting file attribute on '%s' needs an attribute specification.", item->path);
914 log_error("Unknown file attribute '%c' on '%s'.", *p, item->path);
933 item->attribute_mask = mask;
934 item->attribute_value = value;
935 item->attribute_set = true;
940 static int path_set_attribute(Item *item, const char *path) {
946 if (!item->attribute_set || item->attribute_mask == 0)
968 f = item->attribute_value & item->attribute_mask;
974 r = chattr_fd(fd, f, item->attribute_mask);
979 path, item->attribute_value, item->attribute_mask);
1744 /* Make sure that the ownership taking item is put first, so
2092 /* Sort item array, to enforce stable ordering of application */