diff --git a/usr.bin/xinstall/xinstall.c b/usr.bin/xinstall/xinstall.c index 87c0b1c2bd07..f46f3326e152 100644 --- a/usr.bin/xinstall/xinstall.c +++ b/usr.bin/xinstall/xinstall.c @@ -434,8 +434,8 @@ different: printf("install: %s -> %s\n", from_name, old_to_name); if (dopreserve && stat(from_name, ×tamp_sb) == 0) { - utb.actime = from_sb.st_atime; - utb.modtime = from_sb.st_mtime; + utb.actime = timestamp_sb.st_atime; + utb.modtime = timestamp_sb.st_mtime; (void)utime(to_name, &utb); } moveit: