summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/install.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/install.c b/src/install.c
index 6dc950e08..3a694ed94 100644
--- a/src/install.c
+++ b/src/install.c
@@ -549,6 +549,11 @@ change_timestamps (const char *from, const char *to)
error (0, errno, "%s", from);
return 1;
}
+
+ /* There's currently no interface to set file timestamps with
+ better than 1-second resolution, so discard any fractional
+ part of the source timestamp. */
+
utb.actime = stb.st_atime;
utb.modtime = stb.st_mtime;
if (utime (to, &utb))