Skip to content

Commit d899304

Browse files
committed
The patches for 3.2.5.
1 parent abf6e48 commit d899304

27 files changed

+82
-68
lines changed

backup-deleted.diff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ To use this patch, run these commands for a successful build:
77
./configure (optional if already run)
88
make
99

10-
based-on: 4c0a4067df2516ce50e12a7d3ae572275fa9fc0b
10+
based-on: 5fcf20ee9d8abf7aae8578354f82c6f500822e06
1111
diff --git a/generator.c b/generator.c
1212
--- a/generator.c
1313
+++ b/generator.c

catch_crash_signals.diff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ To use this patch, run these commands for a successful build:
2525
./configure (optional if already run)
2626
make
2727

28-
based-on: 4c0a4067df2516ce50e12a7d3ae572275fa9fc0b
28+
based-on: 5fcf20ee9d8abf7aae8578354f82c6f500822e06
2929
diff --git a/errcode.h b/errcode.h
3030
--- a/errcode.h
3131
+++ b/errcode.h

checksum-reading.diff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ To use this patch, run these commands for a successful build:
1616
./configure (optional if already run)
1717
make
1818

19-
based-on: 4c0a4067df2516ce50e12a7d3ae572275fa9fc0b
19+
based-on: 5fcf20ee9d8abf7aae8578354f82c6f500822e06
2020
diff --git a/clientserver.c b/clientserver.c
2121
--- a/clientserver.c
2222
+++ b/clientserver.c

checksum-xattr.diff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ To use this patch, run these commands for a successful build:
88
./configure (optional if already run)
99
make
1010

11-
based-on: 4c0a4067df2516ce50e12a7d3ae572275fa9fc0b
11+
based-on: 5fcf20ee9d8abf7aae8578354f82c6f500822e06
1212
diff --git a/flist.c b/flist.c
1313
--- a/flist.c
1414
+++ b/flist.c

clone-dest.diff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ To use this patch, run these commands for a successful build:
1313
./configure (optional if already run)
1414
make
1515

16-
based-on: 4c0a4067df2516ce50e12a7d3ae572275fa9fc0b
16+
based-on: 5fcf20ee9d8abf7aae8578354f82c6f500822e06
1717
diff --git a/Makefile.in b/Makefile.in
1818
--- a/Makefile.in
1919
+++ b/Makefile.in
@@ -137,7 +137,7 @@ diff --git a/rsync.1.md b/rsync.1.md
137137
--compress, -z compress file data during the transfer
138138
--compress-choice=STR choose the compression algorithm (aka --zc)
139139
--compress-level=NUM explicitly set compression level (aka --zl)
140-
@@ -2619,6 +2620,18 @@ expand it.
140+
@@ -2624,6 +2625,18 @@ expand it.
141141
this bug by avoiding the `-o` option (or using `--no-o`) when sending to an
142142
old rsync.
143143

congestion.diff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ To use this patch, run these commands for a successful build:
2727
./configure (optional if already run)
2828
make
2929

30-
based-on: 4c0a4067df2516ce50e12a7d3ae572275fa9fc0b
30+
based-on: 5fcf20ee9d8abf7aae8578354f82c6f500822e06
3131
diff --git a/daemon-parm.txt b/daemon-parm.txt
3232
--- a/daemon-parm.txt
3333
+++ b/daemon-parm.txt

date-only.diff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ To use this patch, run these commands for a successful build:
1414
./configure (optional if already run)
1515
make
1616

17-
based-on: 4c0a4067df2516ce50e12a7d3ae572275fa9fc0b
17+
based-on: 5fcf20ee9d8abf7aae8578354f82c6f500822e06
1818
diff --git a/generator.c b/generator.c
1919
--- a/generator.c
2020
+++ b/generator.c

db.diff

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ To use this patch, run these commands for a successful build:
2121
./configure
2222
make
2323

24-
based-on: 4c0a4067df2516ce50e12a7d3ae572275fa9fc0b
24+
based-on: 5fcf20ee9d8abf7aae8578354f82c6f500822e06
2525
diff --git a/.gitignore b/.gitignore
2626
--- a/.gitignore
2727
+++ b/.gitignore
@@ -136,7 +136,7 @@ diff --git a/checksum.c b/checksum.c
136136
extern const char *checksum_choice;
137137

