X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Ftimedate%2Ftimedated.c;h=e3421c24a9ac16a53782f6220771b7e9fdc1a386;hp=af2b0785cf6bafa026c3d55530ad74591fee57ca;hb=fe2b58a4ff8dc1cdf7081bd071bad8450db51423;hpb=d514feaa872820d5cb4e9321ad32673c09fbb3f4 diff --git a/src/timedate/timedated.c b/src/timedate/timedated.c index af2b0785c..e3421c24a 100644 --- a/src/timedate/timedated.c +++ b/src/timedate/timedated.c @@ -470,6 +470,9 @@ static int property_get_rtc_time( if (r == -EBUSY) { log_warning("/dev/rtc is busy, is somebody keeping it open continously? That's not a good idea... Returning a bogus RTC timestamp."); t = 0; + } else if (r == -ENOENT) { + log_debug("Not /dev/rtc found."); + t = 0; /* no RTC found */ } else if (r < 0) return sd_bus_error_set_errnof(error, r, "Failed to read RTC: %s", strerror(-r)); else