Subject: Re: sendmail queue id and gmtime(3) - leap second
To: None <nishio@hh.iij4u.or.jp>
From: Andrew Brown <atatat@atatdot.net>
List: current-users
Date: 03/25/2004 15:41:13
On Wed, Mar 17, 2004 at 12:38:24AM +0900, nishio@hh.iij4u.or.jp wrote:
>Hi.
>
>  Dose gmtime(3) supports the leap second? Man page say that tm_sec
>range is [0,61]. In /usr/src/lib/libc/time/localtime.c, codes and comments
>mention to leap second.
>
>  In /usr/src/gnu/dist/sendmail/sendmail/queue.c (NetBSD current),
>there is a character array for queue id chars.
>
> around line # 5168
>   .... QueueIdChars[] = "0...9A..Za..x"; --- 60 chars.
>
> around line # 5225
>   .... idbuf[5] = QueueIdChars[tm->tm_sec]; --- 0<= tm_sec < 60
>
>If gmtime() supports leap second, it breaks the queue id name.
>It seems that sendmail 8.12.11 has support leap second.
>
>   http://www.sendmail.org/8.12.11.html
>        Take care of systems that can generate time values where the
>	seconds can exceed the usual range of 0 to 59.
>	Problem noted by Randy Diffenderfer of EDS.
>
>Thanks in advance.

pursuant to this, and in accord with being up-to-date (among other
things), 8.12.11 has been imported into -current, and will also appear
in the 2.0 release.

for those users of sendmail from -current out there, other than the
knowing that sendmail has been upgraded, there's nothing else you
really need to do.  unless you feel like rebuilding your sendmail.cf
and submit.cf files, but that's not all that pressing.

-- 
|-----< "CODE WARRIOR" >-----|
codewarrior@daemon.org             * "ah!  i see you have the internet
twofsonet@graffiti.com (Andrew Brown)                that goes *ping*!"
werdna@squooshy.com       * "information is power -- share the wealth."