summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2005-11-01 23:42:36 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2005-11-01 23:42:36 +0000
commita2bacbdc9cf244eebd0c04a9d5b553ca241fd4c5 (patch)
tree51519b005373129ccfc5d8cb33f646b17a9e225f
parent71fa8dc28e4737179a74250d40c55bbe23644d1b (diff)
downloadcoreutils-a2bacbdc9cf244eebd0c04a9d5b553ca241fd4c5.tar.xz
(main): Pass PDS_PRE_2000 to posixtime.
-rw-r--r--src/touch.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/touch.c b/src/touch.c
index 06c9646bc..a79c26d97 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];