mirror of
https://github.com/systemd/systemd.git
synced 2025-01-11 09:18:07 +03:00
Merge pull request #5112 from yuwata/fix-5105
core: add missing unit_add_to_load_queue() to mount_setup_new_unit()
This commit is contained in:
commit
f78bada30d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user