+ strlcpy(dev.symlink, temp3, sizeof(dev.symlink));
+ valid = 1;
+ continue;
+ }
+
+ if (strcasecmp(temp2, FIELD_OWNER) == 0) {
+ strlcpy(dev.owner, temp3, sizeof(dev.owner));
+ valid = 1;
+ continue;
+ }
+
+ if (strcasecmp(temp2, FIELD_GROUP) == 0) {
+ strlcpy(dev.group, temp3, sizeof(dev.group));
+ valid = 1;
+ continue;
+ }
+
+ if (strcasecmp(temp2, FIELD_MODE) == 0) {
+ dev.mode = strtol(temp3, NULL, 8);
+ valid = 1;
+ continue;
+ }
+
+ if (strcasecmp(temp2, FIELD_OPTIONS) == 0) {
+ if (strstr(temp3, OPTION_IGNORE_DEVICE) != NULL) {
+ dbg_parse("device should be ignored");
+ dev.ignore_device = 1;
+ }
+ if (strstr(temp3, OPTION_IGNORE_REMOVE) != NULL) {
+ dbg_parse("remove event should be ignored");
+ dev.ignore_remove = 1;
+ }
+ if (strstr(temp3, OPTION_PARTITIONS) != NULL) {
+ dbg_parse("creation of partition nodes requested");
+ dev.partitions = DEFAULT_PARTITIONS_COUNT;
+ }
+ valid = 1;