summaryrefslogtreecommitdiff
path: root/modules/copy-file
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2017-05-01 13:27:57 +0200
committerBruno Haible <bruno@clisp.org>2017-05-01 13:27:57 +0200
commit3eee3a1e3c5b8883e0d4934bfc1326ee605cb7c1 (patch)
treeae6dca2044ddd7dedae976b1f7e06d7de52fae6e /modules/copy-file
parente48f55fd7c253e0363072b6163012e5cead89b55 (diff)
downloadgnulib-3eee3a1e3c5b8883e0d4934bfc1326ee605cb7c1.tar.gz
copy-file: Preserve sub-second time stamps.
* lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>. (qcopy_file_preserving): Use 'struct timespec' and utimens() to transport the time stamps from the original file to the destination file. * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes. * modules/copy-file (Depends-on): Add stat-time, utimns instead of utime-h.
Diffstat (limited to 'modules/copy-file')
-rw-r--r--modules/copy-file3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/copy-file b/modules/copy-file
index 7238f55f6e..e94a22ca3c 100644
--- a/modules/copy-file
+++ b/modules/copy-file
@@ -17,9 +17,10 @@ ignore-value
open
quote
safe-read
+stat-time
stdlib
unistd
-utime-h
+utimens
xalloc
configure.ac: