- 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);
+ strlcpy(udev_rules_filename, value, sizeof(udev_rules_filename));
+ no_trailing_slash(udev_rules_filename);