mirror of https://git.tukaani.org/xz.git
Fix wrong filename argument for utime() and utimes().
This doesn't affect most systems, since most systems have better functions available.
This commit is contained in:
parent
99c1c2abfa
commit
ccf92a29e8
|
@ -180,7 +180,7 @@ io_copy_attrs(const file_pair *pair)
|
||||||
(void)futimesat(pair->dest_fd, NULL, tv);
|
(void)futimesat(pair->dest_fd, NULL, tv);
|
||||||
# else
|
# else
|
||||||
// Argh, no function to use a file descriptor to set the timestamp.
|
// 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
|
# endif
|
||||||
|
|
||||||
#elif defined(HAVE_UTIME)
|
#elif defined(HAVE_UTIME)
|
||||||
|
@ -195,7 +195,7 @@ io_copy_attrs(const file_pair *pair)
|
||||||
(void)atime_nsec;
|
(void)atime_nsec;
|
||||||
(void)mtime_nsec;
|
(void)mtime_nsec;
|
||||||
|
|
||||||
(void)utime(pair->src_name, &buf);
|
(void)utime(pair->dest_name, &buf);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue