[BZ #601]
authorUlrich Drepper <drepper@redhat.com>
Mon, 6 Dec 2004 22:51:31 +0000 (22:51 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 6 Dec 2004 22:51:31 +0000 (22:51 +0000)
Update.
2004-12-06  Jakub Jelinek  <jakub@redhat.com>

* time/tzset.c (tzset_internal): If + or - is seen,
but no offset after it, reset offset to 0.  [BZ #601]

* libio/ioseekpos.c (_IO_seekpos_unlocked): Call _IO_SEEKOFF not

ChangeLog
time/tzset.c

index 2c915f9..11ce063 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,11 @@
+2004-12-06  Jakub Jelinek  <jakub@redhat.com>
+
+       * time/tzset.c (tzset_internal): If + or - is seen,
+       but no offset after it, reset offset to 0.  [BZ #601]
+
 2004-12-06  Ulrich Drepper  <drepper@redhat.com>
 
-       * libio/ioseekpos.c (_IO_seekpos_unlocked): Call _IO_SEEKOF not
+       * libio/ioseekpos.c (_IO_seekpos_unlocked): Call _IO_SEEKOFF not
        _IO_SEEKPOS, saving one indirect jump.
 
        * libio/fileops.c (_IO_new_file_seekoff): Fix optimization of in-buffer
index 48a4e4b..0479abb 100644 (file)
@@ -240,6 +240,7 @@ tzset_internal (always, explicit)
   switch (sscanf (tz, "%hu:%hu:%hu", &hh, &mm, &ss))
     {
     default:
+      tz_rules[0].offset = 0;
       goto out;
     case 1:
       mm = 0;