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:
78112d3
)
Optimized away a call to cmp_modtime() for a compare-dest file.
author
Wayne Davison
<wayned@samba.org>
Tue, 29 Jun 2004 16:22:54 +0000
(16:22 +0000)
committer
Wayne Davison
<wayned@samba.org>
Tue, 29 Jun 2004 16:22:54 +0000
(16:22 +0000)
generator.c
patch
|
blob
|
blame
|
history
diff --git
a/generator.c
b/generator.c
index
fa2d9ea
..
84958b8
100644
(file)
--- a/
generator.c
+++ b/
generator.c
@@
-482,7
+482,8
@@
void recv_generator(char *fname, struct file_struct *file, int i, int f_out)
return;
}
- if (update_only && cmp_modtime(st.st_mtime,file->modtime)>0 && fnamecmp == fname) {
+ if (update_only && fnamecmp == fname
+ && cmp_modtime(st.st_mtime, file->modtime) > 0) {
if (verbose > 1)
rprintf(FINFO,"%s is newer\n",fname);
return;