1
0
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:
Kay Sievers 2005-07-12 11:42:39 +02:00
parent e03bce6321
commit ef520ba25f
2 changed files with 2 additions and 1 deletions

View 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);

View 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;
}