Matt McCutchen's Web Site
/
rsync
/
rsync-patches.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1fcc420
)
Fixed a simple build problem that crept into the patch.
author
Wayne Davison
<wayned@samba.org>
Thu, 9 Feb 2006 02:14:52 +0000
(
02:14
+0000)
committer
Wayne Davison
<wayned@samba.org>
Thu, 9 Feb 2006 02:14:52 +0000
(
02:14
+0000)
date-only.diff
patch
|
blob
|
blame
|
history
diff --git
a/date-only.diff
b/date-only.diff
index
977bb3e
..
42315fd
100644
(file)
--- a/
date-only.diff
+++ b/
date-only.diff
@@
-30,7
+30,7
@@
Jeremy Bornstein
int unchanged_file(char *fn, struct file_struct *file, STRUCT_STAT *st)
{
+ if (date_only)
int unchanged_file(char *fn, struct file_struct *file, STRUCT_STAT *st)
{
+ if (date_only)
-+ return cmp_
mod
time(st->st_mtime, file->modtime) == 0;
++ return cmp_time(st->st_mtime, file->modtime) == 0;
if (st->st_size != file->length)
return 0;
if (st->st_size != file->length)
return 0;
@@
-52,7
+52,7
@@
Jeremy Bornstein
rprintf(F," --modify-window=NUM compare mod-times with reduced accuracy\n");
rprintf(F," -T, --temp-dir=DIR create temporary files in directory DIR\n");
rprintf(F," -y, --fuzzy find similar file for basis if no dest file\n");
rprintf(F," --modify-window=NUM compare mod-times with reduced accuracy\n");
rprintf(F," -T, --temp-dir=DIR create temporary files in directory DIR\n");
rprintf(F," -y, --fuzzy find similar file for basis if no dest file\n");
-@@ -44
5,6 +447
,7 @@ static struct poptOption long_options[]
+@@ -44
3,6 +445
,7 @@ static struct poptOption long_options[]
{"chmod", 0, POPT_ARG_STRING, 0, OPT_CHMOD, 0, 0 },
{"ignore-times", 'I', POPT_ARG_NONE, &ignore_times, 0, 0, 0 },
{"size-only", 0, POPT_ARG_NONE, &size_only, 0, 0, 0 },
{"chmod", 0, POPT_ARG_STRING, 0, OPT_CHMOD, 0, 0 },
{"ignore-times", 'I', POPT_ARG_NONE, &ignore_times, 0, 0, 0 },
{"size-only", 0, POPT_ARG_NONE, &size_only, 0, 0, 0 },
@@
-60,9
+60,9
@@
Jeremy Bornstein
{"one-file-system", 'x', POPT_ARG_NONE, 0, 'x', 0, 0 },
{"update", 'u', POPT_ARG_NONE, &update_only, 0, 0, 0 },
{"existing", 0, POPT_ARG_NONE, &ignore_non_existing, 0, 0, 0 },
{"one-file-system", 'x', POPT_ARG_NONE, 0, 'x', 0, 0 },
{"update", 'u', POPT_ARG_NONE, &update_only, 0, 0, 0 },
{"existing", 0, POPT_ARG_NONE, &ignore_non_existing, 0, 0, 0 },
-@@ -164
5,6 +1648
,9 @@ void server_options(char **args,int *arg
- if (size_only)
- args[ac++] = "--size-only";
+@@ -164
7,6 +1650
,9 @@ void server_options(char **args,int *arg
+ args[ac++] = "--size-only";
+ }
+ if (date_only)
+ args[ac++] = "--date-only";
+ if (date_only)
+ args[ac++] = "--date-only";
@@
-80,7
+80,7
@@
Jeremy Bornstein
--modify-window=NUM compare mod-times with reduced accuracy
-T, --temp-dir=DIR create temporary files in directory DIR
-y, --fuzzy find similar file for basis if no dest file
--modify-window=NUM compare mod-times with reduced accuracy
-T, --temp-dir=DIR create temporary files in directory DIR
-y, --fuzzy find similar file for basis if no dest file
-@@ -46
1,6 +462
,12 @@ regardless of timestamp. This is useful
+@@ -46
0,6 +461
,12 @@ regardless of timestamp. This is useful
after using another mirroring system which may not preserve timestamps
exactly.
after using another mirroring system which may not preserve timestamps
exactly.