]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
timesyncd: don't abort packet handling if we can't save the timestamp to disk
authorLennart Poettering <lennart@poettering.net>
Fri, 18 Mar 2022 15:30:26 +0000 (16:30 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 18 Mar 2022 22:53:50 +0000 (23:53 +0100)
This should not be a fatal error, and it isn't in the other place we
call this.

src/timesync/timesyncd-manager.c

index 193d13742b66025d49e762acae9bcc30ca5447a1..b491db23bc4bffc5cb01def2049730130e6a68aa 100644 (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");