diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-01-23 20:20:13 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-23 20:20:13 -0500 |
commit | f78bada30d128f8a7c1e278c242e390848e16a8b (patch) | |
tree | fca5558f8205d9b1b1fb91d12f11b1aedecea2b7 | |
parent | 88e4dbd505ed4f8480b1f3b837b3c2ac55f1b1dd (diff) | |
parent | cfcd431890e7b8cf6fb773a3d1c8ca86b52bfd99 (diff) |
Merge pull request #5112 from yuwata/fix-5105
core: add missing unit_add_to_load_queue() to mount_setup_new_unit()
-rw-r--r-- | src/core/mount.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/mount.c b/src/core/mount.c index 8192a3616f..f2e22f9562 100644 --- a/src/core/mount.c +++ b/src/core/mount.c @@ -1408,7 +1408,7 @@ static int mount_setup_new_unit( u->source_path = strdup("/proc/self/mountinfo"); MOUNT(u)->where = strdup(where); - if (!u->source_path && !MOUNT(u)->where) + if (!u->source_path || !MOUNT(u)->where) return -ENOMEM; /* Make sure to initialize those fields before mount_is_extrinsic(). */ @@ -1435,6 +1435,7 @@ static int mount_setup_new_unit( return r; } + unit_add_to_load_queue(u); flags->is_mounted = true; flags->just_mounted = true; flags->just_changed = true; |