1
0
鏡像自 https://git.tukaani.org/xz.git synced 2025-06-30 17:36:36 +00:00

Another utime() fix.

This commit is contained in:
Lasse Collin 2009-02-03 12:15:17 +02:00
父節點 ccf92a29e8
當前提交 d0c0b9e94e

查看文件

@ -185,10 +185,11 @@ io_copy_attrs(const file_pair *pair)
#elif defined(HAVE_UTIME)
// Use one-second precision. utime() doesn't support using file
// descriptor either.
const struct utimbuf buf = {
.actime = pair->src_st.st_atime;
.modtime = pair->src_st.st_mtime;
// descriptor either. Some systems have broken utime() prototype
// so don't make this const.
struct utimbuf buf = {
.actime = pair->src_st.st_atime,
.modtime = pair->src_st.st_mtime,
};
// Avoid warnings.