int unchanged_file(char *fn, struct file_struct *file, STRUCT_STAT *st)
{
+ if (date_only)
-+ return cmp_modtime(st->st_mtime, file->modtime) == 0;
++ return cmp_time(st->st_mtime, file->modtime) == 0;
if (st->st_size != file->length)
return 0;
--- old/options.c
+++ new/options.c
-@@ -98,6 +98,7 @@ int keep_partial = 0;
+@@ -99,6 +99,7 @@ int keep_partial = 0;
int safe_symlinks = 0;
int copy_unsafe_links = 0;
int size_only = 0;
int daemon_bwlimit = 0;
int bwlimit = 0;
int fuzzy_basis = 0;
-@@ -331,6 +332,7 @@ void usage(enum logcode F)
+@@ -332,6 +333,7 @@ void usage(enum logcode F)
rprintf(F," --timeout=TIME set I/O timeout in seconds\n");
rprintf(F," -I, --ignore-times don't skip files that match in size and mod-time\n");
rprintf(F," --size-only skip files that match in size\n");
{"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 },
-@@ -1643,6 +1646,9 @@ void server_options(char **args,int *arg
- if (size_only)
- args[ac++] = "--size-only";
+@@ -1647,6 +1650,9 @@ void server_options(char **args,int *arg
+ args[ac++] = "--size-only";
+ }
+ if (date_only)
+ args[ac++] = "--date-only";