summaryrefslogtreecommitdiffstats
path: root/bin/mv
diff options
context:
space:
mode:
Diffstat (limited to 'bin/mv')
-rw-r--r--bin/mv/mv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/mv/mv.c b/bin/mv/mv.c
index 999c8fc..a95b07a 100644
--- a/bin/mv/mv.c
+++ b/bin/mv/mv.c
@@ -352,7 +352,7 @@ err: if (unlink(to))
ts[0] = sbp->st_atim;
ts[1] = sbp->st_mtim;
- if (utimensat(AT_FDCWD, to, ts, 0))
+ if (futimens(to_fd, ts))
warn("%s: set times", to);
if (close(to_fd)) {
OpenPOWER on IntegriCloud