Merge pull request #1897 from sergey-dryabzhinsky/patch-1

WIP: Fix typo in util.c
This commit is contained in:
Yann Collet 2019-11-22 17:25:55 -08:00 committed by GitHub
commit d4ce04c3e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,7 +73,7 @@ int UTIL_setFileStat(const char *filename, stat_t *statbuf)
{
/* (atime, mtime) */
struct timespec timebuf[2] = { {0, UTIME_NOW} };
timebuf[1] = statbuf->st_mtim;
timebuf[1].tv_sec = statbuf->st_mtime;
res += utimensat(AT_FDCWD, filename, timebuf, 0);
}
#endif