From: Paul Eggert Date: Tue, 1 Nov 2005 23:42:36 +0000 (+0000) Subject: (main): Pass PDS_PRE_2000 to posixtime. X-Git-Tag: v6.0~1430 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a2bacbdc9cf244eebd0c04a9d5b553ca241fd4c5;p=thirdparty%2Fcoreutils.git (main): Pass PDS_PRE_2000 to posixtime. --- diff --git a/src/touch.c b/src/touch.c index 06c9646bc2..a79c26d97e 100644 --- a/src/touch.c +++ b/src/touch.c @@ -375,7 +375,8 @@ main (int argc, char **argv) /* The obsolete `MMDDhhmm[YY]' form is valid IFF there are two or more non-option arguments. */ if (!date_set && 2 <= argc - optind && posix2_version () < 200112 - && posixtime (&newtime[0].tv_sec, argv[optind], PDS_TRAILING_YEAR)) + && posixtime (&newtime[0].tv_sec, argv[optind], + PDS_TRAILING_YEAR | PDS_PRE_2000)) { newtime[0].tv_nsec = 0; newtime[1] = newtime[0];