summaryrefslogtreecommitdiff
path: root/backup.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2018-01-15 10:52:15 -0800
committerWayne Davison <wayned@samba.org>2018-01-15 10:58:31 -0800
commit0f8e9e2d8638e47d646a6baba694b303ac84e695 (patch)
tree8b8d7ec208fa77b0f6becaae5c376f86d064d330 /backup.c
parentc4a3f55be35726d0a033996dc37b0fb248b45cb5 (diff)
downloadrsync-0f8e9e2d8638e47d646a6baba694b303ac84e695.tar.gz
Don't force nanoseconds if a file wasn't transferred or checksummed.
Diffstat (limited to 'backup.c')
-rw-r--r--backup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backup.c b/backup.c
index bc565329..5f40b39a 100644
--- a/backup.c
+++ b/backup.c
@@ -336,7 +336,7 @@ int make_backup(const char *fname, BOOL prefer_rename)
save_preserve_xattrs = preserve_xattrs;
preserve_xattrs = 0;
- set_file_attrs(buf, file, NULL, fname, 0);
+ set_file_attrs(buf, file, NULL, fname, ATTRS_SET_NANO);
preserve_xattrs = save_preserve_xattrs;
unmake_file(file);