logo

live-bootstrap

Mirror of <https://github.com/fosslinux/live-bootstrap>

touch-getdate.patch (642B)


  1. SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
  2. SPDX-License-Identifier: GPL-2.0-or-later
  3. getdate.c is pre-compiled from getdate.y
  4. At this point we don't have bison yet and in any case getdate.y does not
  5. compile when generated with modern bison.
  6. --- coreutils-5.0/src/touch.c.orig 2021-03-13 18:16:05.344355958 +0000
  7. +++ coreutils-5.0/src/touch.c 2021-03-13 18:16:26.204891355 +0000
  8. @@ -306,7 +306,7 @@
  9. case 'd':
  10. flexible_date++;
  11. - newtime = get_date (optarg, NULL);
  12. + newtime = 0;
  13. if (newtime == (time_t) -1)
  14. error (EXIT_FAILURE, 0, _("invalid date format %s"), quote (optarg));
  15. date_set++;