Skip to content

Commit 1aa7ca2

Browse files
committed
timesyncd: add debug logging in case we can't touch /run/systemd/timesync/synchronized
1 parent 1f129b7 commit 1aa7ca2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/timesync/timesyncd-manager.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,9 @@ static int manager_receive_response(sd_event_source *source, int fd, uint32_t re
580580
(void) manager_save_time_and_rearm(m, dts.realtime);
581581

582582
/* If touch fails, there isn't much we can do. Maybe it'll work next time. */
583-
(void) touch("/run/systemd/timesync/synchronized");
583+
r = touch("/run/systemd/timesync/synchronized");
584+
if (r < 0)
585+
log_debug_errno(r, "Failed to touch /run/systemd/timesync/synchronized, ignoring: %m");
584586
}
585587

586588
/* Save NTP response */

0 commit comments

Comments
 (0)