projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71fa8dc
)
(main): Pass PDS_PRE_2000 to posixtime.
author
Paul Eggert
<eggert@cs.ucla.edu>
Tue, 1 Nov 2005 23:42:36 +0000
(23:42 +0000)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Tue, 1 Nov 2005 23:42:36 +0000
(23:42 +0000)
src/touch.c
patch
|
blob
|
history
diff --git
a/src/touch.c
b/src/touch.c
index
06c9646
..
a79c26d
100644
(file)
--- 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];