projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e198ba
)
refuse to add jobs for names that are not loaded
author
Lennart Poettering
<lennart@poettering.net>
Wed, 20 Jan 2010 18:20:41 +0000
(19:20 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Wed, 20 Jan 2010 18:20:41 +0000
(19:20 +0100)
manager.c
patch
|
blob
|
history
diff --git
a/manager.c
b/manager.c
index
41124ff
..
8e1c64a
100644
(file)
--- 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;