chiark / gitweb /
automount: fix segfault when shutting down
[elogind.git] / src / automount.c
index b45cbcf53380171efeacbaa571ae5dc2a560ec52..0ae467cbd4f79a8fc005d78e05f0cbfd686c7e3c 100644 (file)
@@ -244,7 +244,7 @@ static void automount_set_state(Automount *a, AutomountState state) {
                           automount_state_to_string(old_state),
                           automount_state_to_string(state));
 
-        unit_notify(UNIT(a), state_translation_table[old_state], state_translation_table[state]);
+        unit_notify(UNIT(a), state_translation_table[old_state], state_translation_table[state], true);
 }
 
 static int automount_coldplug(Unit *u) {