chiark / gitweb /
remember mapped rules state
authorKay Sievers <kay.sievers@suse.de>
Tue, 12 Jul 2005 09:42:39 +0000 (11:42 +0200)
committerKay Sievers <kay.sievers@suse.de>
Tue, 12 Jul 2005 09:42:39 +0000 (11:42 +0200)
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
udev_rules.c
udev_rules_parse.c

index a25c2e9..77b97d7 100644 (file)
@@ -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);
index a2f2f18..9483bcd 100644 (file)
@@ -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;
 }