Your message dated Thu, 20 Aug 2009 20:08:24 +0200
with message-id <[email protected]>
and subject line Re: Bug#174141: hwclock: unneccecary 'errors' on devfs only
configurations
has caused the Debian Bug report #174141,
regarding util-linux: [hwclock] Please try /dev/misc/rtc before /dev/rtc
(rather than after) to work better with devfs
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
174141: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=174141
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: util-linux
Version: 2.11n-4
Severity: minor
Tags: patch
Hi,
On a devfs machine with compatibility symlinks disabled, running hwclock
(on startup or at any other time) results in modprobe errors 'no such
module /dev/rtc'.. several of them. hwclock still works, because if
/dev/rtc cannot be opened, it falls back to /dev/misc/rtc, the devfs location.
I've attached a patch which changes the search order so that
/dev/misc/rtc is checked first.. on a non-devfs machine this will not
exist but since there is no devfsd, no error occurs, and it will happily
fall back to /dev/rtc (I tested it).
I hope you agree with this, and thanks for maintaining the package in
the first place.
Thanks,
Torne Wuff
------- Begin patch cutoff -----------
--- rtc.c.old Mon Dec 23 22:52:48 2002
+++ rtc.c Mon Dec 23 22:57:14 2002
@@ -96,10 +96,10 @@
open_rtc(void) {
int rtc_fd;
- sprintf(rtc_dev_name, "/dev/%s", RTC_DEVN);
+ sprintf(rtc_dev_name, "/dev/misc/%s", RTC_DEVN);
rtc_fd = open(rtc_dev_name, O_RDONLY);
if (rtc_fd < 0) {
- sprintf(rtc_dev_name, "/dev/misc/%s", RTC_DEVN);
+ sprintf(rtc_dev_name, "/dev/%s", RTC_DEVN);
rtc_fd = open(rtc_dev_name, O_RDONLY);
}
return rtc_fd;
----------- end of patch --------------
-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux electricpup 2.4.20 #1 Mon Dec 23 21:47:38 GMT 2002 i586
Locale: LANG=C, LC_CTYPE=C
Versions of packages util-linux depends on:
ii libc6 2.2.5-11.2 GNU C Library: Shared libraries an
ii libncurses5 5.2.20020112a-7 Shared libraries for terminal hand
ii slang1 1.4.4-7.2 The S-Lang programming library - r
--- End Message ---
--- Begin Message ---
Closing, devfs does not exist anymore.
--
ciao,
Marco
signature.asc
Description: Digital signature
--- End Message ---