fixed 478663 2.15~rc2-1 thanks On Wed, Apr 30, 2008 at 09:19:52AM +0200, Uwe Kleine-König wrote: > Package: util-linux > Version: 2.12r-19etch1 > Severity: normal > File: /sbin/hwclock > > Hello, > > I have a system here with an rtc that knows when it's not set up > correctly and so > > ioctl(fd, RTC_RD_TIME, &rtc_time); > > returns -1, errno=EINVAL. The same holds for > > ioctl(fd, RTC_UIE_ON, 0); > > It's a pity that hwclock first tries to read the clock when running > > hwclock --systohc --noadjfile --utc > > and exits as this fails. I cannot see a reason to read first in that > case. Probably the call to synchronize_to_clock_tick() in > manipulate_clock should be skipped if ((set || systohc) && !noadjfile) > and > > read_hardware_clock(...) > > should be substituted by: > > if (show || adjust || hctosys || !noadjfile) > read_hardware_clock(...) > else > hclock_valid = FALSE > > Note that I didn't test if this change even compiles. >
According to upstream changelog, this bug should be fixed in 2.15~rc2-1. -- Aurelien Jarno GPG: 1024D/F1BCDB73 [email protected] http://www.aurel32.net -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

