summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}