You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
762 B

  1. From f62cf1fff5dabcfaaa8c85638723bc19842f52f4 Mon Sep 17 00:00:00 2001
  2. From: Sergey Dryabzhinsky <sergey.dryabzhinsky+github@gmail.com>
  3. Date: Tue, 19 Nov 2019 23:15:28 +0300
  4. Subject: [PATCH] Fix typo in util.c
  5. There must be mtim*e*
  6. ---
  7. programs/util.c | 2 +-
  8. 1 file changed, 1 insertion(+), 1 deletion(-)
  9. diff --git a/programs/util.c b/programs/util.c
  10. index 5d15450d2..d3ffc1133 100644
  11. --- a/programs/util.c
  12. +++ b/programs/util.c
  13. @@ -73,7 +73,7 @@ int UTIL_setFileStat(const char *filename, stat_t *statbuf)
  14. {
  15. /* (atime, mtime) */
  16. struct timespec timebuf[2] = { {0, UTIME_NOW} };
  17. - timebuf[1] = statbuf->st_mtim;
  18. + timebuf[1] = statbuf->st_mtime;
  19. res += utimensat(AT_FDCWD, filename, timebuf, 0);
  20. }
  21. #endif