projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f7ac75
)
(re_protect): Add comment.
author
Jim Meyering
<jim@meyering.net>
Sun, 2 Aug 1998 16:24:41 +0000
(16:24 +0000)
committer
Jim Meyering
<jim@meyering.net>
Sun, 2 Aug 1998 16:24:41 +0000
(16:24 +0000)
src/cp.c
patch
|
blob
|
history
diff --git
a/src/cp.c
b/src/cp.c
index
f3c2390
..
ef73da2
100644
(file)
--- 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;