]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
timesyncd: add debug logging in case we can't touch /run/systemd/timesync/synchronized
authorLennart Poettering <lennart@poettering.net>
Fri, 18 Mar 2022 15:53:46 +0000 (16:53 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 18 Mar 2022 22:54:01 +0000 (23:54 +0100)
src/timesync/timesyncd-manager.c

index 4895904e74f1fac3a1217e4f80f79746e8ca4a94..ddb4927960facb331baead7e3efc6b928460ce5f 100644 (file)
@@ -580,7 +580,9 @@ static int manager_receive_response(sd_event_source *source, int fd, uint32_t re
                 (void) manager_save_time_and_rearm(m, dts.realtime);
 
                 /* If touch fails, there isn't much we can do. Maybe it'll work next time. */
-                (void) touch("/run/systemd/timesync/synchronized");
+                r = touch("/run/systemd/timesync/synchronized");
+                if (r < 0)
+                        log_debug_errno(r, "Failed to touch /run/systemd/timesync/synchronized, ignoring: %m");
         }
 
         /* Save NTP response */