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.

22 lines
743 B

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