Commit 53febd6
committed
Fix protocol compatibility: Add feature negotiation for MSG_FLIST_COUNT to work with version <=3.4.1
- Add CF_SKIP_UNCHANGED compat flag (bit 9)
- Add 'U' flag to client_info to advertise support
- Only send MSG_FLIST_COUNT when both sides negotiated the feature
- Only process MSG_FLIST_COUNT when negotiated
- Prevents 'unexpected tag 11' error when mixing standard/custom rsync
This fixes the crash when custom rsync (receiver) communicates with
standard rsync (sender). The feature is now safely negotiated during
protocol setup.1 parent 616c84c commit 53febd6
4 files changed
+12
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| 85 | + | |
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
| |||
124 | 125 | | |
125 | 126 | | |
126 | 127 | | |
| 128 | + | |
127 | 129 | | |
128 | 130 | | |
129 | 131 | | |
| |||
727 | 729 | | |
728 | 730 | | |
729 | 731 | | |
| 732 | + | |
| 733 | + | |
730 | 734 | | |
731 | 735 | | |
732 | 736 | | |
| |||
748 | 752 | | |
749 | 753 | | |
750 | 754 | | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
751 | 758 | | |
752 | 759 | | |
753 | 760 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
2299 | 2300 | | |
2300 | 2301 | | |
2301 | 2302 | | |
2302 | | - | |
| 2303 | + | |
2303 | 2304 | | |
2304 | 2305 | | |
2305 | 2306 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| |||
1512 | 1513 | | |
1513 | 1514 | | |
1514 | 1515 | | |
1515 | | - | |
| 1516 | + | |
1516 | 1517 | | |
1517 | 1518 | | |
1518 | 1519 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3050 | 3050 | | |
3051 | 3051 | | |
3052 | 3052 | | |
| 3053 | + | |
3053 | 3054 | | |
3054 | 3055 | | |
3055 | 3056 | | |
| |||
0 commit comments