From f964ac5eeec2e562cc161beb7ddf7affb959c3c3 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Sun, 22 Oct 2006 22:36:36 +0000 Subject: [PATCH] - Fixed an error-handling path in try_dests_reg(). - Added a comment. --- generator.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/generator.c b/generator.c index 2a985507..50d6d889 100644 --- a/generator.c +++ b/generator.c @@ -647,7 +647,7 @@ static int try_dests_reg(struct file_struct *file, char *fname, int ndx, j = best_match; pathjoin(cmpbuf, MAXPATHLEN, basis_dir[j], fname); if (link_stat(cmpbuf, stp, 0) < 0) - match_level = 0; + return -1; } if (match_level == 3 && !copy_dest) { @@ -1033,6 +1033,9 @@ static void recv_generator(char *fname, struct file_struct *file, int ndx, } if (preserve_hard_links && file->link_u.links) hard_link_cluster(file, ndx, itemizing, code); + /* This does not check remove_source_files == 1 + * because this is one of the items that the old + * --remove-sent-files option would remove. */ if (remove_source_files) goto return_with_success; } -- 2.34.1