confd: log error when failing to record changes to NTP client

[skip ci]

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2024-02-29 09:14:53 +01:00
parent 1df1df7096
commit 9c203f614b
+4 -2
View File
@@ -479,8 +479,10 @@ static int change_ntp(sr_session_ctx_t *session, uint32_t sub_id, const char *mo
}
sr_free_values(val, cnt);
if (changes)
touch("/run/chrony/.changes");
if (changes) {
if (touch("/run/chrony/.changes"))
ERRNO("Failed recording changes to NTP client");
}
return err;
}