| Summary: | [hwclock] reads "timezone" without calling tzset() | ||
|---|---|---|---|
| Product: | Busybox | Reporter: | David Barksdale <david.barksdale> |
| Component: | Other | Assignee: | unassigned |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | busybox-cvs |
| Priority: | P5 | ||
| Version: | 1.19.x | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Host: | Target: | ||
| Build: | |||
| Attachments: | proposed fix | ||
Fixed in git: commit 589051b56553788546c757a0b38996a1a8c49a11 Author: Denys Vlasenko <vda.linux@googlemail.com> Date: Tue Feb 25 17:52:10 2014 +0100 hwclock: fix setting of tz_minuteswest |
Created attachment 4460 [details] proposed fix When using hwclock to set the system time, it always sets the kernel's tz_minuteswest to 0. It calculates tz_minuteswest from the libc globals "timezone" and "daylight" which are 0 before being set by a call to tzset().