From: Paul Eggert Date: Tue, 1 Nov 2005 23:43:38 +0000 (+0000) Subject: "touch 0101000000" now operates as POSIX 1002.1-2001 requires. X-Git-Tag: v6.0~1428 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4b15886f93692886f54695f543df692c40d17772;p=thirdparty%2Fcoreutils.git "touch 0101000000" now operates as POSIX 1002.1-2001 requires. --- diff --git a/ChangeLog b/ChangeLog index 2ff3ab132e..52918a0e98 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,13 +1,18 @@ 2005-11-01 Paul Eggert + * NEWS: + * Version 6.0-cvs. - * NEWS: tail -c 2 FILE now operates as POSIX 1002.1-2001 requires. + * NEWS: "tail -c 2 FILE" and "touch 0101000000" now operate as + POSIX 1002.1-2001 requires. * src/tail.c (parse_obsolete_option): Implement this. Problem reported by Vincent Lefevre. + * src/touch.c (main): Pass PDS_PRE_2000 to posixtime. * tests/tail/Test.pm (c-2, c-2-minus, c2, c2-minus): New tests. (test_vector): Add special cases for _POSIX2_VERSION, and regularize the old ones a bit. + * tests/touch/obsolescent: Add y2000 test. 2005-10-31 Paul Eggert diff --git a/doc/ChangeLog b/doc/ChangeLog index 7eec6ebb3f..a0a20b55ec 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -2,6 +2,7 @@ * coreutils.texi (tail invocation): Describe obsolete usages like "tail -2" more precisely. + (touch invocation): The old usage works only for 1969-1999 now. 2005-08-28 David Madore diff --git a/lib/ChangeLog b/lib/ChangeLog index e0a7ca1d5d..8a3d9c8d6e 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,10 @@ +2005-11-01 Paul Eggert + + * posixtm.h (PDS_PRE_2000): New macro. + * posixtm.c (year): Arg is now syntax_bits rather than allow_century. + All usages changed. Reject dates outside the range 1969-1999 if + PDS_PRE_2000 is used. + 2005-10-30 Paul Eggert Fix porting problems reported by Theodoros V. Kalamatianos.