From: Sergey Dryabzhinsky Date: Tue, 19 Nov 2019 20:24:00 +0000 (+0300) Subject: Update util.c X-Git-Tag: v1.4.5^2~146^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=612a06eb3ef7f42739ace99fbca6ad63b788d46c;p=thirdparty%2Fzstd.git Update util.c --- diff --git a/programs/util.c b/programs/util.c index d3ffc1133..aa75ca6d4 100644 --- a/programs/util.c +++ b/programs/util.c @@ -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_mtime; + timebuf[1].tv_sec = statbuf->st_mtime; res += utimensat(AT_FDCWD, filename, timebuf, 0); } #endif