Another utime() fix.
This commit is contained in:
parent
ccf92a29e8
commit
d0c0b9e94e
|
@ -185,10 +185,11 @@ io_copy_attrs(const file_pair *pair)
|
||||||
|
|
||||||
#elif defined(HAVE_UTIME)
|
#elif defined(HAVE_UTIME)
|
||||||
// Use one-second precision. utime() doesn't support using file
|
// Use one-second precision. utime() doesn't support using file
|
||||||
// descriptor either.
|
// descriptor either. Some systems have broken utime() prototype
|
||||||
const struct utimbuf buf = {
|
// so don't make this const.
|
||||||
.actime = pair->src_st.st_atime;
|
struct utimbuf buf = {
|
||||||
.modtime = pair->src_st.st_mtime;
|
.actime = pair->src_st.st_atime,
|
||||||
|
.modtime = pair->src_st.st_mtime,
|
||||||
};
|
};
|
||||||
|
|
||||||
// Avoid warnings.
|
// Avoid warnings.
|
||||||
|
|
Loading…
Reference in New Issue