aboutsummaryrefslogtreecommitdiff
path: root/src/xz
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2009-02-03 10:41:11 +0200
committerLasse Collin <lasse.collin@tukaani.org>2009-02-03 10:41:11 +0200
commitccf92a29e8c7234284f1568c1ec0fd7cb98356ca (patch)
tree1c303c4e7cb9b7f0e3651d8eb001e998541e3d64 /src/xz
parentUpdated the x86 assembler code: (diff)
downloadxz-ccf92a29e8c7234284f1568c1ec0fd7cb98356ca.tar.xz
Fix wrong filename argument for utime() and utimes().
This doesn't affect most systems, since most systems have better functions available.
Diffstat (limited to 'src/xz')
-rw-r--r--src/xz/io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xz/io.c b/src/xz/io.c
index 49d3d8bc..2a4c6e9a 100644
--- a/src/xz/io.c
+++ b/src/xz/io.c
@@ -180,7 +180,7 @@ io_copy_attrs(const file_pair *pair)
(void)futimesat(pair->dest_fd, NULL, tv);
# else
// Argh, no function to use a file descriptor to set the timestamp.
- (void)utimes(pair->src_name, tv);
+ (void)utimes(pair->dest_name, tv);
# endif
#elif defined(HAVE_UTIME)
@@ -195,7 +195,7 @@ io_copy_attrs(const file_pair *pair)
(void)atime_nsec;
(void)mtime_nsec;
- (void)utime(pair->src_name, &buf);
+ (void)utime(pair->dest_name, &buf);
#endif
return;