Commit e0fa621b authored by Lennart Poettering's avatar Lennart Poettering
Browse files

automount: fix segfault when shutting down
parent 76e7bc8d
......@@ -9,9 +9,6 @@ Bugs:
* somehow some /etc/fstab supplied mount params are never applied to api fs
* automount units can cause a segfault:
* bind mounts with 'fsck' fail and block for a minute:
/foo /bar none bind 1 1
(requesting fsck is wrong, but why do we block for a minute
......@@ -98,12 +98,21 @@ static void mount_parameters_done(MountParameters *p) {
static void mount_done(Unit *u) {
Mount *m = MOUNT(u);
Meta *other;
m->where = NULL;
/* Try to detach us from the automount unit if there is any */
LIST_FOREACH(units_per_type, other, m->meta.manager->units_per_type[UNIT_AUTOMOUNT]) {
Automount *a = (Automount*) other;
if (a->mount == m)
a->mount = NULL;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment