Re: 5.5beta wierds

2014-01-22 Thread Otto Moerbeek
On Tue, Jan 21, 2014 at 11:58:44AM -0700, Todd C. Miller wrote: On Tue, 21 Jan 2014 10:44:00 +0100, Otto Moerbeek wrote: And here's the man page diff, our ctime and asctime actually do not ever return NULL, while posix allows that. Isn't it worth documenting that ctime and asctime are

Re: 5.5beta wierds

2014-01-22 Thread Todd C. Miller
On Wed, 22 Jan 2014 10:26:47 +0100, Otto Moerbeek wrote: yeah, I first had that and then deleted it. OK. - todd

Re: 5.5beta wierds

2014-01-21 Thread Philip Guenther
On Tue, Jan 21, 2014 at 8:33 PM, Otto Moerbeek o...@drijf.net wrote: ... Right. what happens is that localtime(3) returns NULL, because the year is not representable as an int. struct tm.tm_year must be an int according to posix. The diff below catches the case. ok guenther@ But it does

Re: 5.5beta wierds

2014-01-21 Thread Otto Moerbeek
On Tue, Jan 21, 2014 at 09:08:18PM +1300, Philip Guenther wrote: On Tue, Jan 21, 2014 at 8:33 PM, Otto Moerbeek o...@drijf.net wrote: ... Right. what happens is that localtime(3) returns NULL, because the year is not representable as an int. struct tm.tm_year must be an int according to

Re: 5.5beta wierds

2014-01-21 Thread Otto Moerbeek
On Tue, Jan 21, 2014 at 09:34:51AM +0100, Otto Moerbeek wrote: On Tue, Jan 21, 2014 at 09:08:18PM +1300, Philip Guenther wrote: On Tue, Jan 21, 2014 at 8:33 PM, Otto Moerbeek o...@drijf.net wrote: ... Right. what happens is that localtime(3) returns NULL, because the year is not

Re: 5.5beta wierds

2014-01-21 Thread Todd C. Miller
On Tue, 21 Jan 2014 10:44:00 +0100, Otto Moerbeek wrote: And here's the man page diff, our ctime and asctime actually do not ever return NULL, while posix allows that. Isn't it worth documenting that ctime and asctime are allowed to return NULL, even though they do not on OpenBSD? - todd

Re: 5.5beta wierds

2014-01-21 Thread David Walker
Rod Whitworth loki () witworx ! com I feel that date should spit out an error message rather than crash even if it only happens when some idiot plays with the numbers. Every time you do that I get a little bit sadder. Leave something for me.

Re: 5.5beta wierds

2014-01-20 Thread Otto Moerbeek
On Tue, Jan 21, 2014 at 03:52:23PM +1100, Rod Whitworth wrote: I had a short run-up of the first 5.5 i386 snap install and it looked pretty much as expected but a more recent one showed up and I grabbed it and loaded it onto my little Shuttle. The dmesg is below but I'll make some