diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-01-20 19:20:41 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-01-20 19:20:41 +0100 |
commit | 21b293e8132552719ab2f93c70078b857c90149a (patch) | |
tree | 87341a17422e6085ef6d14215eb3e2eb72d9ac81 /manager.c | |
parent | 1e198baf11cd0c34ef0c6f326c8a75b046552a33 (diff) | |
download | systemd-21b293e8132552719ab2f93c70078b857c90149a.tar.gz |
refuse to add jobs for names that are not loaded
Diffstat (limited to 'manager.c')
-rw-r--r-- | manager.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -511,6 +511,9 @@ static int transaction_add_job_and_dependencies(Manager *m, JobType type, Name * assert(type < _JOB_TYPE_MAX); assert(name); + if (name->meta.state != NAME_LOADED) + return -EINVAL; + /* First add the job. */ if (!(ret = transaction_add_one_job(m, type, name, &is_new))) return -ENOMEM; |