mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
(main): Fix POSIX-conformance bug: "touch --
MMDDhhmm file" must be treated like "touch MMDDhhmm file" when conforming to pre-2001 POSIX.
This commit is contained in:
1 parent
d1d35fc729
commit
f786a91cd3
1 file changed
+1
-2
+1
-2
@@ -373,8 +373,7 @@ 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 && !STREQ (argv[optind - 1], "--")
|
||||
&& posix2_version () < 200112)
|
||||
if (!date_set && 2 <= argc - optind && posix2_version () < 200112)
|
||||
{
|
||||
if (posixtime (&newtime[0].tv_sec, argv[optind], PDS_TRAILING_YEAR))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user