summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2005-07-12 11:42:39 +0200
committerKay Sievers <kay.sievers@suse.de>2005-07-12 11:42:39 +0200
commitef520ba25f540a3c552e941351f772fbba7be5d9 (patch)
tree027a32f198f24e4479a0a57b5f05d7e6e6d46d89
parente03bce632196dea1f6b18885225b46daaba7fa30 (diff)
remember mapped rules state
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
-rw-r--r--udev_rules.c2
-rw-r--r--udev_rules_parse.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/udev_rules.c b/udev_rules.c
index a25c2e90a8..77b97d7f99 100644
--- a/udev_rules.c
+++ b/udev_rules.c
@@ -606,8 +606,8 @@ found:
pos = getenv(attr);
if (pos == NULL)
break;
- strlcat(string, pos, maxsize);
dbg("substitute env '%s=%s'", attr, pos);
+ strlcat(string, pos, maxsize);
break;
default:
err("unknown substitution type=%i", type);
diff --git a/udev_rules_parse.c b/udev_rules_parse.c
index a2f2f1804b..9483bcd71f 100644
--- a/udev_rules_parse.c
+++ b/udev_rules_parse.c
@@ -548,6 +548,7 @@ static int rules_map(struct udev_rules *rules, const char *filename)
rules->buf = NULL;
return -1;
}
+ rules->mapped = 1;
return 0;
}