diff options
author | Manuel Novoa III <mjn3@codepoet.org> | 2002-11-27 02:19:10 +0000 |
---|---|---|
committer | Manuel Novoa III <mjn3@codepoet.org> | 2002-11-27 02:19:10 +0000 |
commit | f5c1db36d76f58d1877b5234de4941d087b454a9 (patch) | |
tree | 1f084f57138e0e557b31dbef23a89e5171ca0cc5 | |
parent | b1c5815388512b5c420401c73ad27484721a163b (diff) |
Fix bug in setting daylight and timezone when no (valid) TZ.
Bug reported by Arne Bernin <arne@alamut.de> in regards to freeswan.
-rw-r--r-- | libc/misc/time/time.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libc/misc/time/time.c b/libc/misc/time/time.c index 838a3a025..ce33bc841 100644 --- a/libc/misc/time/time.c +++ b/libc/misc/time/time.c @@ -92,7 +92,9 @@ * same. * * Nov 21, 2002 Fix an error return case in _time_mktime. - * + * + * Nov 26, 2002 Fix bug in setting daylight and timezone when no (valid) TZ. + * Bug reported by Arne Bernin <arne@alamut.de> in regards to freeswan. */ @@ -1749,8 +1751,8 @@ void tzset(void) DONE: tzname[0] = _time_tzinfo[0].tzname; tzname[1] = _time_tzinfo[1].tzname; - daylight = !!new_rules[1].tzname[0]; - timezone = new_rules[0].gmt_offset; + daylight = !!_time_tzinfo[1].tzname[0]; + timezone = _time_tzinfo[0].gmt_offset; FAST_DONE: TZUNLOCK; |