- retval = get_pair(&temp, &variable, &value);
- if (retval)
- break;
-
- dbg_parse("variable = '%s', value = '%s'", variable, value);
-
- set_var("udev_root", udev_root);
- set_var("udev_db", udev_db_filename);
- set_var("udev_rules", udev_rules_filename);
- set_var("udev_permissions", udev_permissions_filename);
- set_var("default_mode", default_mode_str);
- set_var("default_owner", default_owner_str);
- set_var("default_group", default_group_str);
+ strlcpy(line, bufline, count+1);
+
+ linepos = line;
+ retval = get_key(&linepos, &variable, &value);
+ if (retval != 0) {
+ err("error parsing %s, line %d:%d", udev_config_filename, lineno, (int) (linepos-line));
+ continue;
+ }
+
+ if (strcasecmp(variable, "udev_root") == 0) {
+ strlcpy(udev_root, value, sizeof(udev_root));
+ remove_trailing_char(udev_root, '/');
+ continue;
+ }
+
+ if (strcasecmp(variable, "udev_db") == 0) {
+ strlcpy(udev_db_path, value, sizeof(udev_db_path));
+ remove_trailing_char(udev_db_path, '/');
+ continue;
+ }
+
+ if (strcasecmp(variable, "udev_rules") == 0) {
+ strlcpy(udev_rules_filename, value, sizeof(udev_rules_filename));
+ remove_trailing_char(udev_rules_filename, '/');
+ continue;
+ }
+
+ if (strcasecmp(variable, "udev_log") == 0) {
+ udev_log_priority = log_priority(value);
+ continue;
+ }