summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1998-08-02 16:24:41 +0000
committerJim Meyering <jim@meyering.net>1998-08-02 16:24:41 +0000
commit0136b885fe1a7670ad5893da59b8d1fd6302f834 (patch)
treecb235905a785d58be9c9b1f61720b1d1a5f652f5 /src
parent0f7ac758540d5bf8bfd92a2667024bf7bc6c6fae (diff)
downloadcoreutils-0136b885fe1a7670ad5893da59b8d1fd6302f834.tar.xz
(re_protect): Add comment.
Diffstat (limited to 'src')
-rw-r--r--src/cp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cp.c b/src/cp.c
index f3c239073..ef73da2e1 100644
--- a/src/cp.c
+++ b/src/cp.c
@@ -233,6 +233,10 @@ re_protect (const char *const_dst_path, int src_offset,
{
struct utimbuf utb;
+ /* 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 = src_sb.st_atime;
utb.modtime = src_sb.st_mtime;