diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2009-02-03 12:15:17 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2009-02-03 12:15:17 +0200 |
commit | d0c0b9e94e0af59d1d8f7f4829695d6efe19ccfe (patch) | |
tree | 897ef5a267beeaf53d2da1592f4a2f272fb5bc11 | |
parent | Fix wrong filename argument for utime() and utimes(). (diff) | |
download | xz-d0c0b9e94e0af59d1d8f7f4829695d6efe19ccfe.tar.xz |
Another utime() fix.
-rw-r--r-- | src/xz/io.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/xz/io.c b/src/xz/io.c index 2a4c6e9a..851b6494 100644 --- a/src/xz/io.c +++ b/src/xz/io.c @@ -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. |