summaryrefslogtreecommitdiff
path: root/hwclock
diff options
context:
space:
mode:
authorLaMont Jones <lamont@debian.org>2007-12-05 21:31:04 -0700
committerLaMont Jones <lamont@debian.org>2007-12-05 21:31:04 -0700
commit38ca3ef3f7cd7acdf7c31b212c062779374de411 (patch)
tree5fe74deb36374d29dd9b4fffb4c9134dd1387384 /hwclock
parent63a33c7ff679705262baa26c7730cd5f2640c3b5 (diff)
parent23dfde7f5b0269398e2e957d3a2f8f9eacce2e0e (diff)
downloadutil-linux-old-38ca3ef3f7cd7acdf7c31b212c062779374de411.tar.gz
Merge commit 'origin/master'
Diffstat (limited to 'hwclock')
-rw-r--r--hwclock/rtc.c2
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;