mirror of
https://github.com/troglobit/finit.git
synced 2026-10-02 05:52:48 +07:00
plugins: rtc: follow-up to bc8118d
In save() RTC, ensure the RTC_FILE option is actually enabled. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
@@ -139,6 +139,9 @@ static void file_save(void *arg)
|
||||
int rc = 0;
|
||||
FILE *fp;
|
||||
|
||||
if (!rtc_file)
|
||||
return;
|
||||
|
||||
fp = fopen(rtc_file, "w");
|
||||
if (!fp) {
|
||||
logit(LOG_WARNING, "Failed saving system clock to %s, code %d: %s",
|
||||
|
||||
Reference in New Issue
Block a user