Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0379c8e
)
Have unchanged_attrs() check the mtime on items where we can
author
Wayne Davison
<wayned@samba.org>
Sat, 3 Nov 2007 21:14:16 +0000
(21:14 +0000)
committer
Wayne Davison
<wayned@samba.org>
Sat, 3 Nov 2007 21:14:16 +0000
(21:14 +0000)
affect the time, even if unchanged_file() might have already
checked it.
generator.c
patch
|
blob
|
blame
|
history
diff --git
a/generator.c
b/generator.c
index
db0824d
..
5ba5579
100644
(file)
--- a/
generator.c
+++ b/
generator.c
@@
-517,6
+517,14
@@
static void do_delete_pass(void)
int unchanged_attrs(const char *fname, struct file_struct *file, stat_x *sxp)
{
+#if !defined HAVE_LCHMOD && !defined HAVE_SETATTRLIST
+ if (S_ISLNK(file->mode)) {
+ ;
+ } else
+#endif
+ if (preserve_times && cmp_time(sxp->st.st_mtime, file->modtime) != 0)
+ return 0;
+
if (preserve_perms && !BITS_EQUAL(sxp->st.st_mode, file->mode, CHMOD_BITS))
return 0;