summaryrefslogtreecommitdiff
path: root/udev_rules_parse.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2008-04-18 21:07:29 +0200
committerKay Sievers <kay.sievers@vrfy.org>2008-04-18 21:07:29 +0200
commitcf100ca71bf365d8898e97d4ec9dd05c3941cae8 (patch)
tree2e438c969b4de9f7eb8952209fef906a00112e93 /udev_rules_parse.c
parent4278ab015d76876f61821b293df07e0c3746bfd5 (diff)
allow setting of MODE="0000"
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;
}