diff options
Diffstat (limited to 'hwclock')
-rw-r--r-- | hwclock/rtc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hwclock/rtc.c b/hwclock/rtc.c index 724daf99..46a5b525 100644 --- a/hwclock/rtc.c +++ b/hwclock/rtc.c @@ -113,7 +113,7 @@ open_rtc(void) { for (p=fls; *p; ++p) { int fd = open(*p, O_RDONLY); - if (fd < 0 && errno == ENOENT) + if (fd < 0 && (errno == ENOENT || errno == ENODEV)) continue; rtc_dev_name = *p; return fd; |