mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-31 13:03:02 +02:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user