X-Git-Url: https://mattmccutchen.net/rsync/rsync-patches.git/blobdiff_plain/e66d6d511b675d31a3c55b51fd28d5d2558d094a..963ca80882dea2131e78563fa59e3e0e7c70c195:/db.diff diff --git a/db.diff b/db.diff index a4b5869..9850b64 100644 --- a/db.diff +++ b/db.diff @@ -87,10 +87,10 @@ diff --git a/cleanup.c b/cleanup.c extern int keep_partial; extern int got_xfer_error; +extern int use_db; - extern int progress_is_active; extern char *partial_dir; extern char *logfile_name; -@@ -128,6 +129,12 @@ NORETURN void _exit_cleanup(int code, const char *file, int line) + +@@ -124,6 +125,12 @@ NORETURN void _exit_cleanup(int code, const char *file, int line) /* FALLTHROUGH */ #include "case_N.h" @@ -123,7 +123,7 @@ diff --git a/clientserver.c b/clientserver.c extern char *bind_address; extern char *sockopts; extern char *config_file; -@@ -552,6 +555,9 @@ static int rsync_module(int f_in, int f_out, int i, char *addr, char *host) +@@ -564,6 +567,9 @@ static int rsync_module(int f_in, int f_out, int i, char *addr, char *host) log_init(1); @@ -133,7 +133,7 @@ diff --git a/clientserver.c b/clientserver.c #ifdef HAVE_PUTENV if (*lp_prexfer_exec(i) || *lp_postxfer_exec(i)) { char *modname, *modpath, *hostaddr, *hostname, *username; -@@ -768,6 +774,10 @@ static int rsync_module(int f_in, int f_out, int i, char *addr, char *host) +@@ -766,6 +772,10 @@ static int rsync_module(int f_in, int f_out, int i, char *addr, char *host) am_server = 1; /* Don't let someone try to be tricky. */ quiet = 0; @@ -768,7 +768,7 @@ diff --git a/flist.c b/flist.c extern int eol_nulls; extern int relative_paths; extern int implied_dirs; -@@ -1239,14 +1240,16 @@ struct file_struct *make_file(const char *fname, struct file_list *flist, +@@ -1286,14 +1287,16 @@ struct file_struct *make_file(const char *fname, struct file_list *flist, memcpy(bp + basename_len, linkname, linkname_len); #endif @@ -788,7 +788,7 @@ diff --git a/flist.c b/flist.c /* This code is only used by the receiver when it is building * a list of files for a delete pass. */ if (keep_dirlinks && linkname_len && flist) { -@@ -1862,6 +1865,9 @@ struct file_list *send_file_list(int f, int argc, char *argv[]) +@@ -1953,6 +1956,9 @@ struct file_list *send_file_list(int f, int argc, char *argv[]) | (eol_nulls || reading_remotely ? RL_EOL_NULLS : 0); int implied_dot_dir = 0; @@ -809,7 +809,7 @@ diff --git a/generator.c b/generator.c extern int append_mode; extern int make_backups; extern int csum_length; -@@ -718,7 +719,8 @@ int unchanged_file(char *fn, struct file_struct *file, STRUCT_STAT *st) +@@ -721,7 +722,8 @@ int unchanged_file(char *fn, struct file_struct *file, STRUCT_STAT *st) of the file time to determine whether to sync */ if (always_checksum > 0 && S_ISREG(st->st_mode)) { char sum[MAX_DIGEST_LEN]; @@ -819,7 +819,7 @@ diff --git a/generator.c b/generator.c return memcmp(sum, F_SUM(file), checksum_len) == 0; } -@@ -2161,6 +2163,9 @@ void generate_files(int f_out, const char *local_name) +@@ -2203,6 +2205,9 @@ void generate_files(int f_out, const char *local_name) : "enabled"); } @@ -883,7 +883,7 @@ diff --git a/main.c b/main.c extern char *shell_cmd; extern char *batch_name; extern char *password_file; -@@ -1490,6 +1492,9 @@ int main(int argc,char *argv[]) +@@ -1491,6 +1493,9 @@ int main(int argc,char *argv[]) exit_cleanup(RERR_SYNTAX); }