From: Kay Sievers Date: Tue, 12 Jul 2005 09:42:39 +0000 (+0200) Subject: remember mapped rules state X-Git-Tag: 064~15^2~8 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef520ba25f540a3c552e941351f772fbba7be5d9;p=systemd remember mapped rules state Signed-off-by: Kay Sievers --- diff --git a/udev_rules.c b/udev_rules.c index a25c2e90..77b97d7f 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 a2f2f180..9483bcd7 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; }