summaryrefslogtreecommitdiff
path: root/udev_rules_parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'udev_rules_parse.c')
-rw-r--r--udev_rules_parse.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/udev_rules_parse.c b/udev_rules_parse.c
index ce659d73ce..6d88354dbd 100644
--- a/udev_rules_parse.c
+++ b/udev_rules_parse.c
@@ -579,8 +579,7 @@ static int add_to_rules(struct udev_rules *rules, char *line, const char *filena
}
if (strcasecmp(key, "MODE") == 0) {
- rule->mode = strtol(value, NULL, 8);
- rule->mode_operation = operation;
+ add_rule_key(rule, &rule->mode, operation, value);
valid = 1;
continue;
}