mirror of
https://github.com/systemd/systemd.git
synced 2026-08-03 14:40:31 +00: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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user