From: Jim Meyering Date: Sun, 2 Aug 1998 16:24:41 +0000 (+0000) Subject: (re_protect): Add comment. X-Git-Tag: FILEUTILS-3_16t~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0136b885fe1a7670ad5893da59b8d1fd6302f834;p=thirdparty%2Fcoreutils.git (re_protect): Add comment. --- diff --git a/src/cp.c b/src/cp.c index f3c2390732..ef73da2e1f 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;