posixtm: don't reject a time with "60" as the number of seconds
authorJim Meyering <meyering@redhat.com>
Sat, 12 Sep 2009 22:35:49 +0000 (00:35 +0200)
committerJim Meyering <meyering@redhat.com>
Mon, 14 Sep 2009 11:20:59 +0000 (13:20 +0200)
commit6c9f1e88ada406b65f6b10098b8c9e60c973e614
treec7321afc4cfe1a351ccb1cb795755fea0a021989
parent5e04fd8dbc859fa3dcb2de9cd3279df80bd3418b
posixtm: don't reject a time with "60" as the number of seconds

* lib/posixtm.c (posixtime): The code to reject invalid dates would
also reject a time specified with the .60 suffix, whereas POSIX allows
that, in order to accommodate leap seconds.  Don't reject that.
(main): Adjust tests accordingly.
* modules/posixtm (Depends-on): Add stpcpy.
ChangeLog
lib/posixtm.c
modules/posixtm