From 5b775703ec21161afad9b5d4608f8bd1968dfd06 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Thu, 9 Feb 2006 02:14:52 +0000 Subject: [PATCH] Fixed a simple build problem that crept into the patch. --- date-only.diff | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/date-only.diff b/date-only.diff index 977bb3e..42315fd 100644 --- 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) -+ 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; @@ -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"); -@@ -445,6 +447,7 @@ static struct poptOption long_options[] +@@ -443,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 }, @@ -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 }, -@@ -1645,6 +1648,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"; @@ -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 -@@ -461,6 +462,12 @@ regardless of timestamp. This is useful +@@ -460,6 +461,12 @@ regardless of timestamp. This is useful after using another mirroring system which may not preserve timestamps exactly. -- 2.34.1