diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-10-28 02:19:21 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-10-28 02:19:21 +0200 |
commit | 8aaf019b5ce1a024090350d881739d28fd3b47d4 (patch) | |
tree | 3405c403d1dd164f6944d7dc53bc673044c303bf /src/unit.c | |
parent | 008d348eddce97ef807fb908484efb0ade3172c5 (diff) |
unit: suppress incorrect deserialization errors
Diffstat (limited to 'src/unit.c')
-rw-r--r-- | src/unit.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/unit.c b/src/unit.c index 0e9325dfa4..fd9bdae1ad 100644 --- a/src/unit.c +++ b/src/unit.c @@ -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; |