Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Aug 2006 01:03:37 +0300 (EEST)
From:      "Jukka A. Ukkonen" <jau@jau.iki.fi>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   bin/102121: strftime(3) fails on certain dates
Message-ID:  <200608152203.k7FM3bGk067871@jau.iki.fi>
Resent-Message-ID: <200608152210.k7FMAEXd076058@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         102121
>Category:       bin
>Synopsis:       strftime(3) fails on certain dates
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 15 22:10:13 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Jukka A. Ukkonen
>Release:        FreeBSD 6.1-STABLE i386
>Organization:
Private person
>Environment:
System: FreeBSD mjolnir 6.1-STABLE FreeBSD 6.1-STABLE #0: Mon Aug 14 11:21:54 EET DST 2006 root@mjolnir:/usr/obj/usr/src/sys/Mjolnir i386


>Description:
	Several programs using system default ctime(3)/strftime(3)
	functions produce erroneous text conversion of binary dates.

	This is very harmful, because the formatted dates might be
	used in log files etc. totally breaking any reliable timeline
	in the logs.


>How-To-Repeat:
	Try for e.g.

	/bin/date -r 1597464920

	If libc contains the failing strftime() version, you will see...

	Sat Aug 15 07:00:00 EET DST 2020



	The correct date should be ...

	Tue Aug 15 23:48:40 EET DST 2006

	or

	Tue Aug 15 22:48:40 EET 2006

	when DST is not used.


>Fix:
	None known yet.

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608152203.k7FM3bGk067871>