From: Lasse Collin Date: Tue, 3 Feb 2009 08:41:11 +0000 (+0200) Subject: Fix wrong filename argument for utime() and utimes(). X-Git-Tag: upstream/5.1.3~599 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ccf92a29e8c7234284f1568c1ec0fd7cb98356ca;p=platform%2Fupstream%2Fxz.git Fix wrong filename argument for utime() and utimes(). This doesn't affect most systems, since most systems have better functions available. --- diff --git a/src/xz/io.c b/src/xz/io.c index 49d3d8b..2a4c6e9 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;