Fix typo in util.c

There must be mtim*e*
This commit is contained in:
Sergey Dryabzhinsky 2019-11-19 23:15:28 +03:00 committed by GitHub
parent 6a7f65117e
commit f62cf1fff5
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) */ /* (atime, mtime) */
struct timespec timebuf[2] = { {0, UTIME_NOW} }; struct timespec timebuf[2] = { {0, UTIME_NOW} };
timebuf[1] = statbuf->st_mtim; timebuf[1] = statbuf->st_mtime;
res += utimensat(AT_FDCWD, filename, timebuf, 0); res += utimensat(AT_FDCWD, filename, timebuf, 0);
} }
#endif #endif