Bill Wohler writes: > Package: util-linux > Version: 2.5-5 > > "clock -w" is screwing up the CMOS clock. See: > ... > Is there anything here I'm missing (e.g., related > programs/packages/settings)? The segmentation violation and hanging > of clock -r is worth a bug report to be sure, but could the -w > failure be a mis-configuration of the timezone or Universal time on > my part? I had answered "no" to the Universal time question at > install (due to [EMAIL PROTECTED] DOS). I just ran tzconfig to change > /etc/timezone from Factory to US/Pacific thinking that was my > problem.
This has already been reported in Bug#4265. Here is a quick patch to clock.c in util-linux that fixed it for me: David -- David Engel Optical Data Systems, Inc. [EMAIL PROTECTED] 1101 E. Arapaho Road (214) 234-6400 Richardson, TX 75081 --- clock.c.orig Mon Aug 26 10:26:53 1996 +++ clock.c Mon Aug 26 10:31:38 1996 @@ -365,7 +365,7 @@ } /* Read the RTC time/date */ - retval = ioctl(cmos_fd, RTC_RD_TIME, &tm); + retval = ioctl(cmos_fd, RTC_RD_TIME, tm); if (retval == -1) { perror("ioctl"); exit(errno); @@ -463,7 +463,7 @@ int retval; - retval = ioctl(cmos_fd, RTC_SET_TIME, tmp); + retval = ioctl(cmos_fd, RTC_SET_TIME, tm); if (retval == -1) { perror("ioctl"); exit(errno);