projects
/
platform
/
upstream
/
xz.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ccf92a2
)
Another utime() fix.
author
Lasse Collin
<lasse.collin@tukaani.org>
Tue, 3 Feb 2009 10:15:17 +0000
(12:15 +0200)
committer
Lasse Collin
<lasse.collin@tukaani.org>
Tue, 3 Feb 2009 10:15:17 +0000
(12:15 +0200)
src/xz/io.c
patch
|
blob
|
history
diff --git
a/src/xz/io.c
b/src/xz/io.c
index
2a4c6e9
..
851b649
100644
(file)
--- 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.