mirror of
https://github.com/systemd/systemd.git
synced 2025-03-19 22:50:17 +03:00
remember mapped rules state
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
This commit is contained in:
parent
e03bce6321
commit
ef520ba25f
@ -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);
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user