Bug 5505 - rsync 3.x reporting excluded files as error
Summary: rsync 3.x reporting excluded files as error
Status: CLOSED INVALID
Alias: None
Product: rsync
Classification: Unclassified
Component: core (show other bugs)
Version: 3.0.2
Hardware: All All
: P3 normal (vote)
Target Milestone: ---
Assignee: Wayne Davison
QA Contact: Rsync QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-30 23:46 UTC by Nadeem Hasan
Modified: 2008-07-28 20:15 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nadeem Hasan 2008-05-30 23:46:37 UTC
Since rsync 3.x, any daemon-excluded file is reported as error 23 (incomplete transfer). This is incorrect and unlike the behaviour in previous versions. If files are explicitly excluded by server config, then this is normal behaviour for rsync to skip them.

The attached patch fixes this:

--- generator.c.old     2008-05-31 00:35:33.000000000 -0400
+++ generator.c 2008-05-31 00:35:55.000000000 -0400
@@ -1292,7 +1292,7 @@
                        if (F_IS_HLINKED(file))
                                handle_skipped_hlink(file, itemizing, code, f_out);
 #endif
-                       rprintf(FERROR_XFER,
+                       rprintf(FINFO,
                                "skipping daemon-excluded %s \"%s\"\n",
                                is_dir ? "directory" : "file", fname);
                        if (is_dir)
Comment 1 Matt McCutchen 2008-05-31 00:03:05 UTC
No, it was the pre-3.0.0 behavior that was incorrect.  When a client tries to push a file but is prevented from doing so by a daemon exclude, rsync has done a transfer that is incorrect from the client's perspective, so it must issue error 23.  To avoid the error, exclude the files on the client.