Skip to content
代码片段 群组 项目
未验证 提交 612a06eb 编辑于 作者: Sergey Dryabzhinsky's avatar Sergey Dryabzhinsky 提交者: GitHub
浏览文件

Update util.c

上级 f62cf1ff
No related branches found
No related tags found
无相关合并请求
...@@ -73,7 +73,7 @@ int UTIL_setFileStat(const char *filename, stat_t *statbuf) ...@@ -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_mtime; timebuf[1].tv_sec = statbuf->st_mtime;
res += utimensat(AT_FDCWD, filename, timebuf, 0); res += utimensat(AT_FDCWD, filename, timebuf, 0);
} }
#endif #endif
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册