138138
struct name_num_obj valid_checksums = {
139-
@@ -386,6 +387,8 @@ void file_checksum(const char *fname, const STRUCT_STAT *st_p, char *sum)
139+
@@ -391,6 +392,8 @@ void file_checksum(const char *fname, const STRUCT_STAT *st_p, char *sum)
140140
md5_update(&m5, (uchar *)map_ptr(buf, i, remainder), remainder);
141141

142142
md5_result(&m5, (uchar *)sum);
@@ -145,7 +145,7 @@ diff --git a/checksum.c b/checksum.c
145145
break;
146146
}
147147
case CSUM_MD4:
148-
@@ -425,6 +428,8 @@ void file_checksum(const char *fname, const STRUCT_STAT *st_p, char *sum)
148+
@@ -430,6 +433,8 @@ void file_checksum(const char *fname, const STRUCT_STAT *st_p, char *sum)
149149
mdfour_update(&m, (uchar *)map_ptr(buf, i, remainder), remainder);
150150

151151
mdfour_result(&m, (uchar *)sum);
@@ -3202,7 +3202,7 @@ diff --git a/usage.c b/usage.c
32023202
"*Optimizations",
32033203

32043204
#ifndef USE_ROLL_SIMD
3205-
@@ -261,6 +271,14 @@ void daemon_usage(enum logcode F)
3205+
@@ -263,6 +273,14 @@ void daemon_usage(enum logcode F)
32063206
rprintf(F,"daemon-specific rsync options. See also the rsyncd.conf(5) manpage.\n");
32073207
}
32083208

