diff options
author | Paul Fox | 2009-08-13 17:35:53 +0200 |
---|---|---|
committer | Karel Zak | 2009-09-07 12:29:37 +0200 |
commit | 1da17ec6c1a22ae15fd4bf219d693e612b4bfe58 (patch) | |
tree | 535bc69ffa198c072e7161fea985b76358950ec9 /sys-utils/rtcwake.c | |
parent | partx: work properly with 512 sectors (dos PT) (diff) | |
download | kernel-qcow2-util-linux-1da17ec6c1a22ae15fd4bf219d693e612b4bfe58.tar.gz kernel-qcow2-util-linux-1da17ec6c1a22ae15fd4bf219d693e612b4bfe58.tar.xz kernel-qcow2-util-linux-1da17ec6c1a22ae15fd4bf219d693e612b4bfe58.zip |
rtcwake: ignore the tm_isdst field returned from the RTC
Signed-off-by: Paul Fox <pgf@laptop.org>
Diffstat (limited to 'sys-utils/rtcwake.c')
-rw-r--r-- | sys-utils/rtcwake.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/rtcwake.c b/sys-utils/rtcwake.c index 1efc72098..7b2df26ab 100644 --- a/sys-utils/rtcwake.c +++ b/sys-utils/rtcwake.c @@ -158,7 +158,7 @@ static int get_basetimes(int fd) tm.tm_mday = rtc.tm_mday; tm.tm_mon = rtc.tm_mon; tm.tm_year = rtc.tm_year; - tm.tm_isdst = rtc.tm_isdst; /* stays unspecified? */ + tm.tm_isdst = -1; /* assume the system knows better than the RTC */ rtc_time = mktime(&tm); if (rtc_time == (time_t)-1) { |