log_warning("%s:%u: Bad syntax", path, line);
continue;
}
- *p = '\0';
- p = strstrip(p + 1);
- if (streq(buf, "default"))
+ if (streq(field, "default"))
r = free_and_strdup(&config->default_pattern, p);
- else if (streq(buf, "timeout"))
+ else if (streq(field, "timeout"))
r = free_and_strdup(&config->timeout, p);
- else if (streq(buf, "editor"))
+ else if (streq(field, "editor"))
r = free_and_strdup(&config->editor, p);
+ else if (streq(buf, "auto-entries"))
+ r = free_and_strdup(&config->auto_entries, p);
+ else if (streq(buf, "auto-firmware"))
+ r = free_and_strdup(&config->auto_firmware, p);
else {
- log_notice("%s:%u: Unknown line \"%s\"", path, line, buf);
+ log_notice("%s:%u: Unknown line \"%s\"", path, line, field);
continue;
}
if (r < 0)