detect-renamed-lax.diff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ diff --git a/rsync.1.md b/rsync.1.md
100100
--compare-dest=DIR also compare destination files relative to DIR
101101
--copy-dest=DIR ... and include copies of unchanged files
102102
--link-dest=DIR hardlink to files in DIR when unchanged
103-
@@ -2551,6 +2553,20 @@ expand it.
103+
@@ -2556,6 +2558,20 @@ expand it.
104104
otential alternate-basis files will be removed as the transfer progresses.
105105
This option conflicts with [`--inplace`](#opt) and [`--append`](#opt).
106106

detect-renamed.diff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ TODO:
3838
a file that can't use it, while missing out on giving it to a file
3939
that could use it.
4040

41-
based-on: 4c0a4067df2516ce50e12a7d3ae572275fa9fc0b
41+
based-on: 5fcf20ee9d8abf7aae8578354f82c6f500822e06
4242
diff --git a/backup.c b/backup.c
4343
--- a/backup.c
4444
+++ b/backup.c
@@ -666,7 +666,7 @@ diff --git a/rsync.1.md b/rsync.1.md
666666
--compare-dest=DIR also compare destination files relative to DIR
667667
--copy-dest=DIR ... and include copies of unchanged files
668668
--link-dest=DIR hardlink to files in DIR when unchanged
669-
@@ -2534,6 +2535,22 @@ expand it.
669+
@@ -2539,6 +2540,22 @@ expand it.
670670
potential fuzzy-match files, so either use [`--delete-after`](#opt) or
671671
specify some filename exclusions if you need to prevent this.
672672

direct-io.diff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ To use this patch, run these commands for a successful build:
1010
./configure (optional if already run)
1111
make
1212

13-
based-on: 4c0a4067df2516ce50e12a7d3ae572275fa9fc0b
13+
based-on: 5fcf20ee9d8abf7aae8578354f82c6f500822e06
1414
diff --git a/options.c b/options.c
1515
--- a/options.c
1616
+++ b/options.c
@@ -42,7 +42,7 @@ diff --git a/rsync.1.md b/rsync.1.md
4242
--prune-empty-dirs, -m prune empty directory chains from file-list
4343
--numeric-ids don't map uid/gid values by user/group name
4444
--usermap=STRING custom username mapping
45-
@@ -3334,6 +3335,17 @@ expand it.
45+
@@ -3339,6 +3340,17 @@ expand it.
4646
update algorithm that is even more atomic (it uses [`--link-dest`](#opt)
4747
and a parallel hierarchy of files).
4848

downdate.diff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ To use this patch, run these commands for a successful build:
77
./configure (optional if already run)
88
make
99

10-
based-on: 4c0a4067df2516ce50e12a7d3ae572275fa9fc0b
10+
based-on: 5fcf20ee9d8abf7aae8578354f82c6f500822e06
1111
diff --git a/generator.c b/generator.c
1212
--- a/generator.c
1313
+++ b/generator.c

fileflags.diff

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ To use this patch, run these commands for a successful build:
77
./configure (optional if already run)
88
make
99

10-
based-on: 4c0a4067df2516ce50e12a7d3ae572275fa9fc0b
10+
based-on: 5fcf20ee9d8abf7aae8578354f82c6f500822e06
1111
diff --git a/compat.c b/compat.c
1212
--- a/compat.c
1313
+++ b/compat.c
@@ -36,7 +36,7 @@ diff --git a/compat.c b/compat.c
3636

3737
int receiver_symlink_times = 0; /* receiver can set the time on a symlink */
3838
int sender_symlink_iconv = 0; /* sender should convert symlink content */
39-
@@ -574,6 +576,8 @@ void setup_protocol(int f_out,int f_in)
39+
@@ -576,6 +578,8 @@ void setup_protocol(int f_out,int f_in)
4040
uid_ndx = ++file_extra_cnt;
4141
if (preserve_gid)
4242
gid_ndx = ++file_extra_cnt;
@@ -45,7 +45,7 @@ diff --git a/compat.c b/compat.c
4545
if (preserve_acls && !am_sender)
4646
acls_ndx = ++file_extra_cnt;
4747
if (preserve_xattrs)
48-
@@ -737,6 +741,10 @@ void setup_protocol(int f_out,int f_in)
48+
@@ -739,6 +743,10 @@ void setup_protocol(int f_out,int f_in)
4949
fprintf(stderr, "Both rsync versions must be at least 3.2.0 for --crtimes.\n");
5050
exit_cleanup(RERR_PROTOCOL);
5151
}
@@ -554,7 +554,7 @@ diff --git a/rsync.1.md b/rsync.1.md
554554
[`--recursive`](#opt) option was also enabled.
555555

556556
0. `--max-delete=NUM`
557-
@@ -3000,7 +3036,7 @@ expand it.
557+
@@ -3005,7 +3041,7 @@ expand it.
558558
also turns on the output of other verbose messages).
559559

560560
The "%i" escape has a cryptic output that is 11 letters long. The general

filter-attribute-mods.diff

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ To use this patch, run these commands for a successful build:
99
./configure (optional if already run)
1010
make
1111

12-
based-on: 4c0a4067df2516ce50e12a7d3ae572275fa9fc0b
12+
based-on: 5fcf20ee9d8abf7aae8578354f82c6f500822e06
1313
diff --git a/exclude.c b/exclude.c
1414
--- a/exclude.c
1515
+++ b/exclude.c
@@ -349,7 +349,7 @@ diff --git a/rsync.1.md b/rsync.1.md
349349

350350
See the [`--perms`](#opt) and [`--executability`](#opt) options for how the
351351
resulting permission value can be applied to the files in the transfer.
352-
@@ -2934,6 +2936,10 @@ expand it.
352+
@@ -2939,6 +2941,10 @@ expand it.
353353
avoid a complaint about wildcard characters, but a modern rsync handles
354354
this automatically.
355355

@@ -360,7 +360,7 @@ diff --git a/rsync.1.md b/rsync.1.md
360360
0. `--timeout=SECONDS`
361361

362362
This option allows you to set a maximum I/O timeout in seconds. If no data
363-
@@ -4084,6 +4090,15 @@ The following modifiers are accepted after an include (+) or exclude (-) rule:
363+
@@ -4089,6 +4095,15 @@ The following modifiers are accepted after an include (+) or exclude (-) rule:
364364
like "CVS" and "`*.o`" are marked as perishable, and will not prevent a
365365
directory that was removed on the source from being deleted on the
366366
destination.
@@ -376,7 +376,7 @@ diff --git a/rsync.1.md b/rsync.1.md
376376
- An `x` indicates that a rule affects xattr names in xattr copy/delete
377377
operations (and is thus ignored when matching file/dir names). If no
378378
xattr-matching rules are specified, a default xattr filtering rule is used
379-
@@ -4141,6 +4156,12 @@ The following modifiers are accepted after a merge or dir-merge rule:
379+
@@ -4146,6 +4161,12 @@ The following modifiers are accepted after a merge or dir-merge rule:
380380
rules in the file must not specify sides (via a modifier or a rule prefix
381381
such as `hide`).
382382

fix-checksums.diff

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ To use this patch, run these commands for a successful build:
1010
./configure (optional if already run)
1111
make
1212

13-
based-on: 9cb7529ba60cd59519489ad0fc7fbb69ced6411f
13+
based-on: 5fcf20ee9d8abf7aae8578354f82c6f500822e06
1414
diff --git a/authenticate.c b/authenticate.c
1515
--- a/authenticate.c
1616
+++ b/authenticate.c
@@ -85,9 +85,9 @@ diff --git a/checksum.c b/checksum.c
8585
+int file_sum_type = 0; /* used for the pre-transfer (--checksum) checksums */
8686
+int file_sum_len = 0;
8787

88-
int parse_csum_name(const char *name, int len)
89-
{
90-
@@ -99,26 +109,28 @@ static const char *checksum_name(int num)
88+
static int initialized_choices = 0;
89+
90+
@@ -104,26 +114,28 @@ static const char *checksum_name(int num)
9191
void parse_checksum_choice(int final_call)
9292
{
9393
if (valid_checksums.negotiated_name)
@@ -123,7 +123,7 @@ diff --git a/checksum.c b/checksum.c
123123

124124
if (final_call && DEBUG_GTE(NSTR, am_server ? 3 : 1)) {
125125
rprintf(FINFO, "%s%s checksum: %s\n",
126-
@@ -204,7 +216,7 @@ uint32 get_checksum1(char *buf1, int32 len)
126+
@@ -209,7 +221,7 @@ uint32 get_checksum1(char *buf1, int32 len)
127127

128128
void get_checksum2(char *buf, int32 len, char *sum)
129129
{
@@ -132,7 +132,7 @@ diff --git a/checksum.c b/checksum.c
132132
#ifdef SUPPORT_XXHASH
133133
case CSUM_XXH64:
134134
SIVAL64(sum, 0, XXH64(buf, len, checksum_seed));
135-
@@ -288,7 +300,7 @@ void get_checksum2(char *buf, int32 len, char *sum)
135+
@@ -293,7 +305,7 @@ void get_checksum2(char *buf, int32 len, char *sum)
136136
* are multiples of 64. This is fixed by calling mdfour_update()
137137
* even when there are no more bytes.
138138
*/
@@ -141,7 +141,7 @@ diff --git a/checksum.c b/checksum.c
141141
mdfour_update(&m, (uchar *)(buf1+i), len-i);
142142

143143
mdfour_result(&m, (uchar *)sum);
144-
@@ -306,7 +318,7 @@ void file_checksum(const char *fname, const STRUCT_STAT *st_p, char *sum)
144+
@@ -311,7 +323,7 @@ void file_checksum(const char *fname, const STRUCT_STAT *st_p, char *sum)
145145
int32 remainder;
146146
int fd;
147147

@@ -150,7 +150,7 @@ diff --git a/checksum.c b/checksum.c
150150

151151
fd = do_open(fname, O_RDONLY, 0);
152152
if (fd == -1)
153-
@@ -314,7 +326,7 @@ void file_checksum(const char *fname, const STRUCT_STAT *st_p, char *sum)
153+
@@ -319,7 +331,7 @@ void file_checksum(const char *fname, const STRUCT_STAT *st_p, char *sum)
154154

155155
buf = map_file(fd, len, MAX_MAP_SIZE, CHUNK_SIZE);
156156

@@ -159,7 +159,7 @@ diff --git a/checksum.c b/checksum.c
159159
#ifdef SUPPORT_XXHASH
160160
case CSUM_XXH64: {
161161
static XXH64_state_t* state = NULL;
162-
@@ -421,7 +433,7 @@ void file_checksum(const char *fname, const STRUCT_STAT *st_p, char *sum)
162+
@@ -426,7 +438,7 @@ void file_checksum(const char *fname, const STRUCT_STAT *st_p, char *sum)
163163
* are multiples of 64. This is fixed by calling mdfour_update()
164164
* even when there are no more bytes. */
165165
remainder = (int32)(len - i);
@@ -168,7 +168,7 @@ diff --git a/checksum.c b/checksum.c
168168
mdfour_update(&m, (uchar *)map_ptr(buf, i, remainder), remainder);
169169

170170
mdfour_result(&m, (uchar *)sum);
171-
@@ -429,7 +441,7 @@ void file_checksum(const char *fname, const STRUCT_STAT *st_p, char *sum)
171+
@@ -434,7 +446,7 @@ void file_checksum(const char *fname, const STRUCT_STAT *st_p, char *sum)
172172
}
173173
default:
174174
rprintf(FERROR, "Invalid checksum-choice for --checksum: %s (%d)\n",
@@ -177,7 +177,7 @@ diff --git a/checksum.c b/checksum.c
177177
exit_cleanup(RERR_UNSUPPORTED);
178178
}
179179

180-
@@ -452,14 +464,16 @@ static XXH64_state_t* xxh64_state;
180+
@@ -457,14 +469,16 @@ static XXH64_state_t* xxh64_state;
181181
static XXH3_state_t* xxh3_state;
182182
#endif
183183
static int cursum_type;
@@ -195,7 +195,7 @@ diff --git a/checksum.c b/checksum.c
195195

196196
switch (csum_type) {
197197
#ifdef SUPPORT_XXHASH
198-
@@ -505,6 +519,8 @@ void sum_init(int csum_type, int seed)
198+
@@ -510,6 +524,8 @@ void sum_init(int csum_type, int seed)
199199
default: /* paranoia to prevent missing case values */
200200
exit_cleanup(RERR_UNSUPPORTED);
201201
}
@@ -204,7 +204,7 @@ diff --git a/checksum.c b/checksum.c
204204
}
205205

206206
/**
207-
@@ -573,11 +589,11 @@ void sum_update(const char *p, int32 len)
207+
@@ -578,11 +594,11 @@ void sum_update(const char *p, int32 len)
208208
}
209209
}
210210

@@ -221,13 +221,15 @@ diff --git a/checksum.c b/checksum.c
221221
{
222222
switch (cursum_type) {
223223
#ifdef SUPPORT_XXHASH
224-
@@ -620,6 +636,4 @@ int sum_end(char *sum)
224+
@@ -625,8 +641,6 @@ int sum_end(char *sum)
225225
default: /* paranoia to prevent missing case values */
226226
exit_cleanup(RERR_UNSUPPORTED);
227227
}
228228
-
229229
- return csum_len_for_type(cursum_type, 0);
230230
}
231+
232+
void init_checksum_choices()
231233
diff --git a/clientserver.c b/clientserver.c
232234
--- a/clientserver.c
233235
+++ b/clientserver.c
@@ -406,7 +408,7 @@ diff --git a/compat.c b/compat.c
406408

407409
if (!am_server || !do_negotiated_strings) {
408410
char *cp = tmpbuf;
409-
@@ -801,11 +804,73 @@ void setup_protocol(int f_out,int f_in)
411+
@@ -803,11 +806,73 @@ void setup_protocol(int f_out,int f_in)
410412
checksum_seed = read_int(f_in);
411413
}
412414

ignore-case.diff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ TODO:
1212
- Make this code handle multibyte character encodings, and honor the
1313
--iconv setting when converting case.
1414

15-
based-on: 4c0a4067df2516ce50e12a7d3ae572275fa9fc0b
15+
based-on: 5fcf20ee9d8abf7aae8578354f82c6f500822e06
1616
diff --git a/exclude.c b/exclude.c
1717
--- a/exclude.c
1818
+++ b/exclude.c
@@ -252,7 +252,7 @@ diff --git a/rsync.1.md b/rsync.1.md
252252
--address=ADDRESS bind address for outgoing socket to daemon
253253
--port=PORT specify double-colon alternate port number
254254
--sockopts=OPTIONS specify custom TCP options
255-
@@ -2482,6 +2483,12 @@ expand it.
255+
@@ -2487,6 +2488,12 @@ expand it.
256256

257257
> sudo rsync -aive lsh -M--copy-as=joe src/ lh:dest/
258258

kerberos.diff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ To use this patch, run these commands for a successful build:
99
./configure
1010
make
1111

12-
based-on: 4c0a4067df2516ce50e12a7d3ae572275fa9fc0b
12+
based-on: 5fcf20ee9d8abf7aae8578354f82c6f500822e06
1313
diff --git a/Makefile.in b/Makefile.in
1414
--- a/Makefile.in
1515
+++ b/Makefile.in

0 commit comments

Comments
 (0)