timesyncd: don't abort packet handling if we can't save the timestamp to disk

This should not be a fatal error, and it isn't in the other place we
call this.
This commit is contained in:
Lennart Poettering
2022-03-18 23:53:50 +01:00
parent ec75e8e07a
commit 20c1a21066
+1 -3
View File
@@ -569,9 +569,7 @@ static int manager_receive_response(sd_event_source *source, int fd, uint32_t re
if (r < 0)
log_error_errno(r, "Failed to call clock_adjtime(): %m");
r = manager_save_time_and_rearm(m);
if (r < 0)
return r;
(void) manager_save_time_and_rearm(m);
/* If touch fails, there isn't much we can do. Maybe it'll work next time. */
(void) touch("/run/systemd/timesync/synchronized");