- retval = parse_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);
- set_bool("udev_log", udev_log);
+ if (strcasecmp(variable, "udev_rules") == 0) {
+ strfieldcpy(udev_rules_filename, value);
+ no_leading_slash(udev_rules_filename);
+ continue;
+ }
+
+ if (strcasecmp(variable, "udev_permissions") == 0) {
+ strfieldcpy(udev_permissions_filename, value);
+ no_leading_slash(udev_permissions_filename);
+ continue;
+ }
+
+ if (strcasecmp(variable, "default_mode") == 0) {
+ strfieldcpy(default_mode_str, value);
+ continue;
+ }
+
+ if (strcasecmp(variable, "default_owner") == 0) {
+ strfieldcpy(default_owner_str, value);
+ continue;
+ }
+
+ if (strcasecmp(variable, "default_group") == 0) {
+ strfieldcpy(default_group_str, value);
+ continue;
+ }
+
+ if (strcasecmp(variable, "udev_log") == 0) {
+ udev_log = string_is_true(value);
+ continue;
+ }
+
+ info("%s:%d:%Zd: unknown key '%s'",
+ udev_config_filename, lineno, temp-line, temp);