From: Lennart Poettering Date: Wed, 20 Jan 2010 18:20:41 +0000 (+0100) Subject: refuse to add jobs for names that are not loaded X-Git-Tag: 0.git+20100605+dfd8ee-1~435 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21b293e8132552719ab2f93c70078b857c90149a;p=systemd refuse to add jobs for names that are not loaded --- diff --git a/manager.c b/manager.c index 41124fff..8e1c64a9 100644 --- a/manager.c +++ b/manager.c @@ -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;