summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1998-08-02 16:22:24 +0000
committerJim Meyering <jim@meyering.net>1998-08-02 16:22:24 +0000
commita607901e48f8c2d34deecbddb27b5f6db95f9168 (patch)
tree010a17a4b774e100de34486c5c0e7ce27cb0dd44
parent01053400d04060e0f6336fc07c4457ab1ac8ccff (diff)
downloadcoreutils-a607901e48f8c2d34deecbddb27b5f6db95f9168.tar.xz
(change_timestamps): Add comment.
-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))