summaryrefslogtreecommitdiff
path: root/src/timesync
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2022-03-18 16:30:26 +0100
committerLennart Poettering <lennart@poettering.net>2022-03-18 23:53:50 +0100
commit20c1a21066a35b4776eca5a6e25c3f8aa50a0b84 (patch)
treefdca5bbe86fe2a5e5a6a0b95a24c1437348445a6 /src/timesync
parentec75e8e07a0ad972e0c40e0a187e15a8d4fb3d66 (diff)
downloadsystemd-20c1a21066a35b4776eca5a6e25c3f8aa50a0b84.tar.gz
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.
Diffstat (limited to 'src/timesync')
-rw-r--r--src/timesync/timesyncd-manager.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/timesync/timesyncd-manager.c b/src/timesync/timesyncd-manager.c
index 193d13742b..b491db23bc 100644
--- a/src/timesync/timesyncd-manager.c
+++ b/src/timesync/timesyncd-manager.c
@@ -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");