[uClibc-cvs] uClibc/libc/misc/time time.c,1.9,1.10

Manuel Novoa III mjn3 at uclibc.org
Wed Nov 27 02:19:13 UTC 2002


Update of /var/cvs/uClibc/libc/misc/time
In directory winder:/tmp/cvs-serv14549

Modified Files:
	time.c 
Log Message:
Fix bug in setting daylight and timezone when no (valid) TZ.
Bug reported by Arne Bernin <arne at alamut.de> in regards to freeswan.


Index: time.c
===================================================================
RCS file: /var/cvs/uClibc/libc/misc/time/time.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- time.c	22 Nov 2002 03:05:19 -0000	1.9
+++ time.c	27 Nov 2002 02:19:10 -0000	1.10
@@ -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 at alamut.de> in regards to freeswan.
  */
 
 
@@ -1749,8 +1751,8 @@
  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;




More information about the uClibc-cvs mailing list