chiark / gitweb /
unit: suppress incorrect deserialization errors
authorLennart Poettering <lennart@poettering.net>
Thu, 28 Oct 2010 00:19:21 +0000 (02:19 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 28 Oct 2010 00:19:21 +0000 (02:19 +0200)
src/unit.c

index 0e9325d..fd9bdae 100644 (file)
@@ -2087,14 +2087,19 @@ int unit_deserialize(Unit *u, FILE *f, FDSet *fds) {
                                 u->meta.deserialized_job = type;
 
                         continue;
-                } else if (streq(l, "inactive-exit-timestamp"))
+                } else if (streq(l, "inactive-exit-timestamp")) {
                         dual_timestamp_deserialize(f, v, &u->meta.inactive_exit_timestamp);
-                else if (streq(l, "active-enter-timestamp"))
+                        continue;
+                } else if (streq(l, "active-enter-timestamp")) {
                         dual_timestamp_deserialize(f, v, &u->meta.active_enter_timestamp);
-                else if (streq(l, "active-exit-timestamp"))
+                        continue;
+                } else if (streq(l, "active-exit-timestamp")) {
                         dual_timestamp_deserialize(f, v, &u->meta.active_exit_timestamp);
-                else if (streq(l, "inactive-enter-timestamp"))
+                        continue;
+                } else if (streq(l, "inactive-enter-timestamp")) {
                         dual_timestamp_deserialize(f, v, &u->meta.inactive_enter_timestamp);
+                        continue;
+                }
 
                 if ((r = UNIT_VTABLE(u)->deserialize_item(u, l, v, fds)) < 0)
                         return r;