- strfieldcpy(udev_rules_filename, value);
- no_trailing_slash(udev_rules_filename);
- continue;
- }
-
- if (strcasecmp(variable, "udev_permissions") == 0) {
- strfieldcpy(udev_permissions_filename, value);
- no_trailing_slash(udev_permissions_filename);
- continue;
- }
-
- if (strcasecmp(variable, "default_mode") == 0) {
- default_mode = strtol(value, NULL, 8);
- continue;
- }
-
- if (strcasecmp(variable, "default_owner") == 0) {
- strfieldcpy(default_owner, value);
- continue;
- }
-
- if (strcasecmp(variable, "default_group") == 0) {
- strfieldcpy(default_group, value);
+ strlcpy(udev_rules_filename, value, sizeof(udev_rules_filename));
+ remove_trailing_char(udev_rules_filename, '/');