Debian Codegraph @

NEWS.md

raw symbols SCIP
1 # NEWS for rsync 3.5.0 (13 Aug 2026)
2
3 ## Changes in this version:
4
5 ### Thanks!
6
7 This has been an extraordinary release developed over several months
8 and I'd like to thank everyone who has helped make it possible. The
9 volume of security issues we had to deal with would have been quite
10 overwhelming without the help that I've received.
11
12 I'm particularly grateful to Zen Dodd (Tao), Omar Elsayed (seks99x),
13 Will Sargeant, Paul Mackerras, Aleksa Sarai and Leonid Bugaev (buger)
14 who joined the rsync admins group helping to triage all the issues,
15 develop new tests, review PRs and helped develop the guidelines we used
16 for where to draw the line between a security issue and expected
17 behaviour (a surprisingly difficult thing to do in some cases). You've
18 all been a huge help and rsync is much better off for your assistance.
19
20 A big thank you also to Filipe Casal from Trail of Bits who worked with
21 us on the "Patch the Planet" program. Filipe provided a huge trove of
22 valuable tests and security reports.
23
24 Also a big thank you to Greg Kroah-Hartman for invaluable advice and
25 security reports and to Stuart Inglis for particularly high quality
26 bug reports and testing.
27
28 Many thanks to everyone who submitted bug reports, credits are listed
29 below against individual items.
30
31 Finally, thank you to everyone who joined in the discussion and
32 testing on the rsync-security mailing list, and to the rsync user
33 community for your patience in waiting for this release.
34
35 ### SECURITY FIXES:
36
37 This release fixes 33 security issues found during a focused audit of rsync's
38 path handling and daemon protocol, a companion daemon-protocol fuzzing pass, and
39 reports from external researchers -- plus several robustness hardenings. CVE
40 IDs were assigned by VulnCheck (CNA); the precise "introduced in" version ranges
41 accompany each advisory, and many are much narrower than "everything before
42 3.5.0". Every fix ships with a regression test in the test suite that fails on
43 the unfixed tree. Many thanks to the external researchers credited below.
44
45 Link following (CWE-59/61) -- a local user who controls a path component plants
46 a symlink that a privileged rsync then follows:
47
48 - CVE-2026-53802 (HIGH): Arbitrary file read / transfer-shaping via symlinked
49 operator-supplied input files. rsync followed attacker-planted symlinks in
50 `--filter` merge files (including per-directory merges and `-C` `.cvsignore`),
51 `--files-from` / `--include-from` / `--exclude-from`, and the client
52 `--password-file` / daemon secrets file -- reading an arbitrary file as filter
53 rules, or sending a victim file's contents as the daemon authentication
54 response. Operator-supplied paths are now resolved component-by-component with
55 `openat(O_PATH|O_NOFOLLOW)`, allowing a symlink component only when it is owned
56 by uid 0 or the effective uid.
57
58 - CVE-2026-53803 (HIGH): Arbitrary file write / privilege escalation via
59 symlinked operator-supplied output paths -- `--log-file`,
60 `--write-batch`/`--read-batch`, and the daemon's motd / lock / early-input /
61 `--config` opens. A planted symlink (or parent component) could redirect the
62 write, e.g. append the log to `authorized_keys`; `--read-batch` could also feed
63 chosen bytes to the protocol parser. Same trusted-owner path walk, plus an
64 `S_ISREG` check on the `--read-batch` file.
65
66 - CVE-2026-53785 (HIGH): Under `--relative`, the receiver's implied-parent
67 creation (`make_path()`) built the parent chain with a plain `mkdir()` on the
68 full path, so a planted parent symlink placed the new directories and file
69 outside the destination tree. `make_path()` now creates each component through
70 the held-directory-fd primitive. Reported by Omar Elsayed (seks99x).
71
72 - CVE-2026-53784 (HIGH): Daemon module-root chdir escape under `use chroot =
73 no`: a plain `chdir()` followed a planted parent-component symlink, serving
74 files from outside the module. The module-root chdir now goes through the
75 secure resolver.
76
77 - CVE-2026-53793 (HIGH): Chroot `/./` inner-module escape -- a symlinked
78 parent component inside the inner module reached a sibling outside it (the
79 generator basis stat, the receiver write/finish path, the module chdir, and the
80 receiver's delta-basis open). The secure resolver is now engaged for all of
81 those paths.
82
83 - CVE-2026-53795 (HIGH): An absolute `--temp-dir` or `--link-dest` disabled
84 the receiver's rename/link confinement. `do_rename_at()`/`do_link_at()` bailed
85 to the unconfined path-based call whenever *either* path was absolute, so an
86 absolute source (the temp file, or the link-dest basis) let `finish_transfer()`'s
87 tmp->final rename -- or a hard-link create -- follow a destination parent
88 component an attacker flipped to a symlink mid-transfer, writing the file outside
89 the tree. Each side is now confined independently. Reported by Omar Elsayed
90 (seks99x).
91
92 - CVE-2026-53796 (MEDIUM): A non-daemon receiver's one-time `chdir()` into the
93 operator-named destination was not fully confined (a relative destination took a
94 plain `chdir()`), so an attacker who raced the named destination from a directory
95 to a symlink moved the receiver's CWD -- and every file it then created --
96 outside the tree. The destination chdir now uses the same ownership-checked
97 `O_NOFOLLOW` walk as the daemon module chdir (see BEHAVIOR CHANGES). Reported by
98 Omar Elsayed (seks99x).
99
100 - CVE-2026-53797 (MEDIUM): A non-daemon sender opened each transferred file's
101 content by path (leaf `O_NOFOLLOW` only), so a source parent component an
102 unprivileged user raced to a symlink after the file-list scan was followed --
103 reading a file from outside the source tree into an attacker-readable
104 destination. The content open is now anchored at the transfer root with
105 `secure_relative_open()`; `-L` / `--copy-unsafe-links` / `-k` still follow, and
106 `--insecure-links` restores the legacy open.
107
108 - CVE-2026-53799 (MEDIUM): Receiver ACL/xattr metadata application followed a
109 symlink race -> arbitrary ACL set (local privilege escalation). When preserving
110 metadata (`-A`/`--acls`, `-X`/`--xattrs`, or fake-super ACL-as-xattr), the
111 receiver applied each entry's ACL/xattrs by path via `acl_set_file()` /
112 `setxattr()`. A local user who raced a just-received entry (or a parent) into a
113 symlink before the apply could redirect an attacker-chosen ACL -- the bytes are
114 carried in the source entry -- onto a victim inode outside the destination tree,
115 granting rwx on a root-owned file. The apply now pins each entry's inode with an
116 `O_RDONLY|O_NOFOLLOW` fd and sets all metadata on the held inode (Linux 6.13+
117 `*xattrat` syscalls, or a patched libacl's `*_at` bindings, else the
118 `/proc/self/fd` compat path). Where neither primitive exists (the BSDs, Solaris,
119 macOS, or a `/proc`-less Linux container) it falls back to the path-based apply to
120 keep `--acls` functional -- a documented residual, refusable via `refuse options =
121 acls`.
122
123 - CVE-2026-53800 (MEDIUM): Sender `--remove-source-files` unlink followed a
124 parent-component symlink race -> arbitrary file deletion outside the source tree.
125 The post-send unlink and its same-file safety re-stat resolved by path relative to
126 the process CWD, so an unprivileged user who raced a source parent into a symlink
127 after the file was sent could make a higher-authority sender (a root
128 `--remove-source-files` run, or a daemon module not refusing the option) delete a
129 file outside the served tree. The removal is now resolved through the secure
130 held-dirfd walk anchored at the served module root (daemon) or transfer-root CWD
131 (local sender), the safety re-stat is confined likewise, and the per-file dev/ino
132 is only computed when `--remove-source-files` is in effect.
133
134 - CVE-2026-53801 (MEDIUM): Sender/daemon directory-scan enumeration escaped the
135 transfer root / module -> out-of-tree disclosure. The sender enumerated each
136 source directory with a plain `opendir()` on the accumulated path, not through the
137 secure resolver (the enumeration sibling of the previous item, which confined only
138 the content open). A parent component raced to a symlink between the file-list
139 scan and the recursive `opendir()` -- or, in daemon following mode
140 (`-L`/`--copy-dirlinks`/`--copy-unsafe-links`), an in-module symlinked directory
141 pointing outside the module -- let a higher-authority sender enumerate an
142 out-of-tree directory and copy its entry names, metadata and symlink targets. The
143 directory scan is now confined through a held `opendir` fd anchored at the transfer
144 root / module.
145
146 `support/rrsync` (the restricted SSH wrapper):
147
148 - CVE-2026-53783 (HIGH): rrsync restricted-directory escape. It validated each
149 argument with `realpath()` and then exec'd rsync against the same name (a
150 TOCTOU window), and left dangerous options enabled in a restricted subdir.
151 rrsync now inode-pins the validated path and roots the argument it hands rsync
152 at that pinned fd, denies `--copy-unsafe-links`, forces `--no-D`, and refuses a
153 symlinked `--log-file`. The pin relies on Linux's `/proc/self/fd` magic links
154 being bound to the open inode, so it is Linux-only; on the BSDs, macOS, Solaris
155 and Cygwin rrsync passes the `realpath()`-validated name as it always did.
156 Two limits are worth stating: under `--relative` only the anchor the
157 transmitted name starts from is pinned, so a component below it can still be
158 raced, and the final component of an ordinary sender argument is not pinned
159 either (rsync does not follow a symlink there, and the options that would
160 change that are refused in a restricted dir).
161
162 - A filter rule that failed to parse was echoed back verbatim, including when
163 the rule came from a merge file's contents. A per-directory merge rule names
164 a file the peer chooses and travels over the protocol rather than in an
165 argument, so this let a peer read back any line of any file the server process
166 could open that is not valid filter syntax -- through an `rrsync` restricted
167 account as well as a daemon module, since neither confined a merge open that
168 the wrapper never sees. A syntax error in a rule read from a file now reports
169 the file and line rather than the text; a rule given as an argument is still
170 shown. The `--debug=FILTER` traces print the same file-derived text, so
171 `rrsync` now refuses a peer-selected `--debug` (a stock client never sends
172 one). An operator who turns debugging on for their own server still sees the
173 rule text.
174
175 - Redacting those diagnostics did not close the merge route on its own, because
176 the worst shape produces no diagnostic at all: an exclude-only merge (the `-`
177 modifier) makes every line of the file a pattern, so nothing fails to parse
178 and the peer reads the contents off which of its own names went missing from
179 the file list. Through an `rrsync` restricted account that needs no
180 `--delete` and no verbosity on a pull. The open is now confined rather than
181 the disclosure suppressed: rsync gained `--confine-root=DIR`, which refuses an
182 operator- or peer-supplied path that resolves outside DIR, and `rrsync` passes
183 its restricted directory. A merge file inside that directory keeps working.
184 A daemon already had this through its module root and is unaffected.
185
186 Daemon protocol / identity:
187
188 - CVE-2026-53786 (MEDIUM): A client-supplied `--filter` merge file bypassed
189 the module filter list (it was checked against the module-prefixed path, which
190 never matched a module rule). The module-dir prefix is now stripped before the
191 check. Reported by Mitchell Benjamin (Revamp Studio).
192
193 - CVE-2026-53798 (MEDIUM): The daemon name converter mapped an unknown name to
194 uid/gid 0 (an empty response was read as `atol("") == 0`); with `fake super =
195 yes` the stored metadata became root-owned. An empty/non-numeric response is
196 now treated as a lookup failure. Reported by Mitchell Benjamin (Revamp
197 Studio).
198
199 - CVE-2026-53788 (MEDIUM): A peer-controlled name containing a newline/CR was
200 written verbatim into the name-converter line protocol, allowing request
201 injection. Converter tokens containing control characters are now rejected.
202 Reported by Mitchell Benjamin (Revamp Studio).
203
204 - CVE-2026-53789 (MEDIUM): A malicious daemon-sender could widen `--delete`
205 scope by omitting the "no content dir" flag on an implied parent, making the
206 receiver run `delete_in_dir()` on it. Implied-parent directories are now
207 forced non-content on the receiver. Reported by Mitchell Benjamin (Revamp
208 Studio).
209
210 - CVE-2026-53791 (CRITICAL): With `proxy protocol = true`, a client connecting
211 directly (not via the trusted proxy) could send a PROXY header to spoof its
212 source address and bypass host-based access control. A forwarded address is
213 now honoured only from a configured trusted-proxy peer.
214
215 Injection and memory safety:
216
217 - CVE-2026-53790 (HIGH): Command / argument injection via unquoted peer- or
218 host-controlled values -- the `RSYNC_CONNECT_PROG` `%H` host substitution, the
219 daemon exec-hook `%RSYNC_*%` expansions, rsync-ssl hostspecs, and a missing
220 newline/CR in remote-shell argument quoting. Each sink is now quoted or
221 validated (the hook escaping is confined to the shell-executed hooks, so
222 ordinary daemon string parameters such as `path` are unaffected).
223
224 - CVE-2026-53792 (MEDIUM): A malicious receiver sending a checksum header with a
225 block count > 0 but block length == 0 drove the sender's rolling-match
226 arithmetic negative. A zero block length is now rejected.
227
228 - CVE-2026-53794 (MEDIUM): `--max-alloc=0` disabled the per-allocation size
229 cap (the defense behind CVE-2024-12084) and could be forwarded on the wire to
230 an unpatched daemon. A zero max-alloc is now rejected at both the client and
231 the daemon. Reported by Azizcan Dastan (Milenium Security).
232
233 Peer-triggerable memory corruption in the daemon protocol, found by a
234 daemon-protocol fuzzing pass and reported by Greg Kroah-Hartman. Each is a
235 WRITE reachable from the wire, which is why these were split out from the
236 crash-only findings in the same pass:
237
238 - CVE-2026-70461 (HIGH): a one-byte heap out-of-bounds write in
239 `add_implied_include()`, driven by a peer-supplied filter rule whose trailing
240 backslash was not counted when sizing the copy.
241
242 - CVE-2026-70458 (HIGH): an out-of-bounds write from a file entry marked
243 `FLAG_HLINKED` that the receiver accepted even though `-H` was not in effect,
244 so the hard-link extra slots it then wrote were never allocated.
245
246 - CVE-2026-70456 (HIGH): an out-of-bounds heap write in `read_args()` when the
247 peer's argument count lands exactly on `maxargs` -- the trailing NULL went one
248 past the end of the array.
249
250 - CVE-2026-70457 (MEDIUM): an attacker-chosen-offset write in
251 `parse_size_arg()`'s error formatting, reachable through an over-large
252 `--max-size` / `--min-size` / `--max-alloc` forwarded to a daemon.
253
254 - CVE-2026-70459 (MEDIUM): a wild-pointer read crashing the per-connection
255 daemon child, from a crafted first incremental file list whose transfer root
256 is "." with a non-directory mode -- `parent_ndx` stayed 0 while `dir_flist`
257 was still empty, so the generator dereferenced a never-written slot.
258 Companion to CVE-2026-43620; reproduced on released 3.2.7, 3.4.0 and 3.4.1.
259
260 Daemon availability and access control:
261
262 - CVE-2026-70464 (HIGH): an unauthenticated peer could complete the `@RSYNCD`
263 greeting and then stall forever -- sending a line with no terminator, or
264 trickling NUL-terminated arguments into `read_args()` one byte at a time --
265 holding a per-connection child open past the module's `max connections`
266 limit. The `timeout` parameter did not cover it, because `set_io_timeout()`
267 ran after the `read_args()` calls that needed covering. A separate deadline
268 now spans both, and the early-protocol argument count is bounded. Reported
269 independently by Chamal De Silva and by Michal Ruprich (Red Hat QE).
270
271 - CVE-2026-70455 (HIGH): a daemon client could request an arbitrary Zstandard
272 worker count via `--compress-threads`; 256 was measured as 257 threads in a
273 single connection. Now capped at 8 on a daemon, while local and
274 remote-shell invocations keep the operator's value. Reported, fixed and
275 tested by Filipe Casal of Trail of Bits, in collaboration with OpenAI.
276
277 - CVE-2026-70453 (HIGH): quadratic CPU exhaustion in `hash_search()` from a
278 crafted chain of equal weak checksums. The chain walk is now bounded. First
279 reported as a performance problem in public rsync issue #217 by heyciao
280 (2021); recognised as a security issue, bounded and regression-tested by
281 Stuart Inglis. This one was already public and was not embargoed.
282
283 - CVE-2026-70452 (HIGH): `hosts deny` failed OPEN when a configured hostname
284 could not be resolved -- with `forward lookup` enabled, which is the default,
285 an unresolvable deny token admitted the host it was meant to block. It now
286 fails closed. Sibling of CVE-2026-43617. Reported by Leonid Bugaev.
287
288 - CVE-2026-70463 (HIGH): `auth users` ignored its documented comma-only
289 parsing. With a leading comma the split should be on commas alone, so that a
290 group name containing a space can be written; it split on whitespace too, so
291 a `deny` or `:ro` rule naming such a group was broken into two meaningless
292 tokens and never fired. Reported by Andres Berbescu.
293
294 - CVE-2026-70460 (HIGH): a peer-supplied `--partial-dir` or `--backup-dir` was
295 resolved by pathname, so an in-module symlink could redirect it and place
296 files outside the daemon's module root. Those paths are now confined.
297 Reported by Omar Elsayed (seks99x).
298
299 Client-side:
300
301 - CVE-2026-70462 (MEDIUM): a peer-supplied `MSG_IO_TIMEOUT` defeated the
302 client's own I/O timeout -- a large value overflowed signed arithmetic, and a
303 non-positive value disabled the timeout outright. The value is now capped on
304 receipt and the arithmetic made overflow-safe. Reported by Z3R0S! (z3r0s6);
305 the non-positive case was reported by Leonid Bugaev.
306
307 - CVE-2026-70454 (MEDIUM): `rsync-ssl` established an unauthenticated TLS
308 connection. In stunnel mode it neither required CA verification nor bound
309 the certificate to the requested hostname, so an active network attacker
310 could impersonate the server; the openssl backend had a matching hostname
311 gap in 3.2.0 through 3.2.3 (found and fixed in 2020 by Matt McCutchen).
312 stunnel mode now requires certificate verification and hostname binding
313 unless an explicit insecure opt-out is set, and the GnuTLS backend is
314 refused conservatively rather than used unverified (Greg Kroah-Hartman).
315
316 Robustness hardening (no CVE assigned): the `RSYNC_PROXY` CONNECT request and
317 proxy response headers are length-bounded, and peer-requested xattr expansion is
318 capped.
319
320 A second-pass source audit (reported by Leonid Bugaev) hardened several memory-
321 safety and robustness paths: the hashtable and file-list size computations are
322 guarded against a 32-bit integer overflow that a peer's entry count could
323 otherwise wrap into an under-allocation, and the
324 `SIGUSR2` handler is now async-signal-safe (it only sets a flag, deferring the
325 summary/close-out work to safe poll points). Separately, the xattr/ACL metadata
326 copy now reads the *source* through a held no-follow fd as well as writing the
327 destination through one -- closing a parent-symlink race on the `--copy-dest` and
328 backup source -- and the cross-tree operator-path metadata apply is now fd-pinned
329 under `--fake-super` too (previously it fell back to a path-based set for a
330 `fake super = yes` daemon staging through an absolute `--temp-dir`/`--backup-dir`).
331
332 ### SECURITY RELATED:
333
334 - Mask a peer-supplied I/O-error value to the defined `IOERR_*` bits, both the
335 incoming `MSG_IO_ERROR` message (`io.c`) and the file-list trailer (`flist.c`),
336 so a malicious peer cannot set arbitrary (undefined) error flags that would be
337 stored in the local `io_error` and re-forwarded upstream. (Undefined bits
338 never reached the exit code, which maps only the defined bits.) Reported by
339 Leonid Bugaev.
340
341 - Escape control characters in filenames written to the log file (CWE-117 log
342 injection): a transferred name containing control bytes -- C0 (tab excepted)
343 and C1 `0x80`-`0x9f`, including CSI `0x9b` -- could otherwise inject terminal
344 escape sequences into an administrator's terminal when the log is viewed.
345 Reported by Leonid Bugaev.
346
347 - Stop `safe_arg()` leaking an uninitialized byte into a quoted filename. In
348 filename mode the writer suppresses the escaping backslash before a wildcard,
349 but the counter that sized the buffer reserved a slot for every backslash, so
350 the two disagreed and left an uninitialized heap byte in the returned string
351 -- which is handed to the remote shell when `--protect-args` is off. The
352 counter now mirrors the writer, and guarding the wildcard test with `f[1]`
353 also fixes a trailing backslash (previously `strchr()` matched the string
354 terminator, so the backslash was not doubled). Reported by Leonid Bugaev.
355
356 - Close a `--safe-links` bypass in `--backup`: when symlinks can be hard-linked,
357 `make_backup()`'s link/rename fast path hard-linked an unsafe (out-of-tree)
358 symlink into the backup area and skipped the `safe_symlinks` check the copy
359 path applies, silently preserving a link `--safe-links` was meant to drop. The
360 safe-links check now runs before the fast path, and a symlink whose target is
361 unreadable is failed closed rather than backed up unchecked. Reported by
362 Leonid Bugaev.
363
364 - Extend the operator-directory ownership walk to the backup leaf sinks:
365 `do_symlink_at()` (backing a symlink up into an operator `--backup-dir`) and
366 `do_rmdir_at()` (removing a pre-existing backup directory) now resolve their
367 parent through the same ownership walk, so a foreign-owned parent symlink no
368 longer redirects the backup symlink-create or directory-removal outside the
369 backup tree. `--insecure-links` (or a module's `insecure links = yes`) restores
370 the legacy follow. Reported by Omar Elsayed (seks99x).
371
372 - Confine an absolute operator source/destination through the ownership walk in
373 `robust_rename()`'s cross-filesystem (EXDEV) copy fallback, so a raced parent
374 symlink cannot redirect the fallback copy or its source unlink out of the tree.
375 Reported by Leonid Bugaev.
376
377 - Bound the number of equal-weak-checksum blocks examined per offset in
378 `hash_search()` (issue #217), so a crafted or degenerate checksum set with a
379 very long equal-checksum chain cannot drive the sender's per-offset
380 match-verify into a quadratic blow-up (CPU DoS). Fix by Stuart Inglis.
381
382 ### BUG FIXES:
383
384 - Fix an off-by-one in `clean_fname()`'s `..`-collapse path normalization.
385 Reported by Leonid Bugaev.
386
387 - The AVX2 rolling-checksum assembly (`--enable-roll-asm`) read up to 64 bytes
388 past the end of the buffer it was given. The loop is software-pipelined and
389 preloaded the 64 bytes after the ones it was folding in, so its last iteration
390 always reached beyond the data -- the remainder is by construction under 64
391 bytes. It normally landed in slack inside rsync's map window and went
392 unnoticed; where the buffer ended at a page boundary it was a SIGSEGV mid
393 transfer, reported on macOS x86-64 by Roland Kletzing. Reported checksums are
394 unchanged.
395
396 - `--link-dest` no longer fails the transfer when the destination refuses to
397 hard-link a symlink, device node, FIFO or socket. Whether rsync hard-links
398 those at all was decided at build time, on whatever filesystem the source tree
399 happened to sit on, and one host can hold both answers -- macOS builds on
400 APFS, which can, and backs up to HFS+, which returns ENOTSUP. Such an entry
401 is now copied, exactly as it already is in a build that cannot link them and
402 as a regular file in the same position already was; the run used to exit 23
403 even though the entry was then created correctly. The fallback covers any
404 refusal, since the error does not identify one on its own: link(2) documents
405 EPERM both for a filesystem without hard links and for a permission refusal.
406 Still outstanding: under `-H`, a group of such entries hard-linked to each
407 other also needs a link within the destination, and where the destination
408 cannot hard-link the type at all, the members after the first are still lost.
409
410 - `--out-format` / `--log-file-format` now emit a literal `%` for `%%` instead of
411 mis-parsing the following character (added by Leonid Bugaev); a follow-up bounds
412 `log_format_has()`'s width-digit scan to match `log_formatted()`, closing a `%C`
413 read past the checksum field.
414
415 - A CVS `.cvsignore` (or `-C`) file containing a `!` clear-list token no longer
416 aborts with a spurious "rule has trailing characters" error. Reported by
417 Leonid Bugaev.
418
419 - `--chmod=a+s` now sets both the setuid and setgid bits, matching `chmod(1)`
420 (it previously set setuid only). Reported by Leonid Bugaev.
421
422 - Case-insensitive wildcard matching (used by daemon `hosts allow`/`hosts deny`
423 rules) now folds characters inside a `[...]` bracket expression, not just
424 literal pattern characters. Reported by Leonid Bugaev.
425
426 ### BEHAVIOR CHANGES:
427
428 - A non-daemon receiver follows an operator-named symlinked destination directory
429 only when the symlink is owned by root or the running user (e.g. `rsync -a src/
430 /backup/` where `/backup -> /mnt/disk`); a destination symlinked by another uid
431 is now refused, closing a chdir TOCTOU where an attacker raced the named
432 destination into a symlink. `--insecure-links` restores the unconditional
433 follow.
434
435 - On platforms without a race-safe way to create a unix socket in a subdirectory
436 (the BSDs, macOS, Solaris, which lack `bindat()`), a nested socket transferred
437 under `--specials` is skipped with a warning instead of failing the whole
438 transfer. Top-level sockets are unaffected.
439
440 - `proxy protocol = true` with no `proxy protocol hosts` rejects all connections
441 (fail-closed); the daemon now warns about this at startup.
442
443 - `support/rrsync` in a restricted subdirectory forces `--no-D` (device/special
444 semantics are stripped, so a plain `rsync -a` still works) and denies
445 `--copy-unsafe-links`.
446
447 - The path resolver now follows in-tree directory symlinks uniformly on every
448 platform via a single race-free per-component `O_NOFOLLOW` walk, so `-K` /
449 `-L` / `-k` and `-R` through an in-tree symlinked parent behave the same
450 everywhere.
451
452 # NEWS for rsync 3.4.4 (8 Jun 2026)
453
454 ## Changes in this version:
455
456 This is a conservative point release that backports regression fixes
457 on top of 3.4.3. No new features are included.
458
459 ### BUG FIXES:
460
461 - Honour a relative alt-basis directory (e.g. `--link-dest=../sibling`,
462 `--copy-dest`, `--compare-dest`) on a daemon receiver running with
463 `use chroot = no`. Such a path is re-anchored at the module root but
464 was then rejected by the receiver's secure open; it now works where
465 kernel-enforced confinement is available. See the PORTABILITY note
466 below for the platform limitation. Fixes #915.
467
468 - sender: open a module-root-absolute path for a `path = /` module so a
469 daemon serving the filesystem root can satisfy absolute request
470 paths again. Fixes #897.
471
472 - flist: accept the missing-args mode-0 entry in recv_file_entry.
473 Fixes #910.
474
475 - receiver: fix a false "failed verification -- update discarded" when
476 resuming a delta transfer with an absolute `--partial-dir`.
477
478 - receiver: fix a NULL dereference on the delta discard path.
479
480 - generator: cap the block s2length at the negotiated checksum length.
481
482 - main: fix `--mkpath` with `--dry-run` for a file-to-file copy.
483 Fixes #880.
484
485 - daemon: un-backslash escaped option args. Fixes #829.
486
487 - token: drain the matched-block insert deflate. Fixes #951.
488
489 - Fix the "update skips a file of a different type" case and the
490 daemon upload delete stats.
491
492 - alloc: revert "zero all new memory from allocations". Fixes #959.
493
494 - Always clear the stat buffer and validate nanoseconds before use.
495
496 ### PORTABILITY / BUILD:
497
498 - The relative alt-basis fix for daemon receivers (#915) relies on
499 kernel "stay below dirfd" path resolution -- `openat2(RESOLVE_BENEATH)`
500 on Linux 5.6+, or `openat()` with `O_RESOLVE_BENEATH` on FreeBSD 13+
501 and macOS 15+. On platforms that lack it (Solaris, OpenBSD, NetBSD,
502 Cygwin and older Linux) `secure_relative_open()` deliberately rejects
503 any path with a `..` component, so relative alt-basis directories
504 remain unavailable there -- function traded for safety, matching the
505 trade-off already documented for the #715 fix. Absolute alt-basis
506 paths are unaffected on every platform.
507
508 - openat2 is now autodetected at configure time (HAVE_OPENAT2): the
509 `openat2(RESOLVE_BENEATH)` resolver is compiled in only when both
510 `<linux/openat2.h>` and the `SYS_openat2` syscall number are present,
511 fixing the build on older kernels/headers. Fixes #924, #905, #900,
512 #904.
513
514 - Fall back to do_mknod() when mknodat() / mkfifoat() are unavailable.
515 Fixes #896.
516
517 - Install generated manpages correctly in an out-of-tree build.
518
519 ### DEVELOPER RELATED:
520
521 - Added a CI workflow that builds this stable branch and runs the
522 `v34-stable-testsuite` regression suite against the built binary,
523 giving regression coverage without importing the full master test
524 suite into the stable branch.
525
526 - Added a check-progs target for fleettest and extended the build
527 workflows to run on `*-stable` release branches.
528
529 ### CREDITS:
530
531 Thanks to everyone who helped with this release:
532
533 - Code contributions from Zen Dodd (steadytao), Mike-Goutokuji,
534 pterror, and Stiliyan Tonev (Bark).
535
536 - Zen Dodd (steadytao) also reviewed the 3.4.4 backport set (PR #980).
537
538 - Bug reports from @mmayer (#924), @fda77 (#905), @darkshram (#900),
539 @ketas (#904), @pkzc (#880), @brabalan (#951), @elcamlost (#829),
540 @debohman (#896), @guilherme-puida (#959), @fufu65 (#915),
541 @JetAppsClark (#928), @moonlitbugs (#897), @mgkeeley (#910), and
542 @sylvain-ilm (#724, #725).
543
544 # NEWS for rsync 3.4.3 (20 May 2026)
545
546 ## Changes in this version:
547
548 ### SECURITY FIXES:
549
550 Six CVEs are fixed in this release. All six are assigned by
551 VulnCheck as CNA. Affected versions are 3.4.2 and earlier in every
552 case. Three of the six (CVE-2026-29518, CVE-2026-43617,
553 CVE-2026-43619) require non-default daemon configuration to reach:
554 the first and third need `use chroot = no` for a module, the second
555 needs `daemon chroot = ...` set in rsyncd.conf. Two (CVE-2026-43618,
556 CVE-2026-43620) are reachable from a normal pull or a normal
557 authenticated daemon connection. The sixth (CVE-2026-45232) is
558 reachable only when `RSYNC_PROXY` is set and the proxy (or a MITM)
559 returns a pathological response. Many thanks to the external
560 researchers who reported these issues.
561
562 - CVE-2026-29518 (CVSS v4.0 7.3, HIGH): TOCTOU symlink race condition
563 allowing local privilege escalation in daemon mode without chroot.
564 An rsync daemon configured with "use chroot = no" was exposed to a
565 time-of-check / time-of-use race on parent path components: a local
566 attacker with write access to a module could replace a parent
567 directory component with a symlink between the receiver's check and
568 its open(), redirecting reads (basis-file disclosure) and writes
569 (file overwrite) outside the module. Default "use chroot = yes" is
570 not exposed. `secure_relative_open()` (added in 3.4.0 for
571 CVE-2024-12086) was previously unused in the daemon-no-chroot
572 case; the fix enables it there and reroutes the sender's
573 read-path opens through it. Reported by Nullx3D (Batuhan Sancak),
574 Damien Neil and Michael Stapelberg.
575
576 - CVE-2026-43617 (CVSS v3.1 4.8, MEDIUM): Hostname/ACL bypass on an
577 rsync daemon configured with `daemon chroot = /X` in rsyncd.conf
578 when the chroot tree lacks DNS resolution support. The
579 reverse-DNS lookup of the connecting client was performed *after*
580 the daemon chroot had been entered; if /X did not contain the
581 libc resolver fixtures (`/etc/resolv.conf`, `/etc/nsswitch.conf`,
582 `/etc/hosts`, NSS service modules) the lookup failed and the
583 connecting hostname was set to "UNKNOWN", causing hostname-based
584 deny rules to silently fail open. IP-based ACLs are unaffected.
585 The per-module `use chroot` setting is unrelated to this issue.
586 The fix performs the lookup before entering the daemon chroot.
587 Reported by MegaManSec.
588
589 - CVE-2026-43618 (CVSS v3.1 8.1, HIGH): Integer overflow in the
590 compressed-token decoder enabling remote memory disclosure to an
591 authenticated daemon peer. The receiver accumulated a 32-bit
592 signed counter without overflow checking; a malicious sender could
593 trigger an overflow that, with careful manipulation, leaked process
594 memory contents to the attacker -- environment variables,
595 passwords, heap and library pointers -- significantly weakening
596 ASLR. The fix bounds the counter and adds wire-input validation in
597 several adjacent places (defence-in-depth). Workaround for older
598 releases: `refuse options = compress` in rsyncd.conf. Reported by
599 Omar Elsayed.
600
601 - CVE-2026-43619 (CVSS v3.1 6.3, MEDIUM): Symlink races on path-based
602 system calls in "use chroot = no" daemon mode (generalisation of
603 CVE-2026-29518). Earlier fixes for symlink races on the receiver's
604 open() call missed the same race class on every other path-based
605 system call: chmod, lchown, utimes, rename, unlink, mkdir, symlink,
606 mknod, link, rmdir and lstat. The fix routes each affected
607 path-based syscall through a parent dirfd opened under
608 RESOLVE_BENEATH-equivalent kernel-enforced confinement (openat2 on
609 Linux 5.6+, O_RESOLVE_BENEATH on FreeBSD 13+ and macOS 15+,
610 per-component O_NOFOLLOW walk elsewhere). Default "use chroot =
611 yes" is not exposed. Reported by Andrew Tridgell as a follow-on
612 audit of CVE-2026-29518.
613
614 - CVE-2026-43620 (CVSS v3.1 6.5, MEDIUM): Out-of-bounds read in the
615 receiver's recv_files() enabling remote denial-of-service of any
616 client pulling from a malicious server (incomplete fix of commit
617 797e17f). The earlier parent_ndx<0 guard added to send_files() was
618 not applied to the visually-identical block in recv_files(). A
619 malicious rsync server can drive any connecting client into a
620 deterministic SIGSEGV by setting CF_INC_RECURSE in the
621 compatibility flags and sending a crafted file list and transfer
622 record. inc_recurse is the protocol-30+ default, so no special
623 options are required on the victim. Workaround for older
624 releases: `--no-inc-recursive` on the client. Reported by Pratham
625 Gupta.
626
627 - CVE-2026-45232 (CVSS v3.1 3.1, LOW): Off-by-one out-of-bounds stack
628 write in the rsync client's HTTP CONNECT proxy handler
629 (`establish_proxy_connection()` in `socket.c`). After issuing the
630 CONNECT request, rsync read the proxy's first response line one
631 byte at a time into a 1024-byte stack buffer with the bound
632 `cp < &buffer[sizeof buffer - 1]`. If the proxy (or a MITM in
633 front of it) returned 1023+ bytes on that first line without a
634 newline terminator, `cp` exited the loop pointing at a buffer slot
635 the loop never wrote, leaving `*cp` holding stale stack data from
636 the earlier `snprintf()` of the outgoing CONNECT request. The
637 post-loop logic then wrote a single `\0` one byte past the end of
638 the buffer on the stack. Reach is client-side only, and only when
639 `RSYNC_PROXY` is set so rsync tunnels an `rsync://` connection
640 through an HTTP CONNECT proxy. The written byte is always `\0`
641 and the offset is fixed by the buffer size, not attacker-chosen,
642 so this is not an arbitrary-write primitive: practical impact is
643 corruption of one adjacent stack byte and possible later
644 misbehaviour or crash. The fix detects the "buffer filled without
645 finding `\n`" case explicitly by position and refuses the response
646 with "proxy response line too long". Reported by Aisle Research
647 via Michal Ruprich (rsync-3.4.1-2.el10 QE).
648
649 In addition to the six CVE fixes, this release adds defence-in-depth
650 hardening on several adjacent paths: bounded wire-supplied counts and
651 lengths in flist/io/acls/xattrs, a guard against length underflow in
652 cumulative `snprintf()` callers, a parent block-index bounds check on
653 the receiver, a NULL check in `read_delay_line()`, a lower ceiling on
654 `MAX_WIRE_DEL_STAT` to avoid signed-int overflow in the
655 `read_del_stats()` accumulator, rejection of hyphen-prefixed
656 remote-shell hostnames (defence-in-depth against argv-injection in
657 tooling that forwards untrusted input into the hostspec position;
658 reported by Aisle Research via Michal Ruprich), and a NULL-check on
659 `localtime_r()` in `timestring()` to keep a malicious server from
660 crashing the client by advertising a file with an out-of-range
661 modtime.
662
663 ### BUG FIXES:
664
665 - Fixed a bypass of `--safe-links` when `--backup` is also used on a system that supports hard-linking symlinks (Linux, macOS). An escaping symlink that should have been skipped was silently preserved in the backup area.
666
667 - Fixed a spurious abort when using `-C` (cvs-exclude) mode with a `.cvsignore` file that contained a `!` (clear-list) token.
668
669 - Updated the `--max-alloc` documentation to reflect that 0 is now rejected (CVE-2026-53794).
670
671 - Fixed the EXIT VALUES table: removed nonexistent code 6, added missing codes 15/16/19, corrected SIGUSR1 classification.
672
673 - Fixed a regression introduced by the 3.4.0 secure_relative_open()
674 CVE fix where legitimate directory symlinks on the receiver side
675 (e.g. when using `-K` / `--copy-dirlinks`) caused "failed
676 verification -- update discarded" errors on delta transfers. The
677 old code rejected every symlink in the path with a per-component
678 `O_NOFOLLOW` walk; the receiver now uses kernel-enforced "stay
679 below dirfd" path resolution where available. Fixes #715.
680
681 ### PORTABILITY / BUILD:
682
683 - secure_relative_open() now uses `openat2(RESOLVE_BENEATH |
684 RESOLVE_NO_MAGICLINKS)` on Linux 5.6+, and `openat()` with
685 `O_RESOLVE_BENEATH` on FreeBSD 13+ and macOS 15+ (Sequoia) /
686 iOS 18+. The kernel rejects ".." escapes, absolute symlinks, and
687 symlinks whose target lies outside the starting directory, while
688 still following symlinks that resolve within it -- the same
689 trade-off that fixes the issue #715 regression without weakening
690 the original CVE protection. Other platforms (Solaris, OpenBSD,
691 NetBSD, Cygwin) retain the previous per-component `O_NOFOLLOW`
692 walk; on those platforms the issue #715 regression remains
693 visible.
694
695 - testsuite/xattrs: ignore `SUNWattr_*` in the Solaris `xls`
696 helper.
697
698 ### DEVELOPER RELATED:
699
700 - Added testsuite/symlink-dirlink-basis.test (taken from PR #864
701 by Samuel Henrique) covering the issue #715 regression and
702 several edge cases (`--backup`, `--inplace`, `--partial-dir`
703 with protocol < 29, top-level files). The test skips on
704 platforms without a RESOLVE_BENEATH equivalent.
705
706 - Added regression tests for the new security fixes:
707 `chmod-symlink-race.test`, `chdir-symlink-race.test`,
708 `bare-do-open-symlink-race.test`, `alt-dest-symlink-race.test`,
709 `copy-dest-source-symlink.test`, `sender-flist-symlink-leak.test`,
710 `secure-relpath-validation.test`, `daemon-chroot-acl.test` and
711 `daemon-refuse-compress.test`. The symlink-race tests skip on
712 Cygwin, Solaris, OpenBSD and NetBSD (no RESOLVE_BENEATH
713 equivalent on those platforms).
714
715 - runtests.py now errors early with a clear message when any of
716 the test helper programs (`tls`, `trimslash`, `t_unsafe`,
717 `t_chmod_secure`, `t_secure_relpath`, `wildtest`, `getgroups`,
718 `getfsdev`) are missing, instead of letting many tests fail with
719 confusing "not found" errors.
720
721 - Added OpenBSD and NetBSD CI jobs that run `make check` on those
722 platforms.
723
724 - Added Ubuntu 22.04 and AlmaLinux 8 CI workflows so future
725 backports to the two mainstream LTS families build and test on
726 the same CI surface as trunk.
727
728 - testsuite/protected-regular.test now runs unprivileged via
729 `unshare` with user-namespace UID mapping, falling back to skip
730 if `unshare`/`uidmap` is not available; previously it required
731 real root.
732
733 - Added `symlink-dirlink-basis` to the Cygwin CI's expected-skipped
734 list.
735
736 - Removed the old release system (replaced by the new release
737 script in 3.4.2).
738
739 ------------------------------------------------------------------------------
740
741 # NEWS for rsync 3.4.2 (28 Apr 2026)
742
743 ## Changes in this version:
744
745 ### SECURITY RELATED:
746
747 Several security-relevant defects were reported and fixed since 3.4.1.
748 None were assigned a CVE — rsync's fork-per-connection design scopes
749 the impact of each of these to the attacker's own connection, which is
750 equivalent to the client closing the socket itself — but they are
751 fixed here as a matter of hygiene and to reduce the chances of a
752 future exploitable combination. Many thanks to the external
753 researchers who reported these issues.
754
755 - Fixed a signed integer overflow in the PROXY protocol v2 header
756 parser: a negative `len` field could bypass the size check and cause
757 a stack buffer overflow in `read_buf()`. Reported by John Walker of
758 ZeroPath.
759
760 - Fixed an invalid access to the files array. Reported by Calum
761 Hutton of Rapid7.
762
763 - Reject negative token values in the compressed-stream token
764 decoder; a negative value could cause callers to misinterpret a
765 missing data pointer as literal data. Reported by Will Sergeant.
766
767 - Fixed the element count passed to the xattr `qsort()` (see
768 https://www.openwall.com/lists/oss-security/2026/04/16/2).
769
770 - Fixed a buffer underflow in `clean_fname()`, and added a regression
771 test.
772
773 - Fixed an uninitialized `mul_one` in the AVX2 get_checksum1 path
774 (undefined behaviour), and added a SIMD-checksum self-test that
775 cross-checks SSE2, SSSE3 and AVX2 against the C reference on both
776 aligned and unaligned buffers.
777
778 - Fixed an uninitialized `buf1` on the first call to
779 `get_checksum2()` in the MD4 path (fixes #673).
780
781 - Zero all new memory from internal allocations: `my_alloc()` now uses
782 `calloc`, and `expand_item_list()` zeros the expanded portion after
783 `realloc`. This gives more predictable behaviour if stale or
784 uninitialised memory is ever accidentally read.
785
786 ### BUG FIXES:
787
788 - Call `tzset()` before chroot so that log timestamps continue to
789 reflect the configured local timezone after the daemon chroots
790 (glibc needs `/etc/localtime`, which is unreachable post-chroot).
791
792 - Use the correct time when writing to the log file.
793
794 - Do not clear `DISPLAY` unconditionally.
795
796 - Fixed a Y2038 bug in `syscall.c` by replacing the `Int32x32To64`
797 macro (which truncates its arguments to 32 bits) with a plain
798 64-bit multiplication.
799
800 - Fixed ACL ID mapping for non-root users (closes #618).
801
802 - Fixed handling of objects with many xattrs on FreeBSD.
803
804 - Fixed `--open-noatime` not taking effect when opening regular
805 files: `O_NOATIME` is now also passed to `do_open_nofollow()`, which
806 has been used for regular files since the CVE fix "fixed symlink
807 race condition in sender".
808
809 - Ignore "directory has vanished" errors.
810
811 - Fixed the removal of multiple leading slashes.
812
813 - Added the missing `--dirs` long option.
814
815 - Fixed a segfault if `poptGetContext()` returns NULL (e.g. under
816 OOM) by not passing NULL to `poptReadDefaultConfig()`. Reported by
817 Ronnie Sahlberg; found with `malloc-fail-tester`.
818
819 - Fixed a build error on ia64 NonStop (which treats missing
820 prototypes as an error, not a warning).
821
822 - Fixed a flaky hardlinks test (fixes #735).
823
824 ### ENHANCEMENTS:
825
826 - Added multi-threaded `zstd` compression, gated by a new
827 `--compress-threads=N` option, with validation and man-page
828 coverage.
829
830 - Documented the `temp dir` parameter in the rsyncd.conf man page
831 (fixes #820).
832
833 - Improved rendering of interior dashes in long-option names in
834 `md-convert` (perhaps fixes #686).
835
836 ### PORTABILITY / BUILD:
837
838 - Fixed glibc 2.43 const-preserving overloads of `strtok()`,
839 `strchr()` etc. by declaring the affected locals with the right
840 constness. Contributed by Holger Hoffstätte.
841
842 - Converted the bundled zlib 1.2.8 from K&R-style function
843 definitions to ANSI prototypes, so it builds with clang 16+.
844
845 - Avoid using `bool` as an identifier; it is a keyword in C23.
846
847 - `configure.ac`: check for xattr functions in libc first and only
848 fall back to `-lattr`, avoiding spurious overlinking when `-lattr`
849 happens to be installed. Contributed by Eli Schwartz.
850
851 - Made the build reproducible by honouring `SOURCE_DATE_EPOCH` for
852 the manpage date.
853
854 - Removed obsolete `popt/findme.c` and `popt/findme.h` that upstream
855 popt 1.14 folded into `popt.c` (fixes #710). Contributed by Alan
856 Coopersmith.
857
858 ### INTERNAL:
859
860 - Made many module-global variables `const` so they can live in
861 `.rodata` and enable additional compiler optimization.
862
863 ### DEVELOPER RELATED:
864
865 - Replaced `runtests.sh` with `runtests.py`, a Python test runner
866 that supports `--valgrind` (with per-process log files so valgrind
867 output no longer interferes with output comparisons) and
868 `-j/--parallel` execution for roughly a 7× speed-up on typical
869 hardware.
870
871 - Added a SIMD checksum self-test and a `clean-fname-underflow`
872 regression test.
873
874 - Various CI fixes for macOS and Cygwin (including adding
875 `simd-checksum` to the expected-skipped lists on platforms without
876 SIMD), and tests now run on `ubuntu-latest`.
877
878 - removed support for the unmaintained rsync-patches archive
879
880 ------------------------------------------------------------------------------
881
882 # NEWS for rsync 3.4.1 (16 Jan 2025)
883
884 Release 3.4.1 is a fix for regressions introduced in 3.4.0
885
886 ## Changes in this version:
887
888 ### BUG FIXES:
889
890 - fixed handling of -H flag with conflict in internal flag values
891
892 - fixed a user after free in logging of failed rename
893
894 - fixed build on systems without openat()
895
896 - removed dependency on alloca() in bundled popt
897
898 ### DEVELOPER RELATED:
899
900 - fix to permissions handling in the developer release script
901
902 ------------------------------------------------------------------------------
903
904 # NEWS for rsync 3.4.0 (15 Jan 2025)
905
906 Release 3.4.0 is a security release that fixes a number of important vulnerabilities.
907
908 For more details on the vulnerabilities please see the CERT report
909 https://kb.cert.org/vuls/id/952657
910
911 ## Changes in this version:
912
913 ### PROTOCOL NUMBER:
914
915 - The protocol number was changed to 32 to make it easier for
916 administrators to check their servers have been updated
917
918 ### SECURITY FIXES:
919
920 Many thanks to Simon Scannell, Pedro Gallegos, and Jasiel Spelman at
921 Google Cloud Vulnerability Research and Aleksei Gorban (Loqpa) for
922 discovering these vulnerabilities and working with the rsync project
923 to develop and test fixes.
924
925 - CVE-2024-12084 - Heap Buffer Overflow in Checksum Parsing.
926
927 - CVE-2024-12085 - Info Leak via uninitialized Stack contents defeats ASLR.
928
929 - CVE-2024-12086 - Server leaks arbitrary client files.
930
931 - CVE-2024-12087 - Server can make client write files outside of destination directory using symbolic links.
932
933 - CVE-2024-12088 - --safe-links Bypass.
934
935 - CVE-2024-12747 - symlink race condition.
936
937 ### BUG FIXES:
938
939 - Fixed the included popt to avoid a memory error on modern gcc versions.
940
941 - Fixed an incorrect extern variable's type that caused an ACL issue on macOS.
942
943 - Fixed IPv6 configure check
944
945 ### INTERNAL:
946
947 - Updated included popt to version 1.19.
948
949 ### DEVELOPER RELATED:
950
951 - Various improvements to the release scripts and git setup.
952
953 - Improved packaging/var-checker to identify variable type issues.
954
955 - added FreeBSD and Solaris CI builds
956
957 ------------------------------------------------------------------------------
958
959 # NEWS for rsync 3.3.0 (6 Apr 2024)
960
961 ## Changes in this version:
962
963 ### BUG FIXES:
964
965 - Fixed a bug with `--sparse --inplace` where a trailing gap in the source
966 file would not clear out the trailing data in the destination file.
967
968 - Fixed an buffer overflow in the checksum2 code if SHA1 is being used for
969 the checksum2 algorithm.
970
971 - Fixed an issue when rsync is compiled using `_FORTIFY_SOURCE` so that the
972 extra tests don't complain about a strlcpy() limit value (which was too
973 large, even though it wasn't possible for the larger value to cause an
974 overflow).
975
976 - Add a backtick to the list of characters that the filename quoting needs to
977 escape using backslashes.
978
979 - Fixed a string-comparison issue in the internal handling of `--progress` (a
980 locale such as tr_TR.utf-8 needed the internal triggering of `--info` options
981 to use upper-case flag names to ensure that they match).
982
983 - Make sure that a local transfer marks the sender side as trusted.
984
985 - Change the argv handling to work with a newer popt library -- one that likes
986 to free more data than it used to.
987
988 - Rsync now calls `OpenSSL_add_all_algorithms()` when compiled against an older
989 openssl library.
990
991 - Fixed a problem in the daemon auth for older protocols (29 and before) if the
992 openssl library is being used to compute MD4 checksums.
993
994 - Fixed `rsync -VV` on Cygwin -- it needed a flush of stdout.
995
996 - Fixed an old stats bug that counted devices as symlinks.
997
998 ### ENHANCEMENTS:
999
1000 - Enhanced rrsync with the `-no-overwrite` option that allows you to ensure
1001 that existing files on your restricted but writable directory can't be
1002 modified.
1003
1004 - Enhanced the manpages to mark links with .UR & .UE. If your nroff doesn't
1005 support these idioms, touch the file `.md2man-force` in the source directory
1006 so that `md-convert` gets called with the `--force-link-text` option, and
1007 that should ensure that your manpages are still readable even with the
1008 ignored markup.
1009
1010 - Some manpage improvements on the handling of [global] modules.
1011
1012 - Changed the mapfrom & mapto perl scripts (in the support dir) into a single
1013 python script named idmap. Converted a couple more perl scripts into python.
1014
1015 - Changed the mnt-excl perl script (in the support dir) into a python script.
1016
1017 ### DEVELOPER RELATED:
1018
1019 - Updated config.guess (timestamp 2023-01-01) and config.sub (timestamp
1020 2023-01-21).
1021
1022 ------------------------------------------------------------------------------
1023
1024 # NEWS for rsync 3.2.7 (20 Oct 2022)
1025
1026 ## Changes in this version:
1027
1028 ### BUG FIXES:
1029
1030 - Fixed the client-side validating of the remote sender's filtering behavior.
1031
1032 - More fixes for the "unrequested file-list name" name, including a copy of
1033 "/" with `--relative` enabled and a copy with a lot of related paths with
1034 `--relative` enabled (often derived from a `--files-from` list).
1035
1036 - When rsync gets an unpack error on an ACL, mention the filename.
1037
1038 - Avoid over-setting sanitize_paths when a daemon is serving "/" (even if
1039 "use chroot" is false).
1040
1041 ### ENHANCEMENTS:
1042
1043 - Added negotiated daemon-auth support that allows a stronger checksum digest
1044 to be used to validate a user's login to the daemon. Added SHA512, SHA256,
1045 and SHA1 digests to MD5 & MD4. These new digests are at the highest priority
1046 in the new daemon-auth negotiation list.
1047
1048 - Added support for the SHA1 digest in file checksums. While this tends to be
1049 overkill, it is available if someone really needs it. This overly-long
1050 checksum is at the lowest priority in the normal checksum negotiation list.
1051 See [`--checksum-choice`](rsync.1#opt) (`--cc`) and the `RSYNC_CHECKSUM_LIST`
1052 environment var for how to customize this.
1053
1054 - Improved the xattr hash table to use a 64-bit key without slowing down the
1055 key's computation. This should make extra sure that a hash collision doesn't
1056 happen.
1057
1058 - If the `--version` option is repeated (e.g. `-VV`) then the information is
1059 output in a (still readable) JSON format. Client side only.
1060
1061 - The script `support/json-rsync-version` is available to get the JSON style
1062 version output from any rsync. The script accepts either text on stdin
1063 **or** an arg that specifies an rsync executable to run with a doubled
1064 `--version` option. If the text we get isn't already in JSON format, it is
1065 converted. Newer rsync versions will provide more complete json info than
1066 older rsync versions. Various tweaks are made to keep the flag names
1067 consistent across versions.
1068
1069 - The [`use chroot`](rsyncd.conf.5#) daemon parameter now defaults to "unset"
1070 so that rsync can use chroot when it works and a sanitized copy when chroot
1071 is not supported (e.g., for a non-root daemon). Explicitly setting the
1072 parameter to true or false (on or off) behaves the same way as before.
1073
1074 - The `--fuzzy` option was optimized a bit to try to cut down on the amount of
1075 computations when considering a big pool of files. The simple heuristic from
1076 Kenneth Finnegan resulted in about a 2x speedup.
1077
1078 - If rsync is forced to use protocol 29 or before (perhaps due to talking to an
1079 rsync before 3.0.0), the modify time of a file is limited to 4-bytes. Rsync
1080 now interprets this value as an unsigned integer so that a current year past
1081 2038 can continue to be represented. This does mean that years prior to 1970
1082 cannot be represented in an older protocol, but this trade-off seems like the
1083 right choice given that (1) 2038 is very rapidly approaching, and (2) newer
1084 protocols support a much wider range of old and new dates.
1085
1086 - The rsync client now treats an empty destination arg as an error, just like
1087 it does for an empty source arg. This doesn't affect a `host:` arg (which is
1088 treated the same as `host:.`) since the arg is not completely empty. The use
1089 of [`--old-args`](rsync.1#opt) (including via `RSYNC_OLD_ARGS`) allows the
1090 prior behavior of treating an empty destination arg as a ".".
1091
1092 ### PACKAGING RELATED:
1093
1094 - The checksum code now uses openssl's EVP methods, which gets rid of various
1095 deprecation warnings and makes it easy to support more digest methods. On
1096 newer systems, the MD4 digest is marked as legacy in the openssl code, which
1097 makes openssl refuse to support it via EVP. You can choose to ignore this
1098 and allow rsync's MD4 code to be used for older rsync connections (when
1099 talking to an rsync prior to 3.0.0) or you can choose to configure rsync to
1100 tell openssl to enable legacy algorithms (see below).
1101
1102 - A simple openssl config file is supplied that can be installed for rsync to
1103 use. If you install packaging/openssl-rsync.cnf to a public spot (such as
1104 `/etc/ssl/openssl-rsync.cnf`) and then run configure with the option
1105 `--with-openssl-conf=/path/name.cnf`, this will cause rsync to export the
1106 configured path in the OPENSSL_CONF environment variable (when the variable
1107 is not already set). This will enable openssl's MD4 code for rsync to use.
1108
1109 - The packager may wish to include an explicit "use chroot = true" in the top
1110 section of their supplied /etc/rsyncd.conf file if the daemon is being
1111 installed to run as the root user (though rsync should behave the same even
1112 with the value unset, a little extra paranoia doesn't hurt).
1113
1114 - I've noticed that some packagers haven't installed support/nameconvert for
1115 users to use in their chrooted rsync configs. Even if it is not installed
1116 as an executable script (to avoid a python3 dependency) it would be good to
1117 install it with the other rsync-related support scripts.
1118
1119 - It would be good to add support/json-rsync-version to the list of installed
1120 support scripts.
1121
1122 ------------------------------------------------------------------------------
1123
1124 # NEWS for rsync 3.2.6 (9 Sep 2022)
1125
1126 ## Changes in this version:
1127
1128 ### BUG FIXES:
1129
1130 - More path-cleaning improvements in the file-list validation code to avoid
1131 rejecting of valid args.
1132
1133 - A file-list validation fix for a [`--files-from`](rsync.1#opt) file that ends
1134 without a line-terminating character.
1135
1136 - Added a safety check that prevents the sender from removing destination files
1137 when a local copy using [`--remove-source-files`](rsync.1#opt) has some files
1138 that are shared between the sending & receiving hierarchies, including the
1139 case where the source dir & destination dir are identical.
1140
1141 - Fixed a bug in the internal MD4 checksum code that could cause the digest
1142 to be sporadically incorrect (the openssl version was/is fine).
1143
1144 - A minor tweak to rrsync added "copy-devices" to the list of known args, but
1145 left it disabled by default.
1146
1147 ### ENHANCEMENTS:
1148
1149 - Rename `--protect-args` to [`--secluded-args`](rsync.1#opt) to make it
1150 clearer how it differs from the default backslash-escaped arg-protecting
1151 behavior of rsync. The old option names are still accepted. The
1152 environment-variable override did not change its name.
1153
1154 ### PACKAGING RELATED:
1155
1156 - The configure option `--with-protected-args` was renamed to
1157 `--with-secluded-args`. This option makes `--secluded-args` the default
1158 rsync behavior instead of using backslash escaping for protecting args.
1159
1160 - The mkgitver script now makes sure that a `.git` dir/file is in the top-level
1161 source dir before calling `git describe`. It also runs a basic check on the
1162 version value. This should avoid using an unrelated git description for
1163 rsync's version.
1164
1165 ### DEVELOPER RELATED:
1166
1167 - The configure script no longer sets the -pedantic-errors CFLAG (which it
1168 used to try to do only for gcc).
1169
1170 - The name_num_obj struct was modified to allow its dynamic name_num_item list
1171 to be initialized in a better way.
1172
1173 ------------------------------------------------------------------------------
1174
1175 # NEWS for rsync 3.2.5 (14 Aug 2022)
1176
1177 ## Changes in this version:
1178
1179 ### SECURITY FIXES:
1180
1181 - Added some file-list safety checking that helps to ensure that a rogue
1182 sending rsync can't add unrequested top-level names and/or include recursive
1183 names that should have been excluded by the sender. These extra safety
1184 checks only require the receiver rsync to be updated. When dealing with an
1185 untrusted sending host, it is safest to copy into a dedicated destination
1186 directory for the remote content (i.e. don't copy into a destination
1187 directory that contains files that aren't from the remote host unless you
1188 trust the remote host). Fixes CVE-2022-29154.
1189
1190 - A fix for CVE-2022-37434 in the bundled zlib (buffer overflow issue).
1191
1192 ### BUG FIXES:
1193
1194 - Fixed the handling of filenames specified with backslash-quoted wildcards
1195 when the default remote-arg-escaping is enabled.
1196
1197 - Fixed the configure check for signed char that was causing a host that
1198 defaults to unsigned characters to generate bogus rolling checksums. This
1199 made rsync send mostly literal data for a copy instead of finding matching
1200 data in the receiver's basis file (for a file that contains high-bit
1201 characters).
1202
1203 - Lots of manpage improvements, including an attempt to better describe how
1204 include/exclude filters work.
1205
1206 - If rsync is compiled with an xxhash 0.8 library and then moved to a system
1207 with a dynamically linked xxhash 0.7 library, we now detect this and disable
1208 the XX3 hashes (since these routines didn't stabilize until 0.8).
1209
1210 ### ENHANCEMENTS:
1211
1212 - The [`--trust-sender`](rsync.1#opt) option was added as a way to bypass the
1213 extra file-list safety checking (should that be required).
1214
1215 ### PACKAGING RELATED:
1216
1217 - A note to those wanting to patch older rsync versions: the changes in this
1218 release requires the quoted argument change from 3.2.4. Then, you'll want
1219 every single code change from 3.2.5 since there is no fluff in this release.
1220
1221 - The build date that goes into the manpages is now based on the developer's
1222 release date, not on the build's local-timezone interpretation of the date.
1223
1224 ### DEVELOPER RELATED:
1225
1226 - Configure now defaults GETGROUPS_T to gid_t when cross compiling.
1227
1228 - Configure now looks for the bsd/string.h include file in order to fix the
1229 build on a host that has strlcpy() in the main libc but not defined in the
1230 main string.h file.
1231
1232 ------------------------------------------------------------------------------
1233
1234 # NEWS for rsync 3.2.4 (15 Apr 2022)
1235
1236 ## Changes in this version:
1237
1238 ### BEHAVIOR CHANGES:
1239
1240 - A new form of arg protection was added that works similarly to the older
1241 `--protect-args` ([`-s`](rsync.1#opt)) option but in a way that avoids
1242 breaking things like rrsync (the restricted rsync script): rsync now uses
1243 backslash escaping for sending "shell-active" characters to the remote shell
1244 (such as `$(){}<>#&` and others). This includes spaces, so fetching a remote
1245 file via a quoted filename value now works by default without any extra
1246 quoting:
1247
1248 ```shell
1249 rsync -aiv host:'a simple file.pdf' .
1250 ```
1251
1252 Wildcards are not escaped in filename args, but they are escaped in options
1253 like the [`--suffix`](rsync.1#opt) and [`--usermap`](rsync.1#opt) values.
1254
1255 If a script depends on the old arg behavior (perhaps because it quotes or
1256 protects the args already, or perhaps because it expects arg splitting),
1257 there are two easy ways to get things going with a modern rsync: either
1258 `export RSYNC_OLD_ARGS=1` in the script's environment (perhaps in the script
1259 itself) or add the option [`--old-args`](rsync.1#opt) to the rsync commands
1260 that are run. See also the [ADVANCED USAGE](rsync.1#) section of rsync's
1261 manpage for how to use a more modern arg style.
1262
1263 - A long-standing bug was preventing rsync from figuring out the current
1264 locale's decimal point character, which made rsync always output numbers
1265 using the "C" locale. Since this is now fixed in 3.2.4, a script that
1266 parses rsync's decimal numbers (e.g. from the verbose footer) may want to
1267 setup the environment in a way that the output continues to be in the C
1268 locale. For instance, one of the following should work fine:
1269
1270 ```shell
1271 export LC_ALL=C.UTF-8
1272 ```
1273
1274 or if iconv translations are needed:
1275
1276 ```shell
1277 if [ "${LC_ALL:-}" ]; then
1278 export LANG="$LC_ALL"
1279 export LC_CTYPE="$LC_ALL"
1280 unset LC_ALL
1281 fi
1282 export LC_NUMERIC=C.UTF-8
1283 ```
1284
1285 ### SECURITY FIXES:
1286
1287 - A fix for CVE-2018-25032 in the bundled zlib (memory corruption issue).
1288
1289 ### BUG FIXES:
1290
1291 - Fixed a bug with [`--inplace`](rsync.1#opt) + [`--sparse`](rsync.1#opt) (and
1292 a lack of [`--whole-file`](rsync.1#opt)) where the destination file could
1293 get reconstructed with bogus data. Since the bug can also be avoided by
1294 using (the seemingly redundant) [`--no-W`](rsync.1#opt) on the receiving
1295 side, the latest rsync will now send `--no-W` to a remote receiver when this
1296 option combination occurs. If your client rsync is not new enough to do
1297 this for you (or if you're just paranoid), you can manually specify `--no-W
1298 -M--no-W` (when not using [`--whole-file`](rsync.1#opt)) to make sure the
1299 bug is avoided.
1300
1301 - Fixed a bug with [`--mkpath`](rsync.1#opt) if a single-file copy specifies
1302 an existing destination dir with a non-existing destination filename.
1303
1304 - Fixed `--update -vv` to output "is uptodate" instead of "is newer" messages
1305 for files that are being skipped due to an identical modify time. (This was
1306 a new output quirk in 3.2.3.)
1307
1308 - When doing an append transfer, the sending side's file must not get shorter
1309 or it is skipped. Fixes a crash that could occur when the size changes to 0
1310 in the middle of the send negotiations.
1311
1312 - When dealing with special files (see [`--specials`](rsync.1#opt)) in an
1313 alt-dest hierarchy, rsync now checks the non-permission mode bits to ensure
1314 that the 2 special files are really the same before hard-linking them
1315 together.
1316
1317 - Fixed a bug where [`--delay-updates`](rsync.1#opt) with stale partial data
1318 could cause a file to fail to update.
1319
1320 - Fixed a few places that would output an INFO message with
1321 [`--info=NAME`](rsync.1#opt) that should only have been output given
1322 [`--verbose`](rsync.1#opt) or [`--itemize-changes`](rsync.1#opt).
1323
1324 - Avoid a weird failure if you run a local copy with a (useless)
1325 [`--rsh`](rsync.1#opt) option that contains a `V` in the command.
1326
1327 - Fixed a long-standing compression bug where the compression level of the
1328 first file transferred affected the level for all future files. Also, the
1329 per-file compression skipping has apparently never worked, so it is now
1330 documented as being ineffective.
1331
1332 - Fixed a truncate error when a `--write-devices` copy wrote a file onto a
1333 device that was shorter than the device.
1334
1335 - Made `--write-devices` support both `--checksum` and `--no-whole-file` when
1336 copying to a device.
1337
1338 - Improved how the [`--stop-at`](rsync.1#opt), [`--stop-after`](rsync.1#opt),
1339 and (the deprecated) [`--time-limit`](rsync.1#opt) options check to see if
1340 the allowed time is over, which should make rsync exit more consistently.
1341
1342 - Tweak --progress to display "`??:??:??`" when the time-remaining value is so
1343 large as to be meaningless.
1344
1345 - Silence some chmod warnings about symlinks when it looks like we have a
1346 function to set their permissions but they can't really be set.
1347
1348 - Fixed a potential issue in git-set-file-times when handling commits with
1349 high-bit characters in the description & when handling a description that
1350 might mimic the git raw-commit deliniators. (See the support dir.)
1351
1352 - The bundled systemd/rsync.service file now includes `Restart=on-failure`.
1353
1354 ### ENHANCEMENTS:
1355
1356 - Use openssl's `-verify_hostname` option in the rsync-ssl script.
1357
1358 - Added extra info to the "FILENAME exists" output of
1359 [`--ignore-existing`](rsync.1#opt) when [`--info=skip2`](rsync.1#opt) is
1360 used. The skip message becomes "FILENAME exists (INFO)" where the INFO is
1361 one of "type change", "sum change" (requires [`--checksum`](rsync.1#opt)),
1362 "file change" (based on the quick check), "attr change", or "uptodate".
1363 Prior versions only supported `--info=skip1`.
1364
1365 - Added the [`--fsync`](rsync.1#opt) option (promoted from the patches repo).
1366
1367 - Added the [`--copy-devices`](rsync.1#opt) option. Compared to the
1368 historical version from the rsync-patches repo, this version: properly
1369 handles `--checksum`; fixes a truncation bug when doing an `--inplace` copy
1370 onto a longer file; fixes several bugs in the `--itemize` output; and only
1371 the sending side needs the enhanced rsync for the copy to work.
1372
1373 - Reduced memory usage for an incremental transfer that has a bunch of small
1374 directories.
1375
1376 - The rsync daemon can now handle a client address with an implied "%scope"
1377 suffix.
1378
1379 - Added support for [`--atimes`](rsync.1#opt) on macOS and fixed a bug where
1380 it wouldn't work without [`--times`](rsync.1#opt).
1381
1382 - Rsync can now update the xattrs on a read-only file when your user can
1383 temporarily add user-write permission to the file. (It always worked for a
1384 root transfer.)
1385
1386 - Rsync can now work around an [`--inplace`](rsync.1#opt) update of a file
1387 that is being refused due to the Linux fs.protected_regular sysctl setting.
1388
1389 - When [`--chown`](rsync.1#opt), [`--usermap`](rsync.1#opt), or
1390 [`--groupmap`](rsync.1#opt) is specified, rsync now makes sure that the
1391 appropriate [`--owner`](rsync.1#opt) and/or [`--group`](rsync.1#opt) options
1392 are enabled.
1393
1394 - Added the [`--info=NONREG`](rsync.1#opt) setting to control if rsync should
1395 warn about non-regular files in the transfer. This is enabled by default
1396 (keeping the behavior the same as before), so specifying `--info=nonreg0`
1397 can be used to turn the warnings off.
1398
1399 - An optional asm optimization for the rolling checksum from Shark64. Enable
1400 it with `./configure --enable-roll-asm`.
1401
1402 - Using `--debug=FILTER` now outputs a caution message if a filter rule
1403 has trailing whitespace.
1404
1405 - Transformed rrsync into a python script with improvements:
1406 - Security has been beefed up.
1407 - The known rsync options were updated to include recent additions.
1408 - Make rrsync reject [`--copy-links`](rsync.1#opt) (`-L`),
1409 [`--copy-dirlinks`](rsync.1#opt) (`-k`), &
1410 [`--keep-dirlinks`](rsync.1#opt) (`-K`) by default to make it harder to
1411 exploit any out-of-subdir symlinks.
1412 - A new rrsync option of [`-munge`](rrsync.1#opt) tells rrsync to always
1413 enable rsync's [`--munge-links`](rsync.1#opt) option on the server side.
1414 - A new rrsync option of [`-no-lock`](rrsync.1#opt) disables a new
1415 single-use locking idiom that is the default when [`-ro`](rrsync.1#opt) is
1416 not used (useful with [`-munge`](rrsync.1#opt)).
1417 - A new rrsync option of [`-no-del`](rrsync.1#opt) disables all `--remove*`
1418 and `--delete*` rsync options on the server side.
1419 - The log format has been tweaked slightly to add seconds to the timestamp
1420 and to output the command executed as a tuple (making the args clearer).
1421 - An rrsync.1 manpage was added (in the support dir with rrsync).
1422
1423 - Added options to the lsh script to facilitate rrsync testing. (See the
1424 support dir.)
1425
1426 - Transformed the atomic-rsync script into a python script and added the
1427 ability to ignore one or more non-zero exit codes. By default, it now
1428 ignores code 24, the file-vanished exit code. (See the support dir.)
1429
1430 - Transformed the munge-symlinks script into python. (See the support dir.)
1431
1432 - Improved the rsync-no-vanished script to not join stdout & stderr together.
1433 (See the support dir.)
1434
1435 - Work around a glibc bug where lchmod() breaks in a chroot w/o /proc mounted.
1436
1437 - Try to support a client that sent a remote rsync a wacko stderr file handle
1438 (such as an older File::RsyncP perl library used by BackupPC).
1439
1440 - Lots of manpage improvements, including better HTML versions.
1441
1442 ### PACKAGING RELATED:
1443
1444 - Give configure the `--with-rrsync` option if you want `make install` to
1445 install the (now python3) rrsync script and its new manpage.
1446
1447 - If the rrsync script is installed, its package should be changed to depend
1448 on python3 and the (suggested but not mandatory) python3 braceexpand lib.
1449
1450 - When creating a package from a non-release version (w/o a git checkout), the
1451 packager can elect to create git-version.h and define RSYNC_GITVER to the
1452 string they want `--version` to output. (The file is still auto-generated
1453 using the output of `git describe` when building inside a non-shallow git
1454 checkout, though.)
1455
1456 - Renamed configure's `--enable-simd` option to `--enable-roll-simd` and added
1457 the option `--enable-roll-asm` to use the new asm version of the code. Both
1458 are x86_64/amd64 only.
1459
1460 - Renamed configure's `--enable-asm` option to `--enable-md5-asm` to avoid
1461 confusion with the asm option for the rolling checksum. It is also honored
1462 even when openssl crypto is in use. This allows: normal MD4 & MD5, normal
1463 MD4 + asm MD5, openssl MD4 & MD5, or openssl MD4 + asm MD5 depending on the
1464 configure options selected.
1465
1466 - Made SIMD & asm configure checks default to "no" on non-Linux hosts due to
1467 various reports of problems on NetBSD & macOS hosts. These were also
1468 tweaked to allow enabling the feature on a host_cpu of amd64 (was only
1469 allowed on x86_64 before).
1470
1471 - Fixed configure to not fail at the SIMD check when cross-compiling.
1472
1473 - Improved the IPv6 determination in configure.
1474
1475 - Compile the C files with `-pedantic-errors` (when possible) so that we will
1476 get warned if a static initialization overflows in the future (among other
1477 things).
1478
1479 - When linking with an external zlib, rsync renames its `read_buf()` function
1480 to `read_buf_()` to avoid a symbol clash on an unpatched zlib.
1481
1482 - Added a SECURITY.md file.
1483
1484 ### DEVELOPER RELATED:
1485
1486 - Made it easier to write rsync tests that diff the output while also checking
1487 the status code, and used the idiom to improve the existing tests. (See the
1488 `checkdiff` and `checkdiff2` idioms in the `testsuite/*.test` files.
1489
1490 - The packaging scripts & related python lib got some minor enhancements.
1491
1492 ### INTERNAL
1493
1494 - Use setenv() instead of putenv() when it is available.
1495
1496 - Improve the logic in compat.c so that we don't need to try to remember to
1497 sprinkle `!local_server` exceptions throughout the protocol logic.
1498
1499 - One more C99 Flexible Array improvement (started in the last release) and
1500 make use of the C99 `%zd` format string when printing size_t values (when
1501 possible).
1502
1503 - Use mallinfo2() instead of mallinfo(), when available.
1504
1505 ------------------------------------------------------------------------------
1506
1507 # NEWS for rsync 3.2.3 (6 Aug 2020)
1508
1509 ## Changes in this version:
1510
1511 ### BUG FIXES:
1512
1513 - Fixed a bug in the xattr code that was freeing the wrong object when trying
1514 to cleanup the xattr list.
1515
1516 - Fixed a bug in the xattr code that was not leaving room for the "rsync."
1517 prefix in some instances where it needed to be added.
1518
1519 - Restored the ability to use [`--bwlimit=0`](rsync.1#opt) to specify no
1520 bandwidth limit. (It was accidentally broken in 3.2.2.)
1521
1522 - Fixed a bug when combining [`--delete-missing-args`](rsync.1#opt) with
1523 [`--no-implied-dirs`](rsync.1#opt) & [`-R`](rsync.1#opt) where rsync might
1524 create the destination path of a missing arg. The code also avoids some
1525 superfluous warnings for nested paths of removed args.
1526
1527 - Fixed an issue where hard-linked devices could cause the rdev_major value to
1528 get out of sync between the sender and the receiver, which could cause a
1529 device to get created with the wrong major value in its major,minor pair.
1530
1531 - Rsync now complains about a missing [`--temp-dir`](rsync.1#opt) before
1532 starting any file transfers.
1533
1534 - A completely empty source arg is now a fatal error. This doesn't change
1535 the handling of implied dot-dir args such as "localhost:" and such.
1536
1537 ### ENHANCEMENTS:
1538
1539 - Allow [`--max-alloc=0`](rsync.1#opt) to specify no limit to the alloc sanity
1540 check.
1541
1542 - Allow [`--block-size=SIZE`](rsync.1#opt) to specify the size using units
1543 (e.g. "100K").
1544
1545 - The name of the id-0 user & group are now sent to the receiver along with
1546 the other user/group names in the transfer (instead of assuming that both
1547 sides have the same id-0 names).
1548
1549 - Added the [`--stop-after`](rsync.1#opt) and [`--stop-at`](rsync.1#opt)
1550 options (with a [`--time-limit`](rsync.1#opt) alias for `--stop-after`).
1551 This is an enhanced version of the time-limit patch from the patches repo.
1552
1553 - Added the [`name converter`](rsyncd.conf.5#opt) daemon parameter to make it
1554 easier to convert user & group names inside a chrooted daemon module. This
1555 is based on the nameconverter patch with some improvements, including a
1556 tweak to the request protocol (so if you used this patch in the past, be
1557 sure to update your converter script to use newlines instead of null chars).
1558
1559 - Added [`--crtimes`](rsync.1#opt) (`-N`) option for preserving the file's
1560 create time (I believe that this is macOS only at the moment).
1561
1562 - Added [`--mkpath`](rsync.1#opt) option to tell rsync that it should create a
1563 non-existing path component of the destination arg.
1564
1565 - Added [`--stderr=errors|all|client`](rsync.1#opt) to replace the
1566 `--msgs2stderr` and `--no-msgs2stderr` options (which are still accepted).
1567 The default use of stderr was changed to be `--stderr=errors` where all the
1568 processes that have stderr available output directly to stderr, which should
1569 help error messages get to the user more quickly, especially when doing a
1570 push (which includes local copying). This also allows rsync to exit quickly
1571 when a receiver failure occurs, since rsync doesn't need to try to keep the
1572 connection alive long enough for the fatal error to go from the receiver to
1573 the generator to the sender. The old default can be requested via
1574 `--stderr=client`. Also changed is that a non-default stderr mode is
1575 conveyed to the remote rsync (using the older option names) instead of
1576 requiring the user to use [`--remote-option`](rsync.1#opt) (`-M`) to tell
1577 the remote rsync what to do.
1578
1579 - Added the ability to specify "@netgroup" names to the [`hosts
1580 allow`](rsyncd.conf.5#opt) and [`hosts deny`](rsyncd.conf.5#opt) daemon
1581 parameters. This is a finalized version of the netgroup-auth patch from the
1582 patches repo.
1583
1584 - Rsync can now hard-link symlinks on FreeBSD due to it making use of the
1585 linkat() function when it is available.
1586
1587 - Output file+line info on out-of-memory & overflow errors while also avoiding
1588 the output of alternate build-dir path info that is not useful to the user.
1589
1590 - Change configure to know that Cygwin supports Linux xattrs.
1591
1592 - Improved the testsuite on FreeBSD & Cygwin.
1593
1594 - Added some compatibility code for HPE NonStop platforms.
1595
1596 - Improved the INSTALL.md info.
1597
1598 - Added a few more suffixes to the default skip-compress list.
1599
1600 - Improved configure's error handling to notify about several issues at once
1601 instead of one by one (for the newest optional features).
1602
1603 ### INTERNAL:
1604
1605 - Use a simpler overflow check idiom in a few spots.
1606
1607 - Use a C99 Flexible Array for a trailing variable-size filename in a struct
1608 (with a fallback to the old 1-char string kluge for older compilers).
1609
1610 ------------------------------------------------------------------------------
1611
1612 # NEWS for rsync 3.2.2 (4 Jul 2020)
1613
1614 ## Changes in this version:
1615
1616 ### BUG FIXES:
1617
1618 - Avoid a crash when a daemon module enables `transfer logging` without
1619 setting a `log format` value.
1620
1621 - Fixed installing rsync-ssl script from an alternate build dir.
1622
1623 - Fixed the updating of configure.sh from an alternate build dir.
1624
1625 - Apple requires the asm function name to begin with an underscore.
1626
1627 - Avoid a test failure in the daemon test when `--atimes` is disabled.
1628
1629 ### ENHANCEMENTS:
1630
1631 - Allow the server side to restrict checksum & compression choices via the
1632 same environment variables the client uses. The env vars can be divided
1633 into "client list & server list" by the "`&`" char or the same list can
1634 apply to both.
1635
1636 - Simplify how the negotiation environment variables apply when interacting
1637 with an older rsync and also when a list contains only invalid names.
1638
1639 - Do not allow a negotiated checksum or compression choice of "none" unless
1640 the user authorized it via an environment variable or command-line option.
1641
1642 - Added the `--max-alloc=SIZE` option to be able to override the memory
1643 allocator's sanity-check limit. It defaults to 1G (as before) but the error
1644 message when exceeding it specifically mentions the new option so that you
1645 can differentiate an out-of-memory error from a failure of this limit. It
1646 also allows you to specify the value via the RSYNC_MAX_ALLOC environment
1647 variable.
1648
1649 - Add the "open atime" daemon parameter to allow a daemon to always enable or
1650 disable the use of O_NOATIME (the default is to let the user control it).
1651
1652 - The default systemd config was changed to remove the `ProtectHome=on`
1653 setting since rsync is often used to serve files in /home and /root and this
1654 seemed a bit too strict. Feel free to use `systemctl edit rsync` to add
1655 that restriction (or maybe `ProtectHome=read-only`), if you like. See the
1656 3.2.0 NEWS for the other restrictions that were added compared to 3.1.3.
1657
1658 - The memory allocation functions now automatically check for a failure and
1659 die when out of memory. This eliminated some caller-side check-and-die
1660 code and added some missing sanity-checking of allocations.
1661
1662 - Put optimizations into their own list in the `--version` output.
1663
1664 - Improved the manpage a bit more.
1665
1666 ### PACKAGING RELATED:
1667
1668 - Prepared the checksum code for an upcoming xxHash release that provides new
1669 XXH3 (64-bit) & XXH128 (128-bit) checksum routines. These will not be
1670 compiled into rsync until the xxhash v0.8.0 include files are installed on
1671 the build host, and that release is a few weeks away at the time this was
1672 written. So, if it's now the future and you have packaged and installed
1673 xxhash-0.8.0-devel, a fresh rebuild of rsync 3.2.2 will give you the new
1674 checksum routines. Just make sure that the new rsync package depends on
1675 xxhash >= 0.8.0.
1676
1677 ### DEVELOPER RELATED:
1678
1679 - Moved the version number out of configure.ac into its own version.h file so
1680 that we don't need to reconfigure just because the version number changes.
1681
1682 - Moved the daemon parameter list into daemon-parm.txt so that an awk script
1683 can create the interrelated structs and accessors that loadparm.c needs.
1684
1685 ------------------------------------------------------------------------------
1686
1687 # NEWS for rsync 3.2.1 (22 Jun 2020)
1688
1689 ## Changes in this version:
1690
1691 ### BUG FIXES:
1692
1693 - Fixed a potential build issue with the MD5 assembly-language code by
1694 removing some non-portable directives.
1695
1696 - Use the preprocessor with the asm file to ensure that if the code is
1697 unneeded, it doesn't get built.
1698
1699 - Avoid the stack getting set to executable when including the asm code.
1700
1701 - Some improvements in the SIMD configure testing to try to avoid build
1702 issues, such as avoiding a clang++ core dump when `-g` is combined with
1703 `-O2`. Note that clang++ is quite buggy in this area, and it does still
1704 crash for some folks, so just use `--disable-simd` if you need to avoid
1705 their buggy compiler (since the configure test is apparently not finding
1706 all the compilers that will to crash and burn).
1707
1708 - Fixed an issue in the md2man script when building from an alternate dir.
1709
1710 - Disable `--atimes` on macOS (it apparently just ignores the atime change).
1711
1712 ### ENHANCEMENTS:
1713
1714 - The use of `--backup-dir=STR` now implies `--backup`.
1715
1716 - Added `--zl=NUM` as a short-hand for `--compress-level=NUM`.
1717
1718 - Added `--early-input=FILE` option that allows the client to send some
1719 data to a daemon's (optional) "early exec" script on its stdin.
1720
1721 - Mention atimes in the capabilities list that `--version` outputs.
1722
1723 - Mention either "default protect-args" or "optional protect-args" in the
1724 `--version` capabilities depending on how rsync was configured.
1725
1726 - Some info on optimizations is now elided from the `--version` capabilities
1727 since they aren't really user-facing capabilities. You can still see the
1728 info (plus the status of a couple extra optimizations) by repeating the
1729 `--version` option (e.g. `-VV`).
1730
1731 - Updated various URLs to be https instead of http.
1732
1733 - Some documentation improvements.
1734
1735 ### PACKAGING RELATED:
1736
1737 - If you had to use `--disable-simd` for 3.2.0, you might want to try removing
1738 that and see if it will succeed or auto-disable. Some buggy clang++
1739 compilers are still not auto disabled, though.
1740
1741 - The MD5 asm code is now under its own configure flag (not shared with the
1742 SIMD setting), so if you have any issues compiling it, re-run configure with
1743 `--disable-asm`.
1744
1745 - Merged the OLDNEWS.md file into NEWS.md.
1746
1747 ------------------------------------------------------------------------------
1748
1749 # NEWS for rsync 3.2.0 (19 Jun 2020)
1750
1751 ## Changes in this version:
1752
1753 ### BUG FIXES:
1754
1755 - Avoid a potential out-of-bounds read in daemon mode if argc can be made to
1756 become 0.
1757
1758 - Fix the default list of skip-compress files for non-daemon transfers.
1759
1760 - Fix xattr filter rules losing an 'x' attribute in a non-local transfer.
1761
1762 - Avoid an error when a check for a potential fuzzy file happens to reference
1763 a directory.
1764
1765 - Make the atomic-rsync helper script have a more consistent error-exit.
1766
1767 - Make sure that a signal handler's use of exit_cleanup() calls `_exit()`
1768 instead of exit().
1769
1770 - Various zlib fixes, including security fixes for CVE-2016-9843,
1771 CVE-2016-9842, CVE-2016-9841, and CVE-2016-9840.
1772
1773 - Fixed an issue with `--remove-source-files` not removing a source symlink
1774 when combined with `--copy-links`.
1775
1776 - Fixed a bug where the daemon would fail to write early fatal error messages
1777 to the client, such as refused or unknown command-line options.
1778
1779 - Fixed the block-size validation logic when dealing with older protocols.
1780
1781 - Some rrsync fixes and enhancements to handle the latest options.
1782
1783 - Fixed a problem with the `--link-dest`|`--copy-dest` code when `--xattrs`
1784 was specified along with multiple alternate-destination directories (it
1785 could possibly choose a bad file match while trying to find a better xattr
1786 match).
1787
1788 - Fixed a couple bugs in the handling of files with the `--sparse` option.
1789
1790 - Fixed a bug in the writing of the batch.sh file (w/`--write-batch`) when the
1791 source & destination args were not last on the command-line.
1792
1793 - Avoid a hang when an overabundance of messages clogs up all the I/O buffers.
1794
1795 - Fixed a mismatch in the RSYNC_PID values put into the environment of
1796 `pre-xfer exec` and a `post-xfer exec`.
1797
1798 - Fixed a crash in the `--iconv` code.
1799
1800 - Fixed a rare crash in the popt_unalias() code.
1801
1802 ### ENHANCEMENTS:
1803
1804 - The default systemd config was made stricter by default. For instance,
1805 `ProtectHome=on` (which hides content in /root and /home/USER dirs),
1806 `ProtectSystem=full` (which makes /usr, /boot, & /etc dirs read-only), and
1807 `PrivateDevices=on` (which hides devices). You can override any of these
1808 using the standard `systemctl edit rsync` and add one or more directives
1809 under a `[Service]` heading (and restart the rsync service).
1810
1811 - Various checksum enhancements, including the optional use of openssl's MD4 &
1812 MD5 checksum algorithms, some x86-64 optimizations for the rolling checksum,
1813 some x86-64 optimizations for the (non-openssl) MD5 checksum, the addition
1814 of xxHash checksum support, and a negotiation heuristic that ensures that it
1815 is easier to add new checksum algorithms in the future. The environment
1816 variable `RSYNC_CHECKSUM_LIST` can be used to customize the preference order
1817 of the negotiation, or use `--checksum-choice` (`--cc`) to force a choice.
1818
1819 - Various compression enhancements, including the addition of zstd and lz4
1820 compression algorithms and a negotiation heuristic that picks the best
1821 compression option supported by both sides. The environment variable
1822 `RSYNC_COMPRESS_LIST` can be used to customize the preference order of the
1823 negotiation, or use `--compress-choice` (`--zc`) to force a choice.
1824
1825 - Added a `--debug=NSTR` option that outputs details of the new negotiation
1826 strings (for checksums and compression). The first level just outputs the
1827 result of each negotiation on the client, level 2 outputs the values of the
1828 strings that were sent to and received from the server, and level 3 outputs
1829 all those values on the server side too (when the server was given the debug
1830 option).
1831
1832 - The `--debug=OPTS` command-line option is no longer auto-forwarded to the
1833 remote rsync which allows for the client and server to have different levels
1834 of debug specified. This also allows for newer debug options to be
1835 specified, such as using `--debug=NSTR` to see the negotiated hash result,
1836 without having the command fail if the server version is too old to handle
1837 that debug item. Use `-M--debug=OPTS` to send the options to the remote side.
1838
1839 - Added the `--atimes` option based on the long-standing patch (just with some
1840 fixes that the patch has been needing).
1841
1842 - Added `--open-noatime` option to open files using `O_NOATIME`.
1843
1844 - Added the `--write-devices` option based on the long-standing patch.
1845
1846 - Added openssl & preliminary gnutls support to the rsync-ssl script, which is
1847 now installed by default. This was unified with the old stunnel-rsync
1848 helper script to simplify packaging. Note that the script accepts the use
1849 of `--type=gnutls` for gnutls testing, but does not look for gnutls-cli on
1850 the path yet. The use of `--type=gnutls` will not work right until
1851 gnutls-cli no longer drops data.
1852
1853 - Rsync was enhanced to set the `RSYNC_PORT` environment variable when running
1854 a daemon-over-rsh script. Its value is the user-specified port number (set
1855 via `--port` or an rsync:// URL) or 0 if the user didn't override the port.
1856
1857 - Added the `proxy protocol` daemon parameter that allows your rsyncd to know
1858 the real remote IP when it is setup behind a proxy.
1859
1860 - Added negated matching to the daemon's `refuse options` setting by using
1861 match strings that start with a `!` (such as `!compress*`). This lets you
1862 refuse all options except for a particular approved list, for example. It
1863 also lets rsync refuse certain options by default (such as `write-devices`)
1864 while allowing the config to override that, as desired.
1865
1866 - Added the `early exec` daemon parameter that runs a script before the
1867 transfer parameters are known, allowing some early setup based on module
1868 name.
1869
1870 - Added status output in response to a signal (via both SIGINFO & SIGVTALRM).
1871
1872 - Added `--copy-as=USER` option to give some extra security to root-run rsync
1873 commands into/from untrusted directories (such as backups and restores).
1874
1875 - When resuming the transfer of a file in the `--partial-dir`, rsync will now
1876 update that partial file in-place instead of creating yet another tmp file
1877 copy. This requires both sender & receiver to be at least v3.2.0.
1878
1879 - Added support for `RSYNC_SHELL` & `RSYNC_NO_XFER_EXEC` environment variables
1880 that affect the early, pre-xfer, and post-xfer exec rsync daemon parameters.
1881
1882 - Optimize the `--fuzzy --fuzzy` heuristic to avoid the fuzzy directory scan
1883 until all other basis-file options are exhausted (such as `--link-dest`).
1884
1885 - Have the daemon log include the normal-exit sent/received stats when the
1886 transfer exited with an error when possible (i.e. if it is the sender).
1887
1888 - The daemon now locks its pid file (when configured to use one) so that it
1889 will not fail to start when the file exists but no daemon is running.
1890
1891 - Various manpage improvements, including some html representations (that
1892 aren't installed by default).
1893
1894 - Made `-V` the short option for `--version` and improved its information.
1895
1896 - Pass the `-4` or `-6` option to the ssh command, making it easier to type
1897 than `--rsh='ssh -4'` (or the `-6` equivalent).
1898
1899 - Added example config for rsyncd SSL proxy configs to rsyncd.conf.
1900
1901 - More errors messages now mention if the error is coming from the sender or
1902 the receiver.
1903
1904 ### PACKAGING RELATED:
1905
1906 - Add installed bash script: /usr/bin/rsync-ssl
1907
1908 - Add installed manpage: /usr/man/man1/rsync-ssl.1
1909
1910 - Tweak auxiliary doc file names, such as: README.md, INSTALL.md, & NEWS.md.
1911
1912 - The rsync-ssl script wants to run openssl or stunnel4, so consider adding a
1913 dependency for one of those options (though it's probably fine to just let
1914 it complain about being unable to find the program and let the user decide
1915 if they want to install one or the other).
1916
1917 - If you packaged rsync + rsync-ssl + rsync-ssl-daemon as separate packages,
1918 the rsync-ssl package is now gone (rsync-ssl should be considered to be
1919 mainstream now that Samba requires SSL for its rsync daemon).
1920
1921 - Add _build_ dependency for liblz4-dev, libxxhash-dev, libzstd-dev, and
1922 libssl-dev. These development libraries will give rsync extra compression
1923 algorithms, extra checksum algorithms, and allow use of openssl's crypto
1924 lib for (potentially) faster MD4/MD5 checksums.
1925
1926 - Add _build_ dependency for g++ or clang++ on x86_64 systems to enable the
1927 SIMD checksum optimizations.
1928
1929 - Add _build_ dependency for _either_ python3-cmarkcfm or python3-commonmark
1930 to allow for patching of manpages or building a git release. This is not
1931 required for a release-tar build, since it comes with pre-built manpages.
1932 Note that cmarkcfm is faster than commonmark, but they generate the same
1933 data. The commonmark dependency is easiest to install since it's native
1934 python, and can even be installed via `pip3 install --user commonmark` if
1935 you want to just install it for the build user.
1936
1937 - Remove yodl _build_ dependency (if it was even listed before).
1938
1939 ### DEVELOPER RELATED:
1940
1941 - Silenced some annoying warnings about major() & minor() by improving an
1942 autoconf include-file check.
1943
1944 - Converted the manpages from yodl to markdown. They are now processed via a
1945 simple python3 script using the cmarkgfm **or** commonmark library. This
1946 should make it easier to package rsync, since yodl is rather obscure.
1947
1948 - Improved some configure checks to work better with strict C99 compilers.
1949
1950 - Some perl building/packaging scripts were recoded into awk and python3.
1951
1952 - Some defines in byteorder.h were changed into static inline functions that
1953 will help to ensure that the args don't get evaluated multiple times on
1954 "careful alignment" hosts.
1955
1956 - Some code typos were fixed (as pointed out by a Fossies run).
1957
1958 ------------------------------------------------------------------------------
1959
1960 # NEWS for rsync 3.1.3 (28 Jan 2018)
1961
1962 ## Changes in this version:
1963
1964 ### SECURITY FIXES:
1965
1966 - Fixed a buffer overrun in the protocol's handling of xattr names and ensure
1967 that the received name is null terminated.
1968
1969 - Fix an issue with `--protect-args` where the user could specify the arg in the
1970 protected-arg list and short-circuit some of the arg-sanitizing code.
1971
1972 ### BUG FIXES:
1973
1974 - Don't output about a new backup dir without appropriate info verbosity.
1975
1976 - Fixed some issues with the sort functions in the rsyncstats script (in the
1977 support dir).
1978
1979 - Added a way to specify daemon config lists (e.g. users, groups, etc) that
1980 contain spaces (see `auth users` in the latest rsyncd.conf manpage).
1981
1982 - If a backup fails (e.g. full disk) rsync exits with an error.
1983
1984 - Fixed a problem with a doubled `--fuzzy` option combined with `--link-dest`.
1985
1986 - Avoid invalid output in the summary if either the start or end time had an
1987 error.
1988
1989 - We don't allow a popt alias to affect the `--daemon` or `--server` options.
1990
1991 - Fix daemon exclude code to disallow attribute changes in addition to
1992 disallowing transfers.
1993
1994 - Don't force nanoseconds to match if a non-transferred, non-checksummed file
1995 only passed the quick-check w/o comparing nanoseconds.
1996
1997 ### ENHANCEMENTS:
1998
1999 - Added the ability for rsync to compare nanosecond times in its file-check
2000 comparisons, and added support nanosecond times on Mac OS X.
2001
2002 - Added a short-option (`-@`) for `--modify-window`.
2003
2004 - Added the `--checksum-choice=NAME[,NAME]` option to choose the checksum
2005 algorithms.
2006
2007 - Added hashing of xattr names (with using `-X`) to improve the handling of
2008 files with large numbers of xattrs.
2009
2010 - Added a way to filter xattr names using include/exclude/filter rules (see
2011 the `--xattrs` option in the manpage for details).
2012
2013 - Added `daemon chroot|uid|gid` to the daemon config (in addition to the old
2014 chroot|uid|gid settings that affect the daemon's transfer process).
2015
2016 - Added `syslog tag` to the daemon configuration.
2017
2018 - Some manpage improvements.
2019
2020 ### DEVELOPER RELATED:
2021
2022 - Tweak the `make` output when yodl isn't around to create the manpages.
2023
2024 - Changed an obsolete autoconf compile macro.
2025
2026 - Support newer yodl versions when converting manpages.
2027
2028 ------------------------------------------------------------------------------
2029
2030 # NEWS for rsync 3.1.2 (21 Dec 2015)
2031
2032 ## Changes in this version:
2033
2034 ### SECURITY FIXES:
2035
2036 - Make sure that all transferred files use only path names from inside the
2037 transfer. This makes it impossible for a malicious sender to try to make the
2038 receiver use an unsafe destination path for a transferred file, such as a
2039 just-sent symlink.
2040
2041 ### BUG FIXES:
2042
2043 - Change the checksum seed order in the per-block checksums. This prevents
2044 someone from trying to create checksum blocks that match in sum but not
2045 content.
2046
2047 - Fixed a with the per-dir filter files (using `-FF`) that could trigger an
2048 assert failure.
2049
2050 - Only skip `set_modtime()` on a transferred file if the time is exactly
2051 right.
2052
2053 - Don't create an empty backup dir for a transferred file that doesn't exist
2054 yet.
2055
2056 - Fixed a bug where `--link-dest` and `--xattrs` could cause rsync to exit if
2057 a filename had a matching dir of the same name in the alt-dest area.
2058
2059 - Allow more than 32 group IDs per user in the daemon's gid=LIST config.
2060
2061 - Fix the logging of %b & %c via `--log-file` (daemon logging was already
2062 correct, as was `--out-format='%b/%c'`).
2063
2064 - Fix erroneous acceptance of `--info=5` & `--debug=5` (an empty flag name is
2065 not valid).
2066
2067 ### ENHANCEMENTS:
2068
2069 - Added `(DRY RUN)` info to the `--debug=exit` output line.
2070
2071 - Use usleep() for our msleep() function if it is available.
2072
2073 - Added a few extra long-option names to rrsync script, which will make
2074 BackupPC happier.
2075
2076 - Made configure choose to use Linux xattrs on NetBSD (rather than not
2077 supporting xattrs).
2078
2079 - Added `-wo` (write-only) option to rrsync support script.
2080
2081 - Misc. manpage tweaks.
2082
2083 ### DEVELOPER RELATED:
2084
2085 - Fixed a bug with the Makefile's use of `INSTALL_STRIP`.
2086
2087 - Improve a test in the suite that could get an erroneous timestamp error.
2088
2089 - Tweaks for newer versions of git in the packaging tools.
2090
2091 - Improved the m4 generation rules and some autoconf idioms.
2092
2093 ------------------------------------------------------------------------------
2094
2095 # NEWS for rsync 3.1.1 (22 Jun 2014)
2096
2097 ## Changes in this version:
2098
2099 ### BUG FIXES:
2100
2101 - If the receiver gets bogus filenames from the sender (an unexpected leading
2102 slash or a `..` infix dir), exit with an error. This prevents a malicious
2103 sender from trying to inject filenames that would affect an area outside the
2104 destination directories.
2105
2106 - Fixed a failure to remove the partial-transfer temp file when interrupted
2107 (and rsync is not saving the partial files).
2108
2109 - Changed the chown/group/xattr-set order to avoid losing some security-
2110 related xattr info (that would get cleared by a chown).
2111
2112 - Fixed a bug in the xattr-finding code that could make a non-root-run
2113 receiver not able to find some xattr numbers.
2114
2115 - Fixed a bug in the early daemon protocol where a timeout failed to be
2116 honored (e.g. if the remote side fails to send us the initial protocol
2117 greeting).
2118
2119 - Fixed unintended inclusion of commas in file numbers in the daemon log.
2120
2121 - We once again send the 'f' sub-flag (of `-e`) to the server side so it knows
2122 that we can handle incremental-recursion directory errors properly in older
2123 protocols.
2124
2125 - Fixed an issue with too-aggressive keep-alive messages causing a problem for
2126 older rsync versions early in the transfer.
2127
2128 - Fixed an incorrect message about backup-directory-creation when using
2129 `--dry-run` and the backup dir is not an absolute path.
2130
2131 - Fixed a bug where a failed deletion and/or a failed sender-side removal
2132 would not affect the exit code.
2133
2134 - Fixed a bug that caused a failure when combining `--delete-missing-args`
2135 with `--xattrs` and/or `--acls`.
2136
2137 - Fixed a strange `dir_depth` assertion error that was caused by empty-dir
2138 removals and/or duplicate files in the transfer.
2139
2140 - Fixed a problem with `--info=progress2`'s output stats where rsync would
2141 only update the stats at the end of each file's transfer. It now uses the
2142 data that is flowing for the current file, making the stats more accurate
2143 and less jumpy.
2144
2145 - Fixed an itemize bug that affected the combo of `--link-dest`, `-X`, and
2146 `-n`.
2147
2148 - Fixed a problem with delete messages not appearing in the log file when the
2149 user didn't use `--verbose`.
2150
2151 - Improve chunked xattr reading for OS X.
2152
2153 - Removed an attempted hard-link xattr optimization that was causing a
2154 transfer failure. This removal is flagged in the compatibility code, so if a
2155 better fix can be discovered, we have a way to flip it on again.
2156
2157 - Fixed a bug when the receiver is not configured to be able to hard link
2158 symlimks/devices/special-file items but the sender sent some of these items
2159 flagged as hard-linked.
2160
2161 - We now generate a better error if the buffer overflows in `do_mknod()`.
2162
2163 - Fixed a problem reading more than 16 ACLs on some OSes.
2164
2165 - Fixed the reading of the secrets file to avoid an infinite wait when the
2166 username is missing.
2167
2168 - Fixed a parsing problem in the `--usermap`/`--groupmap` options when using
2169 MIN-MAX numbers.
2170
2171 - Switched Cygwin back to using socketpair `pipes` to try to speed it up.
2172
2173 - Added knowledge of a few new options to rrsync.
2174
2175 ### ENHANCEMENTS:
2176
2177 - Tweaked the temp-file naming when `--temp-dir=DIR` is used: the temp-file
2178 names will not get a '.' prepended.
2179
2180 - Added support for a new-compression idiom that does not compress all the
2181 matching data in a transfer. This can help rsync to use less cpu when a
2182 transfer has a lot of matching data, and also makes rsync compatible with a
2183 non-bundled zlib. See the `--new-compress` and `--old-compress` options in
2184 the manpage.
2185
2186 - Added the rsync-no-vanished shell script. (See the support dir.)
2187
2188 - Made configure more prominently mention when we failed to find yodl (in case
2189 the user wants to be able to generate manpages from `*.yo` files).
2190
2191 - Have manpage mention how a daemon's max-verbosity setting affects info and
2192 debug options. Also added more clarification on backslash removals for
2193 excludes that contain wildcards.
2194
2195 - Have configure check if for the attr lib (for getxattr) for those systems
2196 that need to link against it explicitly.
2197
2198 - Change the early dir-creation logic to only use that idiom in an
2199 inc-recursive copy that is preserving directory times. e.g. using
2200 `--omit-dir-times` will avoid these early directories being created.
2201
2202 - Fix a bug in `cmp_time()` that would return a wrong result if the 2 times
2203 differed by an amount greater than what a `time_t` can hold.
2204
2205 ### DEVELOPER RELATED:
2206
2207 - We now include an example systemd file (in packaging/systemd).
2208
2209 - Tweaked configure to make sure that any intended use of the included popt
2210 and/or zlib code is put early in the CFLAGS.
2211
2212 ------------------------------------------------------------------------------
2213
2214 # NEWS for rsync 3.1.0 (28 Sep 2013)
2215
2216 ## Changes in this version:
2217
2218 ### PROTOCOL NUMBER:
2219
2220 - The protocol number was changed to 31.
2221
2222 ### OUTPUT CHANGES:
2223
2224 - Output numbers in 3-digit groups by default (e.g. 1,234,567). See the
2225 `--human-readable` option for a way to turn it off. See also the daemon's
2226 `log format` parameter and related command-line options (including
2227 `--out-format`) for a modifier that can be used to request digit-grouping or
2228 human-readable output in log escapes. (Note that log output is unchanged by
2229 default.)
2230
2231 - The `--list-only` option is now affected by the `--human-readable` setting.
2232 It will display digit groupings by default, and unit suffixes if higher
2233 levels of readability are requested. Also, the column width for the size
2234 output has increased from 11 to 14 characters when human readability is
2235 enabled. Use `--no-h` to get the old-style output and column size.
2236
2237 - The output of the `--progress` option has changed: the string `xfer` was
2238 shortened to `xfr`, and the string `to-check` was shortened to `to-chk`,
2239 both designed to make room for the (by default) wider display of file size
2240 numbers without making the total line-length longer. Also, when incremental
2241 recursion is enabled, the string `ir-chk` will be used instead of `to-chk`
2242 up until the incremental-recursion scan is done, letting you know that the
2243 value to check and the total value will still be increasing as new files are
2244 found.
2245
2246 - Enhanced the `--stats` output: 1) to mention how many files were created
2247 (protocol >= 28), 2) to mention how many files were deleted (a new line for
2248 protocol 31, but only output when `--delete` is in effect), and 3) to follow
2249 the file-count, created-count, and deleted-count with a subcount list that
2250 shows the counts by type. The wording of the transferred count has also
2251 changed so that it is clearer that it is only a count of regular files.
2252
2253 ### BUG FIXES:
2254
2255 - Fixed a bug in the iconv code when EINVAL or EILSEQ is returned with a full
2256 output buffer.
2257
2258 - Fixed some rare bugs in `--iconv` processing that might cause a multi-byte
2259 character to get translated incorrectly.
2260
2261 - Fixed a bogus `vanished file` error if some files were specified with `./`
2262 prefixes and others were not.
2263
2264 - Fixed a bug in `--sparse` where an extra gap could get inserted after a
2265 partial write.
2266
2267 - Changed the way `--progress` overwrites its prior output in order to make it
2268 nearly impossible for the progress to get overwritten by an error.
2269
2270 - Improved the propagation of abnormal-exit error messages. This should help
2271 the client side to receive errors from the server when it is exiting
2272 abnormally, and should also avoid dying with an `connection unexpectedly
2273 closed` exit when the closed connection is really expected.
2274
2275 - The sender now checks each file it plans to remove to ensure that it hasn't
2276 changed from the first stat's info. This helps to avoid losing file data
2277 when the user is not using the option in a safe manner.
2278
2279 - Fixed a data-duplication bug in the compress option that made compression
2280 less efficient. This improves protocol 31 onward, while behaving in a
2281 compatible (buggy) manner with older rsync protocols.
2282
2283 - When creating a temp-file, rsync is now a bit smarter about it dot-char
2284 choices, which can fix a problem on OS X with names that start with `..`.
2285
2286 - Rsync now sets a cleanup flag for `--inplace` and `--append` transfers that
2287 will flush the write buffer if the transfer aborts. This ensures that more
2288 received data gets written out to the disk on an aborted transfer (which is
2289 quite helpful on a slow, flaky connection).
2290
2291 - The reads that `map_ptr()` now does are aligned on 1K boundaries. This helps
2292 some filesystems and/or files that don't like unaligned reads.
2293
2294 - Fix an issue in the msleep() function if time jumps backwards.
2295
2296 - Fix daemon-server module-name splitting bug where an arg would get split
2297 even if `--protect-args` was used.
2298
2299 ### ENHANCEMENTS:
2300
2301 - Added the `--remote-option=OPT` (`-M OPT`) command-line option that is
2302 useful for things like sending a remote `--log-file=FILE` or `--fake-super`
2303 option.
2304
2305 - Added the `--info=FLAGS` and `--debug=FLAGS` options to allow finer-grained
2306 control over what is output. Added an extra type of `--progress` output
2307 using `--info=progress2`.
2308
2309 - The `--msgs2stderr` option can help with debugging rsync by allowing the
2310 debug messages to get output to stderr rather than travel via the socket
2311 protocol.
2312
2313 - Added the `--delete-missing-args` and `--ignore-missing-args` options to
2314 either delete or ignore user-specified files on the receiver that are
2315 missing on the sender (normally the absence of user-specified files
2316 generates an error).
2317
2318 - Added a `T` (terabyte) category to the `--human-readable` size suffixes.
2319
2320 - Added the `--usermap`/`--groupmap`/`--chown` options for manipulating file
2321 ownership during the copy.
2322
2323 - Added the `%C` escape to the log-output handling, which will output the MD5
2324 checksum of any transferred file, or all files if `--checksum` was specified
2325 (when protocol 30 or above is in effect).
2326
2327 - Added the `reverse lookup` parameter to the rsync daemon config file to
2328 allow reverse-DNS lookups to be disabled.
2329
2330 - Added a forward-DNS lookup for the daemon's hosts allow/deny config. Can be
2331 disabled via `forward lookup` parameter (defaults to enabled).
2332
2333 - Added a way for more than one group to be specified in the daemon's config
2334 file, including a way to specify that you want all of the specified user's
2335 groups without having to name them. Also changed the daemon to complain
2336 about an inability to set explicitly-specified uid/gid values, even when not
2337 run by a super-user.
2338
2339 - The daemon now tries to send the user the error messages from the pre-xfer
2340 exec script when it fails.
2341
2342 - Improved the use of alt-dest options into an existing hierarchy of files: If
2343 a match is found in an alt-dir, it takes precedence over an existing file.
2344 (We'll need to wait for a future version before attribute-changes on
2345 otherwise unchanged files are safe when using an existing hierarchy.)
2346
2347 - Added per-user authorization options and group-authorization support to the
2348 daemon's `auth users` parameter.
2349
2350 - Added a way to reference environment variables in a daemon's config file
2351 (using %VAR% references).
2352
2353 - When replacing a non-dir with a symlink/hard-link/device/special-file, the
2354 update should now be done in an atomic manner.
2355
2356 - Avoid re-sending xattr info for hard-linked files w/the same xattrs
2357 (protocol 31).
2358
2359 - The backup code was improved to use better logic maintaining the backup
2360 directory hierarchy. Also, when a file is being backed up, rsync tries to
2361 hard-link it into place so that the upcoming replacement of the destination
2362 file will be atomic (for the normal, non-inplace logic).
2363
2364 - Added the ability to synchronize nanosecond modified times.
2365
2366 - Added a few more default suffixes for the `dont compress` settings.
2367
2368 - Added the checking of the `RSYNC_PROTECT_ARGS` environment variable to allow
2369 the default for the `--protect-args` command-line option to be overridden.
2370
2371 - Added the `--preallocate` command-line option.
2372
2373 - Allow `--password-file=-` to read the password from stdin (filename `-`).
2374
2375 - Rsync now comes packaged with an rsync-ssl helper script that can be used to
2376 contact a remote rsync daemon using a piped-stunnel command. It also
2377 includes an stunnel config file to run the server side to support ssl daemon
2378 connections. See the packaging/lsb/rsync.spec file for one way to package
2379 the resulting files. (Suggestions for how to make this even easier to
2380 install & use are welcomed.)
2381
2382 - Improved the speed of some `--inplace` updates when there are lots of
2383 identical checksum blocks that end up being unusable.
2384
2385 - Added the `--outbuf=N|L|B` option for choosing the output buffering.
2386
2387 - Repeating the `--fuzzy` option now causes the code to look for fuzzy matches
2388 inside alt-dest directories too.
2389
2390 - The `--chmod` option now supports numeric modes, e.g. `--chmod=644,D755`
2391
2392 - Added some Solaris xattr code.
2393
2394 - Made an rsync daemon (the listening process) exit with a 0 status when it
2395 was signaled to die. This helps launchd.
2396
2397 - Improved the `RSYNC_*` environment variables for the pre-xfer exec script:
2398 when a daemon is sent multiple request args, they are now joined into a
2399 single return value (separated by spaces) so that the `RSYNC_REQUEST`
2400 environment variable is accurate for any `pre-xfer exec`. The values in
2401 `RSYNC_ARG#` vars are no longer truncated at the `.` arg (prior to the
2402 request dirs/files), so that all the requested values are also listed
2403 (separately) in `RSYNC_ARG#` variables.
2404
2405 ### EXTRAS:
2406
2407 - Added an `instant-rsyncd` script to the support directory, which makes it
2408 easy to configure a simple rsync daemon in the current directory.
2409
2410 - Added the `mapfrom` and `mapto` scripts to the support directory, which
2411 makes it easier to do user/group mapping in a local transfer based on
2412 passwd/group files from another machine.
2413
2414 - There's a new, improved version of the lsh script in the support dir: it's
2415 written in perl and supports `-u` without resorting to using sudo (when run
2416 as root). The old shell version is now named lsh.sh.
2417
2418 - There is a helper script named rsync-slash-strip in the support directory
2419 for anyone that wants to change the way rsync handles args with trailing
2420 slashes. (e.g. arg/ would get stripped to arg while arg/. would turn into
2421 arg/).
2422
2423 ### INTERNAL:
2424
2425 - The I/O code was rewritten to be simpler and do bigger buffered reads over
2426 the socket. The I/O between the receiver and the generator was changed to be
2427 standard multiplexed-I/O (like that over the socket).
2428
2429 - The sender tries to use any dead time while the generator is looking for
2430 files to transfer in order to do sender-side directory scanning in a more
2431 parallel manner.
2432
2433 - A daemon can now inform a client about a daemon-configured timeout value so
2434 that the client can assist in the keep-alive activity (protocol 31).
2435
2436 - The filter code received some refactoring to make it more extendable, to
2437 read better, and do better sanity checking.
2438
2439 - Really big numbers are now output using our own big-num routine rather than
2440 casting them to a double and using a %.0f conversion.
2441
2442 - The `pool_alloc` library has received some minor improvements in alignment
2443 handling.
2444
2445 - Added `init_stat_x()` function to avoid duplication of acl/xattr init code.
2446
2447 - The included zlib was upgraded from 1.2.3 to 1.2.8.
2448
2449 - Rsync can now be compiled to use an unmodified zlib library instead of the
2450 tweaked one that is included with rsync. This will eventually become the
2451 default, at which point we'll start the countdown to removing the included
2452 zlib. Until then, feel free to configure using:
2453
2454 ./configure `--with-included-zlib=no`
2455
2456 ### DEVELOPER RELATED:
2457
2458 - Added more conditional debug output.
2459
2460 - Fixed some build issues for Android and Minix.
2461
2462 ------------------------------------------------------------------------------
2463
2464 # NEWS for rsync 3.0.9 (23 Sep 2011)
2465
2466 ## Changes in this version:
2467
2468 ### BUG FIXES:
2469
2470 - Fix a crash bug in checksum scanning when `--inplace` is used.
2471
2472 - Fix a hang if a hard-linked file cannot be opened by the sender (e.g. if it
2473 has no read permission).
2474
2475 - Fix preservation of a symlink's system xattrs (e.g. selinux) on Linux.
2476
2477 - Fix a memory leak in the xattr code.
2478
2479 - Fixed a bug with `--delete-excluded` when a filter merge file has a rule
2480 that specifies a receiver-only side restriction.
2481
2482 - Fix a bug with the modifying of unwritable directories.
2483
2484 - Fix `--fake-super`'s interaction with `--link-dest` same-file comparisons.
2485
2486 - Fix the updating of the `curr_dir` buffer to avoid a duplicate slash.
2487
2488 - Fix the directory permissions on an implied dot-dir when using `--relative`
2489 (e.g. /outside/path/././send/path).
2490
2491 - Fixed some too-long sleeping instances when using `--bwlimit`.
2492
2493 - Fixed when symlink ownership difference-checking gets compiled into
2494 `unchanged_attrs()`.
2495
2496 - Improved the socket-error reporting when multiple protocols fail.
2497
2498 - Fixed a case where a socket error could reference just-freed memory.
2499
2500 - Failing to use a password file that was specified on the command-line is now
2501 a fatal error.
2502
2503 - Fix the non-root updating of directories that don't have the read and/or
2504 execute permission.
2505
2506 - Make daemon-excluded file errors more error-like.
2507
2508 - Fix a compilation issue on older C compilers (due to a misplaced var
2509 declaration).
2510
2511 - Make configure avoid finding socketpair on Cygwin.
2512
2513 - Avoid trying to reference `SO_BROADCAST` if the OS doesn't support it.
2514
2515 - Fix some issues with the post-processing of the manpages.
2516
2517 - Fixed the user home-dir handling in the lsh script. (See the support dir.)
2518
2519 - Some minor manpage improvements.
2520
2521 ------------------------------------------------------------------------------
2522
2523 # NEWS for rsync 3.0.8 (26 Mar 2011)
2524
2525 ## Changes in this version:
2526
2527 ### BUG FIXES:
2528
2529 - Fixed two buffer-overflow issues: one where a directory path that is exactly
2530 MAXPATHLEN was not handled correctly, and one handling a `--backup-dir` that
2531 is extra extra large.
2532
2533 - Fixed a data-corruption issue when preserving hard-links without preserving
2534 file ownership, and doing deletions either before or during the transfer
2535 (CVE-2011-1097). This fixes some assert errors in the hard-linking code, and
2536 some potential failed checksums (via `-c`) that should have matched.
2537
2538 - Fixed a potential crash when an rsync daemon has a filter/exclude list and
2539 the transfer is using ACLs or xattrs.
2540
2541 - Fixed a hang if a really large file is being processed by an rsync that
2542 can't handle 64-bit numbers. Rsync will now complain about the file being
2543 too big and skip it.
2544
2545 - For devices and special files, we now avoid gathering useless ACL and/or
2546 xattr information for files that aren't being copied. (The un-copied files
2547 are still put into the file list, but there's no need to gather data that is
2548 not going to be used.) This ensures that if the user uses `--no-D`, that
2549 rsync can't possibly complain about being unable to gather extended
2550 information from special files that are in the file list (but not in the
2551 transfer).
2552
2553 - Properly handle requesting remote filenames that start with a dash. This
2554 avoids a potential error where a filename could be interpreted as a (usually
2555 invalid) option.
2556
2557 - Fixed a bug in the comparing of upper-case letters in file suffixes for
2558 `--skip-compress`.
2559
2560 - If an rsync daemon has a module configured without a path setting, rsync
2561 will now disallow access to that module.
2562
2563 - If the destination arg is an empty string, it will be treated as a reference
2564 to the current directory (as 2.x used to do).
2565
2566 - If rsync was compiled with a newer time-setting function (such as lutimes),
2567 rsync will fall-back to an older function (such as utimes) on a system where
2568 the newer function is not around. This helps to make the rsync binary more
2569 portable in mixed-OS-release situations.
2570
2571 - Fixed a batch-file writing bug that would not write out the full set of
2572 compatibility flags that the transfer was using. This fixes a potential
2573 protocol problem for a batch file that contains a sender-side I/O error: it
2574 would have been sent in a way that the batch-reader wasn't expecting.
2575
2576 - Some improvements to the hard-linking code to ensure that device-number
2577 hashing is working right, and to supply more information if the hard-link
2578 code fails.
2579
2580 - The `--inplace` code was improved to not search for an impossible checksum
2581 position. The quadruple-verbose chunk[N] message will now mention when an
2582 inplace chunk was handled by a seek rather than a read+write.
2583
2584 - Improved ACL mask handling, e.g. for Solaris.
2585
2586 - Fixed a bug that prevented `--numeric-ids` from disabling the translation of
2587 user/group IDs for ACLs.
2588
2589 - Fixed an issue where an xattr and/or ACL transfer that used an alt-dest
2590 option (e.g. `--link-dest`) could output an error trying to itemize the
2591 changes against the alt-dest directory's xattr/ACL info but was instead
2592 trying to access the not-yet-existing new destination directory.
2593
2594 - Improved xattr system-error messages to mention the full path to the file.
2595
2596 - The `--link-dest` checking for identical symlinks now avoids considering
2597 attribute differences that cannot be changed on the receiver.
2598
2599 - Avoid trying to read/write xattrs on certain file types for certain OSes.
2600 Improved configure to set `NO_SYMLINK_XATTRS`, `NO_DEVICE_XATTRS`, and/or
2601 `NO_SPECIAL_XATTRS` defines in config.h.
2602
2603 - Improved the unsafe-symlink errors messages.
2604
2605 - Fixed a bug setting xattrs on new files that aren't user writable.
2606
2607 - Avoid re-setting xattrs on a hard-linked file w/the same xattrs.
2608
2609 - Fixed a bug with `--fake-super` when copying files and dirs that aren't user
2610 writable.
2611
2612 - Fixed a bug where a sparse file could have its last sparse block turned into
2613 a real block when rsync sets the file size (requires ftruncate).
2614
2615 - If a temp-file name is too long, rsync now avoids truncating the name in the
2616 middle of adjacent high-bit characters. This prevents a potential filename
2617 error if the filesystem doesn't allow a name to contain an invalid
2618 multi-byte sequence.
2619
2620 - If a muli-protocol socket connection fails (i.e., when contacting a daemon),
2621 we now report all the failures, not just the last one. This avoids losing a
2622 relevant error (e.g. an IPv4 connection-refused error) that happened before
2623 the final error (e.g. an IPv6 protocol-not-supported error).
2624
2625 - Generate a transfer error if we try to call chown with a `-1` for a uid or a
2626 gid (which is not settable).
2627
2628 - Fixed the working of `--force` when used with `--one-file-system`.
2629
2630 - Fix the popt arg parsing so that an option that doesn't take an arg will
2631 reject an attempt to supply one (can configure `--with-included-popt` if
2632 your system's popt library doesn't yet have this fix).
2633
2634 - A couple minor option tweaks to the rrsync script, and also some regex
2635 changes that make vim highlighting happier. (See the support dir.)
2636
2637 - Fixed some issues in the mnt-excl script. (See the support dir.)
2638
2639 - Various manpage improvements.
2640
2641 ### ENHANCEMENTS:
2642
2643 - Added `.hg/` to the default cvs excludes (see `-C` & `--cvs-exclude`).
2644
2645 ### DEVELOPER RELATED:
2646
2647 - Use lchmod() whenever it is available (not just on symlinks).
2648
2649 - A couple fixes to the `socketpair_tcp()` routine.
2650
2651 - Updated the helper scripts in the packaging subdirectory.
2652
2653 - Renamed configure.in to configure.ac.
2654
2655 - Fixed configure's checking for iconv routines for newer OS X versions.
2656
2657 - Fixed the testsuite/xattrs.test script on OS X.
2658
2659 ------------------------------------------------------------------------------
2660
2661 # NEWS for rsync 3.0.7 (31 Dec 2009)
2662
2663 ## Changes in this version:
2664
2665 ### BUG FIXES:
2666
2667 - Fixed a bogus free when using `--xattrs` with `--backup`.
2668
2669 - Avoid an error when `--dry-run` was trying to stat a prior hard-link file
2670 that hasn't really been created.
2671
2672 - Fixed a problem with `--compress` (`-z`) where the receiving side could
2673 return the error "`inflate (token) returned -5`".
2674
2675 - Fixed a bug where `--delete-during` could delete in a directory before it
2676 noticed that the sending side sent an I/O error for that directory (both
2677 sides of the transfer must be at least 3.0.7).
2678
2679 - Improved `--skip-compress`'s error handling of bad character-sets and got
2680 rid of a lingering debug fprintf().
2681
2682 - Fixed the daemon's conveyance of `io_error` value from the sender.
2683
2684 - An rsync daemon use seteuid() (when available) if it used setuid().
2685
2686 - Get the permissions right on a `--fake-super` transferred directory that
2687 needs more owner permissions to emulate root behavior.
2688
2689 - An absolute-path filter rule (i.e. with a '/' modifier) no longer loses its
2690 modifier when sending the filter rules to the remote rsync.
2691
2692 - Improved the "`--delete does not work without -r or -d`" message.
2693
2694 - Improved rsync's handling of `--timeout` to avoid a weird timeout case where
2695 the sender could timeout even though it has recently written data to the
2696 socket (but hasn't read data recently, due to the writing).
2697
2698 - Some misc manpage improvements.
2699
2700 - Fixed the chmod-temp-dir testsuite on a system without /var/tmp.
2701
2702 - Make sure that a timeout specified in the daemon's config is used as a
2703 maximum timeout value when the user also specifies a timeout.
2704
2705 - Improved the error-exit reporting when rsync gets an error trying to cleanup
2706 after an error: the initial error is reported.
2707
2708 - Improved configure's detection of IPv6 for Solaris and Cygwin.
2709
2710 - The AIX sysacls routines will now return ENOSYS if ENOTSUP is missing.
2711
2712 - Made our (only used if missing) getaddrinfo() routine use `inet_pton()`
2713 (which we also provide) instead of `inet_aton()`.
2714
2715 - The exit-related debug messages now mention the program's role so it is
2716 clear who output what message.
2717
2718 ### DEVELOPER RELATED:
2719
2720 - Got rid of type-punned compiler warnings output by newer gcc versions.
2721
2722 - The Makefile now ensures that proto.h will be rebuilt if config.h changes.
2723
2724 - The testsuite no longer uses `id -u`, so it works better on Solaris.
2725
2726 ------------------------------------------------------------------------------
2727
2728 # NEWS for rsync 3.0.6 (8 May 2009)
2729
2730 ## Changes in this version:
2731
2732 ### BUG FIXES:
2733
2734 - Fixed a `--read-batch` hang when rsync is reading a batch file that was
2735 created from an incremental-recursion transfer.
2736
2737 - Fixed the daemon's socket code to handle the simultaneous arrival of
2738 multiple connections.
2739
2740 - Fix `--safe-links`/`--copy-unsafe-links` to properly handle symlinks that
2741 have consecutive slashes in the value.
2742
2743 - Fixed the parsing of an `[IPv6_LITERAL_ADDR]` when a USER@ is prefixed.
2744
2745 - The sender now skips a (bogus) symlink that has a 0-length value, which
2746 avoids a transfer error in the receiver.
2747
2748 - Fixed a case where the sender could die with a tag-0 error if there was an
2749 I/O during the sending of the file list.
2750
2751 - Fixed the rrsync script to avoid a server-side problem when `-e` is at the
2752 start of the short options.
2753
2754 - Fixed a problem where a vanished directory could turn into an exit code 23
2755 instead of the proper exit code 24.
2756
2757 - Fixed the `--iconv` conversion of symlinks when doing a local copy.
2758
2759 - Fixed a problem where `--one-file-system` was not stopping deletions on the
2760 receiving side when a mount-point directory did not match a directory in the
2761 transfer.
2762
2763 - Fixed the dropping of an ACL mask when no named ACL values were present.
2764
2765 - Fixed an ACL/xattr corruption issue where the `--backup` option could cause
2766 rsync to associate the wrong ACL/xattr information with received files.
2767
2768 - Fixed the use of `--xattrs` with `--only-write-batch`.
2769
2770 - Fixed the use of `--dry-run` with `--read-batch`.
2771
2772 - Fixed configure's erroneous use of target.
2773
2774 - Fixed configure's `--disable-debug` option.
2775
2776 - Fixed a run-time issue for systems that can't find `iconv_open()` by adding
2777 the `--disable-iconv-open` configure option.
2778
2779 - Complain and die if the user tries to combine `--remove-source-files` (or
2780 the deprecated `--remove-sent-files`) with `--read-batch`.
2781
2782 - Fixed an failure transferring special files from Solaris to Linux.
2783
2784 ------------------------------------------------------------------------------
2785
2786 # NEWS for rsync 3.0.5 (28 Dec 2008)
2787
2788 ## Changes in this version:
2789
2790 ### BUG FIXES:
2791
2792 - Initialize xattr data in a couple spots in the hlink code, which avoids a
2793 crash when the xattr pointer's memory happens to start out non-zero. Also
2794 fixed the itemizing of an alt-dest file's xattrs when hard-linking.
2795
2796 - Don't send a bogus `-` option to an older server if there were no short
2797 options specified.
2798
2799 - Fixed skipping of unneeded updates in a batch file when incremental
2800 recursion is active. Added a test for this. Made batch-mode handle `redo`
2801 files properly (and without hanging).
2802
2803 - Fix the %P logfile escape when the daemon logs from inside a chroot.
2804
2805 - Fixed the use of `-s` (`--protect-args`) when used with a remote source or
2806 destination that had an empty path (e.g. `host:`). Also fixed a problem when
2807 `-s` was used when accessing a daemon via a remote-shell.
2808
2809 - Fixed the use of a dot-dir path (e.g. foo/./bar) inside a `--files-from`
2810 file when the root of the transfer isn't the current directory.
2811
2812 - Fixed a bug with `-K --delete` removing symlinks to directories when
2813 incremental recursion is active.
2814
2815 - Fixed a hard to trigger hang when using `--remove-source-files`.
2816
2817 - Got rid of an annoying delay when accessing a daemon via a remote-shell.
2818
2819 - Properly ignore (superfluous) source args on a `--read-batch` command.
2820
2821 - Improved the manpage's description of the `*` wildcard to remove the
2822 confusing `non-empty` qualifier.
2823
2824 - Fixed reverse lookups in the compatibility-library version of getnameinfo().
2825
2826 - Fixed a bug when using `--sparse` on a sparse file that has over 2GB of
2827 consecutive sparse data.
2828
2829 - Avoid a hang when using at least 3 `--verbose` options on a transfer with a
2830 client sender (which includes local copying).
2831
2832 - Fixed a problem with `--delete-delay` reporting an error when it was ready
2833 to remove a directory that was now gone.
2834
2835 - Got rid of a bunch of `warn_unused_result` compiler warnings.
2836
2837 - If an ftruncate() on a received file fails, it now causes a partial-
2838 transfer warning.
2839
2840 - Allow a path with a leading `//` to be preserved (CYGWIN only).
2841
2842 ### ENHANCEMENTS:
2843
2844 - Made the atomic-rsync script able to perform a fully atomic update of the
2845 copied hierarchy when the destination is setup using a particular symlink
2846 idiom. (See the support dir.)
2847
2848 ------------------------------------------------------------------------------
2849
2850 # NEWS for rsync 3.0.4 (6 Sep 2008)
2851
2852 ## Changes in this version:
2853
2854 ### BUG FIXES:
2855
2856 - Fixed a bug in the hard-linking code where it would sometimes try to
2857 allocate 0 bytes of memory (which fails on some OSes, such as AIX).
2858
2859 - Fixed the hard-linking of files from a device that has a device number of 0
2860 (which seems to be a common device number on NetBSD).
2861
2862 - Fixed the handling of a `--partial-dir` that cannot be created. This
2863 particularly impacts the `--delay-updates` option (since the files cannot be
2864 delayed without a partial-dir), and was potentially destructive if the
2865 `--remove-source-files` was also specified.
2866
2867 - Fixed a couple issues in the `--fake-super` handling of xattrs when the
2868 destination files have root-level attributes (e.g. selinux values) that a
2869 non-root copy can't affect.
2870
2871 - Improved the keep-alive check in the generator to fire consistently in
2872 incremental-recursion mode when `--timeout` is enabled.
2873
2874 - The `--iconv` option now converts the content of a symlink too, instead of
2875 leaving it in the wrong character-set (requires 3.0.4 on both sides of the
2876 transfer).
2877
2878 - When using `--iconv`, if a filename fails to convert on the receiving side,
2879 this no longer makes deletions in the root-dir of the transfer fail silently
2880 (the user now gets a warning about deletions being disabled due to IO error
2881 as long as `--ignore-errors` was not specified).
2882
2883 - When using `--iconv`, if a server-side receiver can't convert a filename,
2884 the error message sent back to the client no longer mangles the name with
2885 the wrong charset conversion.
2886
2887 - Fixed a potential alignment issue in the IRIX ACL code when allocating the
2888 initial `struct acl` object. Also, cast mallocs to avoid warnings.
2889
2890 - Changed some errors that were going to stdout to go to stderr.
2891
2892 - Made `human_num()` and `human_dnum()` able to output a negative number
2893 (rather than outputting a cryptic string of punctuation).
2894
2895 ### ENHANCEMENTS:
2896
2897 - Rsync will avoid sending an `-e` option to the server if an older protocol
2898 is requested (and thus the option would not be useful). This lets the user
2899 specify the `--protocol=29` option to access an overly-restrictive server
2900 that is rejecting the protocol-30 use of `-e` to the server.
2901
2902 - Improved the message output for an `RERR_PARTIAL` exit.
2903
2904 ### DEVELOPER RELATED:
2905
2906 - The Makefile will not halt for just a timestamp change on the Makefile or
2907 the configure files, only for actual changes in content.
2908
2909 - Changed some commands in the testsuite's xattrs.test that called `rsync`
2910 instead of `$RSYNC`.
2911
2912 - Enhanced the release scripts to be able to handle a branch release and to do
2913 even more consistency checks on the files.
2914
2915 ------------------------------------------------------------------------------
2916
2917 # NEWS for rsync 3.0.3 (29 Jun 2008)
2918
2919 ## Changes in this version:
2920
2921 ### BUG FIXES:
2922
2923 - Fixed a wildcard matching problem in the daemon when a module has `use
2924 chroot` enabled.
2925
2926 - Fixed a crash bug in the hard-link code.
2927
2928 - Fixed the sending of xattr directory information when the code finds a
2929 `--link-dest` or `--copy-dest` directory with unchanged xattrs -- the
2930 destination directory now gets these unchanged xattrs properly applied.
2931
2932 - Fixed an xattr-sending glitch that could cause an `Internal abbrev` error.
2933
2934 - Fixed the combination of `--xattrs` and `--backup`.
2935
2936 - The generator no longer allows a '.' dir to be excluded by a daemon-exclude
2937 rule.
2938
2939 - Fixed deletion handling when copying a single, empty directory (with no
2940 files) to a differently named, non-existent directory.
2941
2942 - Fixed the conversion of spaces into dashes in the %M log escape.
2943
2944 - Fixed several places in the code that were not returning the right errno
2945 when a function failed.
2946
2947 - Fixed the backing up of a device or special file into a backup dir.
2948
2949 - Moved the setting of the socket options prior to the connect().
2950
2951 - If rsync exits in the middle of a `--progress` output, it now outputs a
2952 newline to help prevent the progress line from being overwritten.
2953
2954 - Fixed a problem with how a destination path with a trailing slash or a
2955 trailing dot-dir was compared against the daemon excludes.
2956
2957 - Fixed the sending of large (size > 16GB) files when talking to an older
2958 rsync (protocols < 30): we now use a compatible block size limit.
2959
2960 - If a file's length is so huge that we overflow a checksum buffer count (i.e.
2961 several hundred TB), warn the user and avoid sending an invalid checksum
2962 struct over the wire.
2963
2964 - If a source arg is excluded, `--relative` no longer adds the excluded arg's
2965 implied dirs to the transfer. This fix also made the exclude check happen in
2966 the better place in the sending code.
2967
2968 - Use the `overflow_exit()` function for overflows, not `out_of_memory()`.
2969
2970 - Improved the code to better handle a system that has only 32-bit file
2971 offsets.
2972
2973 ### ENHANCEMENTS:
2974
2975 - The rsyncd.conf manpage now consistently refers to the parameters in the
2976 daemon config file as `parameters`.
2977
2978 - The description of the `--inplace` option was improved.
2979
2980 ### EXTRAS:
2981
2982 - Added a new script in the support directory, deny-rsync, which allows an
2983 admin to (temporarily) replace the rsync command with a script that sends an
2984 error message to the remote client via the rsync protocol.
2985
2986 ### DEVELOPER RELATED:
2987
2988 - Fixed a testcase failure if the tests are run as root and made some
2989 compatibility improvements.
2990
2991 - Improved the daemon tests, including checking module comments, the listing
2992 of files, and the ensuring that daemon excludes can't affect a dot-dir arg.
2993
2994 - Improved some build rules for those that build in a separate directory from
2995 the source, including better install rules for the manpages, and the fixing
2996 of a proto.h-tstamp rule that could make the binaries get rebuild without
2997 cause.
2998
2999 - Improved the testsuite to work around a problem with some utilities (e.g.
3000 `cp -p` & `touch -r`) rounding sub-second timestamps.
3001
3002 - Ensure that the early patches don't cause any generated-file hunks to
3003 bleed-over into patches that follow.
3004
3005 ------------------------------------------------------------------------------
3006
3007 # NEWS for rsync 3.0.2 (8 Apr 2008)
3008
3009 ## Changes in this version:
3010
3011 ### BUG FIXES:
3012
3013 - Fixed a potential buffer overflow in the xattr code.
3014
3015 ### ENHANCEMENTS:
3016
3017 - None.
3018
3019 ### DEVELOPER RELATED:
3020
3021 - The RPM spec file was improved to install more useful files.
3022
3023 - A few developer-oriented scripts were moved from the support dir to the
3024 packaging dir.
3025
3026 ------------------------------------------------------------------------------
3027
3028 # NEWS for rsync 3.0.1 (3 Apr 2008)
3029
3030 ## Changes in this version:
3031
3032 ### NOTABLE CHANGES IN BEHAVIOR:
3033
3034 - Added the 'c'-flag to the itemizing of non-regular files so that the
3035 itemized output doesn't get hidden if there were no attribute changes, and
3036 also so that the itemizing of a `--copy-links` run will distinguish between
3037 copying an identical non-regular file and the creation of a revised version
3038 with a new value (e.g. a changed symlink referent, a new device number,
3039 etc.).
3040
3041 ### BUG FIXES:
3042
3043 - Fixed a crash bug when a single-use rsync daemon (via remote shell) was run
3044 without specifying a `--config=FILE` option.
3045
3046 - Fixed a crash when backing up a directory that has a default ACL.
3047
3048 - Fixed a bug in the handling of xattr values that could cause rsync to not
3049 think that a file's extended attributes are up-to-date.
3050
3051 - Fixed the working of `--fake-super` with `--link-dest` and `--xattrs`.
3052
3053 - Fixed a hang when combining `--dry-run` with `--remove-source-files`.
3054
3055 - Fixed a bug with `--iconv`'s handling of files that cannot be converted: a
3056 failed name can no longer cause a transfer failure.
3057
3058 - Fixed the building of the rounding.h file on systems that need custom
3059 CPPFLAGS to be used. Also improved the error reporting if the building of
3060 rounding.h fails.
3061
3062 - Fixed the use of the `--protect-args` (`-s`) option when talking to a
3063 daemon.
3064
3065 - Fixed the `--ignore-existing` option's protection of files on the receiver
3066 that are non-regular files on the sender (e.g. if a symlink or a dir on the
3067 sender is trying to replace a file on the receiver). The reverse protection
3068 (protecting a dir/symlink/device from being replaced by a file) was already
3069 working.
3070
3071 - Fixed an assert failure if `--hard-links` is combined with an option that
3072 can skip a file in a set of hard-linked files (i.e. `--ignore-existing`,
3073 `--append`, etc.), without skipping all the files in the set.
3074
3075 - Avoid setting the modify time on a directory that already has the right
3076 modify time set. This avoids tweaking the dir's ctime.
3077
3078 - Improved the daemon-exclude handling to do a better job of applying the
3079 exclude rules to path entries. It also sends the user an error just as if
3080 the files were actually missing (instead of silently ignoring the user's
3081 args), and avoids sending the user the filter-action messages for these
3082 non-user-initiated rules.
3083
3084 - Fixed some glitches with the dry-run code's missing-directory handling,
3085 including a problem when combined with `--fuzzy`.
3086
3087 - Fixed some glitches with the skipped-directory handling.
3088
3089 - Fixed the 'T'-flag itemizing of symlinks when `--time` isn't preserved.
3090
3091 - Fixed a glitch in the itemizing of permissions with the `-E` option.
3092
3093 - The `--append` option's restricting of transfers to those that add data no
3094 longer prevents the updating of non-content changes to otherwise up-to-date
3095 files (i.e. those with the same content but differing permissions,
3096 ownership, xattrs, etc.).
3097
3098 - Don't allow `--fake-super` to be specified with `-XX` (double `--xattrs`)
3099 because the options conflict. If a daemon has `fake super` enabled, it
3100 automatically downgrades a `-XX` request to `-X`.
3101
3102 - Fixed a couple bugs in the parsing of daemon-config excludes that could make
3103 a floating exclude rule get treated as matching an absolute path.
3104
3105 - A daemon doesn't try to auto-refuse the `iconv` option if iconv-support
3106 wasn't compiled in to the daemon (avoiding a warning in the logs).
3107
3108 - Fixed the inclusion of per-dir merge files from implied dirs.
3109
3110 - Fixed the rrsync script to work with the latest options that rsync sends,
3111 including its flag-specifying use of `-e` to the server. (See the support
3112 dir.)
3113
3114 ### ENHANCEMENTS:
3115
3116 - Added the `--old-dirs` (`--old-d`) option to make it easier for a user to
3117 ask for file-listings with older rsync versions (this is easier than having
3118 to type `-r --exclude='/*/*'` manually).
3119
3120 - When getting an error while asking an older rsync daemon for a file listing,
3121 rsync will try to notice if the error is a rejection of the `--dirs` (`-d`)
3122 option and let the user know how to work around the issue.
3123
3124 - Added a few more `--no-OPTION` overrides.
3125
3126 - Improved the documentation of the `--append` option.
3127
3128 - Improved the documentation of the filter/exclude/include daemon parameters.
3129
3130 ### INTERNAL:
3131
3132 - Fixed a couple minor bugs in the included popt library (ones which I sent to
3133 the official popt project for inclusion in the 1.14 release).
3134
3135 - Fixed a stat() call that should have been `do_stat()` so that the proper
3136 normal/64-bit stat() function gets called. (Was in an area that should not
3137 have caused problems, though.)
3138
3139 - Changed the file-glob code to do a directory scan without using the `glob`
3140 and `glob.h`. This lets us do the globbing with less memory churn, and also
3141 avoid adding daemon-excluded items to the returned args.
3142
3143 ### DEVELOPER RELATED:
3144
3145 - The configure script tries to get the user's compiler to not warn about
3146 unused function parameters if the build is not including one or more of the
3147 ACL/xattrs/iconv features.
3148
3149 - The configure script now has better checks for figuring out if the included
3150 popt code should be used or not.
3151
3152 - Fixed two testsuite glitches: avoid a failure if someone's `cd` command
3153 outputs the current directory when cd-ing to a relative path, and made the
3154 itemized test query how rsync was built to determine if it should expect
3155 hard-linked symlinks or not.
3156
3157 - Updated the testsuite to verify that various bug fixes remain fixed.
3158
3159 - The RPM spec file was updated to have: (1) comments for how to use the
3160 rsync-patch tar file, and (2) an /etc/xinetd.d/rsync file.
3161
3162 - Updated the build scripts to work with a revised FTP directory structure.
3163
3164 ------------------------------------------------------------------------------
3165
3166 # NEWS for rsync 3.0.0 (1 Mar 2008)
3167
3168 ## Changes in this version:
3169
3170 ### PROTOCOL NUMBER:
3171
3172 - The protocol number was changed to 30.
3173
3174 ### NOTABLE CHANGES IN BEHAVIOR:
3175
3176 - The handling of implied directories when using `--relative` has changed to
3177 send them as directories (e.g. no implied dir is ever sent as a symlink).
3178 This avoids unexpected behavior and should not adversely affect most people.
3179 If you're one of those rare individuals who relied upon having an implied
3180 dir be duplicated as a symlink, you should specify the transfer of the
3181 symlink and the transfer of the referent directory as separate args. (See
3182 also `--keep-dirlinks` and `--no-implied-dirs`.) Also, exclude rules no
3183 longer have a partial effect on implied dirs.
3184
3185 - Requesting a remote file-listing without specifying `-r` (`--recursive`) now
3186 sends the `-d` (`--dirs`) option to the remote rsync rather than sending
3187 `-r` along with an extra exclude of `/*/*`. If the remote rsync does not
3188 understand the `-d` option (i.e. it is 2.6.3 or older), you will need to
3189 either turn off `-d` (`--no-d`), or specify `-r --exclude='/*/*'` manually.
3190
3191 - In `--dry-run` mode, the last line of the verbose summary text is output
3192 with a "(DRY RUN)" suffix to help remind you that no updates were made.
3193 Similarly, `--only-write-batch` outputs `(BATCH ONLY)`.
3194
3195 - A writable rsync daemon with `use chroot` disabled now defaults to a
3196 symlink-munging behavior designed to make symlinks safer while also allowing
3197 absolute symlinks to be stored and retrieved. This also has the effect of
3198 making symlinks unusable while they're in the daemon's hierarchy. See the
3199 daemon's `munge symlinks` parameter for details.
3200
3201 - Starting up an extra copy of an rsync daemon will not clobber the pidfile
3202 for the running daemon -- if the pidfile exists, the new daemon will exit
3203 with an error. This means that your wrapper script that starts the rsync
3204 daemon should be made to handle lock-breaking (if you want any automatic
3205 breaking of locks to be done).
3206
3207 ### BUG FIXES:
3208
3209 - A daemon with `use chroot = no` and excluded items listed in the daemon
3210 config file now properly checks an absolute-path arg specified for these
3211 options: `--compare-dest`, `--link-dest`, `--copy-dest`, `--partial-dir`,
3212 `--backup-dir`, `--temp-dir`, and `--files-from`.
3213
3214 - A daemon can now be told to disable all user- and group-name translation on
3215 a per-module basis. This avoids a potential problem with a writable daemon
3216 module that has `use chroot` enabled -- if precautions weren't taken, a user
3217 could try to add a missing library and get rsync to use it. This makes rsync
3218 safer by default, and more configurable when id-translation is not desired.
3219 See the daemon's `numeric ids` parameter for full details.
3220
3221 - A chroot daemon can now indicate which part of its path should affect the
3222 chroot call, and which part should become an inside-chroot path for the
3223 module. This allows you to have outside-the-transfer paths (such as for
3224 libraries) even when you enable chroot protection. The idiom used in the
3225 rsyncd.conf file is: `path = /chroot/dirs/./dirs/inside`
3226
3227 - If a file's data arrived successfully on the receiving side but the rename
3228 of the temporary file to the destination file failed AND the
3229 `--remove-source-files` (or the deprecated `--remove-sent-files`) option was
3230 specified, rsync no longer erroneously removes the associated source file.
3231
3232 - Fixed the output of `-ii` when combined with one of the `--*-dest` options:
3233 it now itemizes all the items, not just the changed ones.
3234
3235 - Made the output of all file types consistent when using a `--*-dest` option.
3236 Prior versions would output too many creation events for matching items.
3237
3238 - The code that waits for a child pid now handles being interrupted by a
3239 signal. This fixes a problem with the pre-xfer exec function not being able
3240 to get the exit status from the script.
3241
3242 - A negated filter rule (i.e. with a '!' modifier) no longer loses the
3243 negation when sending the filter rules to the remote rsync.
3244
3245 - Fixed a problem with the `--out-format` (aka `--log-format`) option %f: it
3246 no longer outputs superfluous directory info for a non-daemon rsync.
3247
3248 - Fixed a problem with `-vv` (double `--verbose`) and `--stats` when `pushing`
3249 files (which includes local copies). Version 2.6.9 would complete the copy,
3250 but exit with an error when the receiver output its memory stats.
3251
3252 - If `--password-file` is used on a non-daemon transfer, rsync now complains
3253 and exits. This should help users figure out that they can't use this option
3254 to control a remote shell's password prompt.
3255
3256 - Make sure that directory permissions of a newly-created destination
3257 directory are handled right when `--perms` is left off.
3258
3259 - The itemized output of a newly-created destination directory is now output
3260 as a creation event, not a change event.
3261
3262 - Improved `--hard-link` so that more corner cases are handled correctly when
3263 combined with options such as `--link-dest` and/or `--ignore-existing`.
3264
3265 - The `--append` option no longer updates a file that has the same size.
3266
3267 - Fixed a bug when combining `--backup` and `--backup-dir` with `--inplace`:
3268 any missing backup directories are now created.
3269
3270 - Fixed a bug when using `--backup` and `--inplace` with `--whole-file` or
3271 `--read-batch`: backup files are actually created now.
3272
3273 - The daemon pidfile is checked and created sooner in the startup sequence.
3274
3275 - If a daemon module's `path` value is not an absolute pathname, the code now
3276 makes it absolute internally (making it work properly).
3277
3278 - Ensure that a temporary file always has owner-write permission while we are
3279 writing to it. This avoids problems with some network filesystems when
3280 transferring read-only files.
3281
3282 - Any errors output about password-file reading no longer cause an error at
3283 the end of the run about a partial transfer.
3284
3285 - The `--read-batch` option for protocol 30 now ensures that several more
3286 options are set correctly for the current batch file: `--iconv`, `--acls`,
3287 `--xattrs`, `--inplace`, `--append`, and `--append-verify`.
3288
3289 - Using `--only-write-batch` to a daemon receiver now works properly (older
3290 versions would update some files while writing the batch).
3291
3292 - Avoid outputting a "file has vanished" message when the file is a broken
3293 symlink and `--copy-unsafe-links` or `--copy-dirlinks` is used (the code
3294 already handled this for `--copy-links`).
3295
3296 - Fixed the combination of `--only-write-batch` and `--dry-run`.
3297
3298 - Fixed rsync's ability to remove files that are not writable by the file's
3299 owner when rsync is running as the same user.
3300
3301 - When transferring large files, the sender's hashtable of checksums is kept
3302 at a more reasonable state of fullness (no more than 80% full) so that the
3303 scanning of the hashtable will not bog down as the number of blocks
3304 increases.
3305
3306 ### ENHANCEMENTS:
3307
3308 - A new incremental-recursion algorithm is now used when rsync is talking to
3309 another 3.x version. This starts the transfer going more quickly (before all
3310 the files have been found), and requires much less memory. See the
3311 `--recursive` option in the manpage for some restrictions.
3312
3313 - Lowered memory use in the non-incremental-recursion algorithm for typical
3314 option values (usually saving from 21-29 bytes per file).
3315
3316 - The default `--delete` algorithm is now `--delete-during` when talking to a
3317 3.x rsync. This is a faster scan than using `--delete-before` (which is the
3318 default when talking to older rsync versions), and is compatible with the
3319 new incremental recursion mode.
3320
3321 - Rsync now allows multiple remote-source args to be specified rather than
3322 having to rely on a special space-splitting side-effect of the remote-
3323 shell. Additional remote args must specify the same host or an empty one
3324 (e.g. empty: `:file1` or `::module/file2`). For example, this means that
3325 local use of brace expansion now works: `rsync -av host:dir/{f1,f2} .`
3326
3327 - Added the `--protect-args` (`-s`) option, that tells rsync to send most of
3328 the command-line args at the start of the transfer rather than as args to
3329 the remote-shell command. This protects them from space-splitting, and only
3330 interprets basic wildcard special shell characters (`*?[`).
3331
3332 - Added the `--delete-delay` option, which is a more efficient way to delete
3333 files at the end of the transfer without needing a separate delete pass.
3334
3335 - Added the `--acls` (`-A`) option to preserve Access Control Lists. This is
3336 an improved version of the prior patch that was available, and it even
3337 supports OS X ACLs. If you need to have backward compatibility with old,
3338 ACL-patched versions of rsync, apply the acls.diff file from the patches
3339 dir.
3340
3341 - Added the `--xattrs` (`-X`) option to preserve extended attributes. This is
3342 an improved version of the prior patch that was available, and it even
3343 supports OS X xattrs (which includes their resource fork data). If you need
3344 to have backward compatibility with old, xattr-patched versions of rsync,
3345 apply the xattrs.diff file from the patches dir.
3346
3347 - Added the `--fake-super` option that allows a non-super user to preserve all
3348 attributes of a file by using a special extended-attribute idiom. It even
3349 supports the storing of foreign ACL data on your backup server. There is
3350 also an analogous `fake super` parameter for an rsync daemon.
3351
3352 - Added the `--iconv` option, which allows rsync to convert filenames from one
3353 character-set to another during the transfer. The default is to make this
3354 feature available as long as your system has `iconv_open()`. If compilation
3355 fails, specify `--disable-iconv` to configure, and then rebuild. If you want
3356 rsync to perform character-set conversions by default, you can specify
3357 `--enable-iconv=CONVERT_STRING` with the default value for the `--iconv`
3358 option that you wish to use. For example, `--enable-iconv=.` is a good
3359 choice. See the rsync manpage for an explanation of the `--iconv` option's
3360 settings.
3361
3362 - A new daemon config parameter, `charset`, lets you control the character-
3363 set that is used during an `--iconv` transfer to/from a daemon module. You
3364 can also set your daemon to refuse `no-iconv` if you want to force the
3365 client to use an `--iconv` transfer (requiring an rsync 3.x client).
3366
3367 - Added the `--skip-compress=LIST` option to override the default list of file
3368 suffixes that will not be compressed when using `--compress` (`-z`).
3369
3370 - The daemon's default for `dont compress` was extended to include: `*.7z`
3371 `*.mp[34]` `*.mov` `*.avi` `*.ogg` `*.jpg` `*.jpeg` and the name-matching routine was also
3372 optimized to run more quickly.
3373
3374 - The `--max-delete` option now outputs a warning if it skipped any file
3375 deletions, including a count of how many deletions were skipped. (Older
3376 versions just silently stopped deleting things.)
3377
3378 - You may specify `--max-delete=0` to a 3.0.0 client to request that it warn
3379 about extraneous files without deleting anything. If you're not sure what
3380 version the client is, you can use the less-obvious `--max-delete=-1`, as
3381 both old and new versions will treat that as the same request (though older
3382 versions don't warn).
3383
3384 - The `--hard-link` option now uses less memory on both the sending and
3385 receiving side for all protocol versions. For protocol 30, the use of a
3386 hashtable on the sending side allows us to more efficiently convey to the
3387 receiver what files are linked together. This reduces the amount of data
3388 sent over the socket by a considerable margin (rather than adding more
3389 data), and limits the in-memory storage of the device+inode information to
3390 just the sending side for the new protocol 30, or to the receiving side when
3391 speaking an older protocol (note that older rsync versions kept the
3392 device+inode information on both sides).
3393
3394 - The filter rules now support a perishable (`p`) modifier that marks rules
3395 that should not have an effect in a directory that is being deleted. e.g.
3396 `-f '-p .svn/'` would only affect `live` .svn directories.
3397
3398 - Rsync checks all the alternate-destination args for validity (e.g.
3399 `--link-dest`). This lets the user know when they specified a directory that
3400 does not exist.
3401
3402 - If we get an ENOSYS error setting the time on a symlink, we don't complain
3403 about it anymore (for those systems that even support the setting of the
3404 modify-time on a symlink).
3405
3406 - Protocol 30 now uses MD5 checksums instead of MD4.
3407
3408 - Changed the `--append` option to not checksum the existing data in the
3409 destination file, which speeds up file appending.
3410
3411 - Added the `--append-verify` option, which works like the older `--append`
3412 option (verifying the existing data in the destination file). For
3413 compatibility with older rsync versions, any use of `--append` that is
3414 talking protocol 29 or older will revert to the `--append-verify` method.
3415
3416 - Added the `--contimeout=SECONDS` option that lets the user specify a
3417 connection timeout for rsync daemon access.
3418
3419 - Documented and extended the support for the `RSYNC_CONNECT_PROG` variable
3420 that can be used to enhance the client side of a daemon connection.
3421
3422 - Improved the dashes and double-quotes in the nroff manpage output.
3423
3424 - Rsync now supports a lot more `--no-OPTION` override options.
3425
3426 ### INTERNAL:
3427
3428 - The file-list sorting algorithm now uses a sort that keeps any same-named
3429 items in the same order as they were specified. This allows rsync to always
3430 ensure that the first of the duplicates is the one that will be included in
3431 the copy. The new sort is also faster than the glibc version of qsort() and
3432 mergesort().
3433
3434 - Rsync now supports the transfer of 64-bit timestamps (`time_t` values).
3435
3436 - Made the file-deletion code use a little less stack when recursing through a
3437 directory hierarchy of extraneous files.
3438
3439 - Fixed a build problem with older (2.x) versions of gcc.
3440
3441 - Added some isType() functions that make dealing with signed characters
3442 easier without forcing variables via casts.
3443
3444 - Changed strcat/strcpy/sprintf function calls to use safer versions.
3445
3446 - Upgraded the included popt version to 1.10.2 and improved its use of
3447 string-handling functions.
3448
3449 - Added missing prototypes for compatibility functions from the lib dir.
3450
3451 - Configure determines if iconv() has a const arg, allowing us to avoid a
3452 compiler warning.
3453
3454 - Made the sending of some numbers more efficient for protocol 30.
3455
3456 - Make sure that a daemon process doesn't mind if the client was weird and
3457 omitted the `--server` option.
3458
3459 - There are more internal logging categories available in protocol 30 than the
3460 age-old FINFO and FERROR, including `FERROR_XFER` and FWARN. These new
3461 categories allow some errors and warnings to go to stderr without causing an
3462 erroneous end-of-run warning about some files not being able to be
3463 transferred.
3464
3465 - Improved the use of `const` on pointers.
3466
3467 - Improved J.W.'s `pool_alloc` routines to add a way of incrementally freeing
3468 older sections of a pool's memory.
3469
3470 - The getaddrinfo.c compatibility code in the `lib` dir was replaced with some
3471 new code (derived from samba, derived from PostgreSQL) that has a better
3472 license than the old code.
3473
3474 ### DEVELOPER RELATED:
3475
3476 - Rsync is now licensed under the GPLv3 or later.
3477
3478 - Rsync is now being maintained in a `git` repository instead of CVS (though
3479 the old CVS repository still exists for historical access). Several
3480 maintenance scripts were updated to work with git.
3481
3482 - Generated files are no longer committed into the source repository. The
3483 autoconf and autoheader commands are now automatically run during the normal
3484 use of `configure` and `make`. The latest dev versions of all generated
3485 files can also be copied from the samba.org web site (see the prepare-source
3486 script's fetch option).
3487
3488 - The `patches` directory of diff files is now built from branches in the
3489 rsync git repository (branch patch/FOO creates file patches/FOO.diff). This
3490 directory is now distributed in a separate separate tar file named
3491 rsync-patches-VERSION.tar.gz instead of the main rsync-VERSION.tar.gz.
3492
3493 - The proto.h file is now built using a simple perl script rather than a
3494 complex awk script, which proved to be more widely compatible.
3495
3496 - When running the tests, we now put our per-test temp dirs into a sub-
3497 directory named testtmp (which is created, if missing). This allows someone
3498 to symlink the testtmp directory to another filesystem (which is useful if
3499 the build dir's filesystem does not support ACLs and xattrs, but another
3500 filesystem does).
3501
3502 - Rsync now has a way of handling protocol-version changes during the
3503 development of a new protocol version. This causes any out-of-sync versions
3504 to speak an older protocol rather than fail in a cryptic manner. This
3505 addition makes it safer to deploy a pre-release version that may interact
3506 with the public. This new exchange of sub-version info does not interfere
3507 with the `{MIN,MAX}_PROTOCOL_VERSION` checking algorithm (which does not
3508 have enough range to allow the main protocol number to be incremented for
3509 every minor tweak in that happens during development).
3510
3511 - The csprotocol.txt file was updated to mention the daemon protocol change in
3512 the 3.0.0 release.
3513
3514 ------------------------------------------------------------------------------
3515
3516 # NEWS for rsync 2.6.9 (6 Nov 2006)
3517
3518 ## Changes in this version:
3519
3520 ### BUG FIXES:
3521
3522 - If rsync is interrupted via a handled signal (such as SIGINT), it will once
3523 again clean-up its temp file from the destination dir.
3524
3525 - Fixed an overzealous sanitizing bug in the handling of the `--link-dest`,
3526 `--copy-dest`, and `--compare-dest` options to a daemon without chroot: if
3527 the copy's destination dir is deeper than the top of the module's path,
3528 these options now accept a safe number of parent-dir (../) references (since
3529 these options are relative to the destination dir). The old code incorrectly
3530 chopped off all `../` prefixes for these options, no matter how deep the
3531 destination directory was in the module's hierarchy.
3532
3533 - Fixed a bug where a deferred info/error/log message could get sent directly
3534 to the sender instead of being handled by rwrite() in the generator. This
3535 fixes an `unexpected tag 3` fatal error, and should also fix a potential
3536 problem where a deferred info/error message from the receiver might bypass
3537 the log file and get sent only to the client process. (These problems could
3538 only affect an rsync daemon that was receiving files.)
3539
3540 - Fixed a bug when `--inplace` was combined with a `--*-dest` option and we
3541 update a file's data using an alternate basis file. The code now notices
3542 that it needs to copy the matching data from the basis file instead of
3543 (wrongly) assuming that it was already present in the file.
3544
3545 - Fixed a bug where using `--dry-run` with a `--*-dest` option with a path
3546 relative to a directory that does not yet exist: the affected option gets
3547 its proper path value so that the output of the dry-run is right.
3548
3549 - Fixed a bug in the %f logfile escape when receiving files: the destination
3550 path is now included in the output (e.g. you can now tell when a user
3551 specifies a subdir inside a module).
3552
3553 - If the receiving side fails to create a directory, it will now skip trying
3554 to update everything that is inside that directory.
3555
3556 - If `--link-dest` is specified with `--checksum` but without `--times`, rsync
3557 will now allow a hard-link to be created to a matching link-dest file even
3558 when the file's modify-time doesn't match the server's file.
3559
3560 - The daemon now calls more timezone-using functions prior to doing a chroot.
3561 This should help some C libraries to generate proper timestamps from inside
3562 a chrooted daemon (and to not try to access /etc/timezone over and over
3563 again).
3564
3565 - Fixed a bug in the handling of an absolute `--partial-dir=ABS_PATH` option:
3566 it now deletes an alternate basis file from the partial-dir that was used to
3567 successfully update a destination file.
3568
3569 - Fixed a bug in the handling of `--delete-excluded` when using a per-dir
3570 merge file: the merge file is now honored on the receiving side, and only
3571 its unqualified include/exclude commands are ignored (just as is done for
3572 global include/excludes).
3573
3574 - Fixed a recent bug where `--delete` was not working when transferring from
3575 the root (/) of the filesystem with `--relative` enabled.
3576
3577 - Fixed a recent bug where an `--exclude='*'` could affect the root (/) of the
3578 filesystem with `--relative` enabled.
3579
3580 - When `--inplace` creates a file, it is now created with owner read/write
3581 permissions (0600) instead of no permissions at all. This avoids a problem
3582 continuing a transfer that was interrupted (since `--inplace` will not
3583 update a file that has no write permissions).
3584
3585 - If either `--remove-source-files` or `--remove-sent-files` is enabled and we
3586 are unable to remove the source file, rsync now outputs an error.
3587
3588 - Fixed a bug in the daemon's `incoming chmod` rule: newly-created directories
3589 no longer get the 'F' (file) rules applied to them.
3590
3591 - Fixed an infinite loop bug when a filter rule was rejected due to being
3592 overly long.
3593
3594 - When the server receives a `--partial-dir` option from the client, it no
3595 longer runs the client-side code that adds an assumed filter rule (since the
3596 client will be sending us the rules in the usual manner, and they may have
3597 chosen to override the auto-added rule).
3598
3599 ### ENHANCEMENTS:
3600
3601 - Added the `--log-file=FILE` and `--log-file-format=FORMAT` options. These
3602 can be used to tell any rsync to output what it is doing to a log file.
3603 They work with a client rsync, a non-daemon server rsync (see the manpage
3604 for instructions), and also allows the overriding of rsyncd.conf settings
3605 when starting a daemon.
3606
3607 - The `--log-format` option was renamed to be `--out-format` to avoid
3608 confusing it with affecting the log-file output. (The old option remains as
3609 an alias for the new to preserve backward compatibility.)
3610
3611 - Made `log file` and `syslog facility` settable on a per-module basis in the
3612 daemon's config file.
3613
3614 - Added the `--remove-source-files` option as a replacement for the (now
3615 deprecated) `--remove-sent-files` option. This new option removes all
3616 non-dirs from the source directories, even if the file was already
3617 up-to-date. This fixes a problem where interrupting an rsync that was using
3618 `--remove-sent-files` and restarting it could leave behind a file that the
3619 earlier rsync synchronized, but didn't get to remove. (The deprecated
3620 `--remove-sent-files` is still understood for now, and still behaves in the
3621 same way as before.)
3622
3623 - Added the option `--no-motd` to suppress the message-of-the-day output from
3624 a daemon when doing a copy. (See the manpage for a caveat.)
3625
3626 - Added a new environment variable to the pre-/post-xfer exec commands (in the
3627 daemon's config file): `RSYNC_PID`. This value will be the same in both the
3628 pre- and post-xfer commands, so it can be used as a unique ID if the
3629 pre-xfer command wants to cache some arg/request info for the post-xfer
3630 command.
3631
3632 ### INTERNAL:
3633
3634 - Did a code audit using IBM's code-checker program and made several changes,
3635 including: replacing most of the strcpy() and sprintf() calls with
3636 strlcpy(), snprintf(), and memcpy(), adding a 0-value to an enum that had
3637 been intermingling a literal 0 with the defined enum values, silencing some
3638 uninitialized memory checks, marking some functions with a `noreturn`
3639 attribute, and changing an `if` that could never succeed on some platforms
3640 into a pre-processor directive that conditionally compiles the code.
3641
3642 - Fixed a potential bug in `f_name_cmp()` when both the args are a top-level
3643 `.` dir (which doesn't happen in normal operations).
3644
3645 - Changed `exit_cleanup()` so that it can never return instead of exit. The
3646 old code might return if it found the `exit_cleanup()` function was being
3647 called recursively. The new code is segmented so that any recursive calls
3648 move on to the next step of the exit-processing.
3649
3650 - The macro WIFEXITED(stat) will now be defined if the OS didn't already
3651 define it.
3652
3653 ### DEVELOPER RELATED:
3654
3655 - The acls.diff and xattrs.diff patches have received a bunch of work to make
3656 them much closer to being acceptable in the main distribution. The xattrs
3657 patch also has some preliminary Mac OS X and FreeBSD compatibility code that
3658 various system types to exchange extended file-attributes.
3659
3660 - A new diff in the patches dir, fake-root.diff, allows rsync to maintain a
3661 backup hierarchy with full owner, group, and device info without actually
3662 running as root. It does this using a special extended attribute, so it
3663 depends on xattrs.diff (which depends on acls.diff).
3664
3665 - The rsync.yo and rsyncd.conf.yo files have been updated to work better with
3666 the latest yodl 2.x releases.
3667
3668 - Updated config.guess and config.sub to their 2006-07-02 versions.
3669
3670 - Updated various files to include the latest FSF address and to have
3671 consistent opening comments.
3672
3673 ------------------------------------------------------------------------------
3674
3675 # NEWS for rsync 2.6.8 (22 Apr 2006)
3676
3677 ## Changes in this version:
3678
3679 ### BUG FIXES:
3680
3681 - Fixed a bug in the exclude code where an anchored exclude without any
3682 wildcards fails to match an absolute source arg, but only when `--relative`
3683 is in effect.
3684
3685 - Improved the I/O code for the generator to fix a potential hang when the
3686 receiver gets an EOF on the socket but the generator's select() call never
3687 indicates that the socket is writable for it to be notified about the EOF.
3688 (This can happen when using stunnel).
3689
3690 - Fixed a problem with the file-reading code where a failed read (such as that
3691 caused by a bad sector) would not advance the file's read-position beyond
3692 the failed read's data.
3693
3694 - Fixed a logging bug where the `log file` directive was not being honored in
3695 a single-use daemon (one spawned by a remote-shell connection or by init).
3696
3697 - If rsync cannot honor the `--delete` option, we output an error and exit
3698 instead of silently ignoring the option.
3699
3700 - Fixed a bug in the `--link-dest` code that prevented special files (such as
3701 fifos) from being linked.
3702
3703 - The ability to hard-link symlinks and special files is now determined at
3704 configure time instead of at runtime. This fixes a bug with `--link-dest`
3705 creating a hard-link to a symlink's referent on a BSD system.
3706
3707 ### ENHANCEMENTS:
3708
3709 - In daemon mode, if rsync fails to bind to the requested port, the error(s)
3710 returned by socket() and/or bind() are now logged.
3711
3712 - When we output a fatal error, we now output the version of rsync in the
3713 message.
3714
3715 - Improved the documentation for the `--owner` and `--group` options.
3716
3717 - The rsyncstats script in `support` has an improved line-parsing regex that
3718 is easier to read and also makes it to parse syslog-generated lines.
3719
3720 - A new script in `support`: file-attr-restore, can be used to restore the
3721 attributes of a file-set (the permissions, ownership, and group info) taken
3722 from the cached output of a `find ARG... -ls` command.
3723
3724 ### DEVELOPER RELATED:
3725
3726 - Removed the unused function `write_int_named()`, the unused variable
3727 `io_read_phase`, and the rarely used variable `io_write_phase`. This also
3728 elides the confusing 'phase "unknown"' part of one error message.
3729
3730 - Removed two unused configure checks and two related (also unused)
3731 compatibility functions.
3732
3733 - The xattrs.diff patch received a security fix that prevents a potential
3734 buffer overflow in the `receive_xattr()` code.
3735
3736 - The acls.diff patch has been improved quite a bit, with more to come.
3737
3738 - A new patch was added: log-file.diff. This contains an early version of a
3739 future option, `--log-file=FILE`, that will allow any rsync to log its
3740 actions to a file (something that only a daemon supports at present).
3741
3742 ------------------------------------------------------------------------------
3743
3744 # NEWS for rsync 2.6.7 (11 Mar 2006)
3745
3746 ## Changes in this version:
3747
3748 ### OUTPUT CHANGES:
3749
3750 - The letter 'D' in the itemized output was being used for both devices
3751 (character or block) as well as other special files (such as fifos and named
3752 sockets). This has changed to separate non-device special files under the
3753 'S' designation (e.g. `cS+++++++ path/fifo`). See also the `--specials`
3754 option, below.
3755
3756 - The way rsync escapes unreadable characters has changed. First, rsync now
3757 has support for recognizing valid multi-byte character sequences in your
3758 current locale, allowing it to escape fewer characters than before for a
3759 locale such as UTF-8. Second, it now uses an escape idiom of `\#123`, which
3760 is the literal string `\#` followed by exactly 3 octal digits. Rsync no
3761 longer doubles a backslash character in a filename (e.g. it used to output
3762 `foo\\bar` when copying `foo\bar`) -- now it only escapes a backslash that
3763 is followed by a hash-sign and 3 digits (0-9) (e.g. it will output
3764 `foo\#134#789` when copying `foo\#789`). See also the `--8-bit-output`
3765 (`-8`) option, mentioned below.
3766
3767 Script writers: the local rsync is the one that outputs escaped names, so if
3768 you need to support unescaping of filenames for older rsyncs, I'd suggest
3769 that you parse the output of `rsync --version` and only use the old
3770 unescaping rules for 2.6.5 and 2.6.6.
3771
3772 ### BUG FIXES:
3773
3774 - Fixed a really old bug that caused `--checksum` (`-c`) to checksum all the
3775 files encountered during the delete scan (ouch).
3776
3777 - Fixed a potential hang in a remote generator: when the receiver gets a
3778 read-error on the socket, it now signals the generator about this so that
3779 the generator does not try to send any of the terminating error messages to
3780 the client (avoiding a potential hang in some setups).
3781
3782 - Made hard-links work with symlinks and devices again.
3783
3784 - If the sender gets an early EOF reading a source file, we propagate this
3785 error to the receiver so that it can discard the file and try requesting it
3786 again (which is the existing behavior for other kinds of read errors).
3787
3788 - If a device-file/special-file changes permissions, rsync now updates the
3789 permissions without recreating the file.
3790
3791 - If the user specifies a remote-host for both the source and destination, we
3792 now output a syntax error rather than trying to open the destination
3793 hostspec as a filename.
3794
3795 - When `--inplace` creates a new destination file, rsync now creates it with
3796 permissions 0600 instead of 0000 -- this makes restarting possible when the
3797 transfer gets interrupted in the middle of sending a new file.
3798
3799 - Reject the combination of `--inplace` and `--sparse` since the sparse-output
3800 algorithm doesn't work when overwriting existing data.
3801
3802 - Fixed the directory name in the error that is output when `pop_dir()` fails.
3803
3804 - Really fixed the parsing of a `!` entry in .cvsignore files this time.
3805
3806 - If the generator gets a stat() error on a file, output it (this used to
3807 require at least `-vv` for the error to be seen).
3808
3809 - If waitpid() fails or the child rsync didn't exit cleanly, we now handle the
3810 exit status properly and generate a better error.
3811
3812 - Fixed some glitches in the double-verbose output when using `--copy-dest`,
3813 `--link-dest`, or `--compare-dest`. Also improved how the verbose output
3814 handles hard-links (within the transfer) that had an up-to-date alternate
3815 `dest` file, and copied files (via `--copy-dest`).
3816
3817 - Fixed the matching of the dont-compress items (e.g. `*.gz`) against files
3818 that have a path component containing a slash.
3819
3820 - If the code reading a filter/exclude file gets an EINTR error, rsync now
3821 clears the error flag on the file handle so it can keep on reading.
3822
3823 - If `--relative` is active, the sending side cleans up trailing `/` or `/.`
3824 suffixes to avoid triggering a bug in older rsync versions. Also, we now
3825 reject a `..` dir if it would be sent as a relative dir.
3826
3827 - If a non-directory is in the way of a directory and rsync is run with
3828 `--dry-run` and `--delete`, rsync no longer complains about not being able
3829 to opendir() the not-yet present directory.
3830
3831 - When `--list-only` is used and a non-existent local destination dir was also
3832 specified as a destination, rsync no longer generates a warning about being
3833 unable to create the missing directory.
3834
3835 - Fixed some problems with `--relative --no-implied-dirs` when the destination
3836 directory did not yet exist: we can now create a symlink or device when it
3837 is the first thing in the missing dir, and `--fuzzy` no longer complains
3838 about being unable to open the missing dir.
3839
3840 - Fixed a bug where the `--copy-links` option would not affect implied
3841 directories without `--copy-unsafe-links` (see `--relative`).
3842
3843 - Got rid of the need for `--force` to be used in some circumstances with
3844 `--delete-after` (making it consistent with
3845 `--delete-before`/`--delete-during`).
3846
3847 - Rsync now ignores the SIGXFSZ signal, just in case your OS sends this when a
3848 file is too large (rsync handles the write error).
3849
3850 - Fixed a bug in the Proxy-Authorization header's base64-encoded value: it was
3851 not properly padded with trailing '=' chars. This only affects a user that
3852 need to use a password-authenticated proxy for an outgoing daemon-rsync
3853 connection.
3854
3855 - If we're transferring an empty directory to a new name, rsync no longer
3856 forces `S_IWUSR` if it wasn't already set, nor does it accidentally leave it
3857 set.
3858
3859 - Fixed a bug in the debug output (`-vvvvv`) that could mention the wrong
3860 checksum for the current file offset.
3861
3862 - Rsync no longer allows a single directory to be copied over a non-directory
3863 destination arg.
3864
3865 ### ENHANCEMENTS:
3866
3867 - Added the `--append` option that makes rsync append data onto files that are
3868 longer on the source than the destination (this includes new files).
3869
3870 - Added the `--min-size=SIZE` option to exclude small files from the transfer.
3871
3872 - Added the `--compress-level` option to allow you to set how aggressive
3873 rsync's compression should be (this option implies `--compress`).
3874
3875 - Enhanced the parsing of the SIZE value for `--min-size` and `--max-size` to
3876 allow easy entry of multiples of 1000 (instead of just multiples of 1024)
3877 and off-by-one values too (e.g. `--max-size=8mb-1`).
3878
3879 - Added the `--8-bit-output` (`-8`) option, which tells rsync to avoid
3880 escaping high-bit characters that it thinks are unreadable in the current
3881 locale.
3882
3883 - The new option `--human-readable` (`-h`) changes the output of `--progress`,
3884 `--stats`, and the end-of-run summary to be easier to read. If repeated, the
3885 units become powers of 1024 instead of powers of 1000. (The old meaning of
3886 `-h`, as a shorthand for `--help`, still works as long as you just use it on
3887 its own, as in `rsync -h`.)
3888
3889 - If lutimes() and/or lchmod() are around, use them to allow the preservation
3890 of attributes on symlinks.
3891
3892 - The `--link-dest` option now affects symlinks and devices (when possible).
3893
3894 - Added two config items to the rsyncd.conf parsing: `pre-xfer exec` and
3895 `post-xfer exec`. These allow a command to be specified on a per-module
3896 basis that will be run before and/or after a daemon-mode transfer. (See the
3897 manpage for a list of the environment variables that are set with
3898 information about the transfer.)
3899
3900 - When using the `--relative` option, you can now insert a dot dir in the
3901 source path to indicate where the replication of the source dirs should
3902 start. For example, if you specify a source path of
3903 rsync://host/module/foo/bar/./baz/dir with `-R`, rsync will now only
3904 replicate the `baz/dir` part of the source path (note: a trailing dot dir is
3905 unaffected unless it also has a trailing slash).
3906
3907 - Added some new `--no-FOO` options that make it easier to override unwanted
3908 implied or default options. For example, `-a --no-o` (aka `--archive
3909 --no-owner`) can be used to turn off the preservation of file ownership that
3910 is implied by `-a`.
3911
3912 - Added the `--chmod=MODE` option that allows the destination permissions to
3913 be changed from the source permissions. E.g. `--chmod=g+w,o-rwx`
3914
3915 - Added the `incoming chmod` and `outgoing chmod` daemon options that allow a
3916 module to specify what permissions changes should be applied to all files
3917 copied to and from the daemon.
3918
3919 - Allow the `--temp-dir` option to be specified when starting a daemon, which
3920 sets the default temporary directory for incoming files.
3921
3922 - If `--delete` is combined with `--dirs` without `--recursive`, rsync will
3923 now delete in any directory whose content is being synchronized.
3924
3925 - If `--backup` is combined with `--delete` without `--backup-dir` (and
3926 without `--delete-excluded`), we add a `protect` filter-rule to ensure that
3927 files with the backup suffix are not deleted.
3928
3929 - The file-count stats that are output by `--progress` were improved to better
3930 indicate what the numbers mean. For instance, the output: `(xfer#5,
3931 to-check=8383/9999)` indicates that this was the fifth file to be
3932 transferred, and we still need to check 8383 more files out of a total of
3933 9999.
3934
3935 - The include/exclude code now allows a `dir/***` directive (with 3 trailing
3936 stars) to match both the dir itself as well as all the content below the dir
3937 (`dir/**` would not match the dir).
3938
3939 - Added the `--prune-empty-dirs` (`-m`) option that makes the receiving rsync
3940 discard empty chains of directories from the file-list. This makes it easier
3941 to selectively copy files from a source hierarchy and end up with just the
3942 directories needed to hold the resulting files.
3943
3944 - If the `--itemize-changes` (`-i`) option is repeated, rsync now includes
3945 unchanged files in the itemized output (similar to `-vv`, but without all
3946 the other verbose messages that can get in the way). Of course, the client
3947 must be version 2.6.7 for this to work, but the remote rsync only needs to
3948 be 2.6.7 if you're pushing files.
3949
3950 - Added the `--specials` option to tell rsync to copy non-device special files
3951 (which rsync now attempts even as a normal user). The `--devices` option now
3952 requests the copying of just devices (character and block). The `-D` option
3953 still requests both (e.g. `--devices` and `--specials`), `-a` still implies
3954 `-D`, and non-root users still get a silent downgrade that omits device
3955 copying.
3956
3957 - Added the `--super` option to make the receiver always attempt super-user
3958 activities. This is useful for systems that allow things such as devices to
3959 be created or ownership to be set without being UID 0, and is also useful
3960 for someone who wants to ensure that errors will be output if the receiving
3961 rsync isn't being run as root.
3962
3963 - Added the `--sockopts` option for those few who want to customize the TCP
3964 options used to contact a daemon rsync.
3965
3966 - Added a way for the `--temp-dir` option to be combined with a partial-dir
3967 setting that lets rsync avoid non-atomic updates (for those times when
3968 `--temp-dir` is not being used because space is tight).
3969
3970 - A new support script, files-to-excludes, will transform a list of files into
3971 a set of include/exclude directives that will copy those files.
3972
3973 - A new option, `--executability` (`-E`) can be used to preserve just the
3974 execute bit on files, for those times when using the `--perms` option is not
3975 desired.
3976
3977 - The daemon now logs each connection and also each module-list request that
3978 it receives.
3979
3980 - New log-format options: %M (modtime), %U (uid), %G (gid), and %B (permission
3981 bits, e.g. `rwxr-xrwt`).
3982
3983 - The `--dry-run` option no longer forces the enabling of `--verbose`.
3984
3985 - The `--remove-sent-files` option now does a better job of incrementally
3986 removing the sent files on the sending side (older versions tended to clump
3987 up all the removals at the end).
3988
3989 - A daemon now supersedes its minimal SIGCHLD handler with the standard
3990 PID-remembering version after forking. This ensures that the generator can
3991 get the child-exit status from the receiver.
3992
3993 - Use of the `--bwlimit` option no longer interferes with the remote rsync
3994 sending error messages about invalid/refused options.
3995
3996 - Rsync no longer returns a usage error when used with one local source arg
3997 and no destination: this now implies the `--list-only` option, just like the
3998 comparable situation with a remote source arg.
3999
4000 - Added the `--copy-dirlinks` option, a more limited version of
4001 `--copy-links`.
4002
4003 - Various documentation improvements, including: a better synopsis, some
4004 improved examples, a better discussion of the presence and absence of
4005 `--perms` (including how it interacts with the new `--executability` and
4006 `--chmod` options), an extended discussion of `--temp-dir`, an improved
4007 discussion of `--partial-dir`, a better description of rsync's pattern
4008 matching characters, an improved `--no-implied-dirs` section, and the
4009 documenting of what the `--stats` option outputs.
4010
4011 - Various new and updated diffs in the patches dir, including: acls.diff,
4012 xattrs.diff, atimes.diff, detect-renamed.diff, and slp.diff.
4013
4014 ### INTERNAL:
4015
4016 - We now use sigaction() and sigprocmask() if possible, and fall back on
4017 signal() if not. Using sigprocmask() ensures that rsync enables all the
4018 signals that it needs, just in case it was started in a masked state.
4019
4020 - Some buffer sizes were expanded a bit, particularly on systems where
4021 MAXPATHLEN is overly small (e.g. Cygwin).
4022
4023 - If `io_printf()` tries to format more data than fits in the buffer, exit
4024 with an error instead of transmitting a truncated buffer.
4025
4026 - If a `va_copy` macro is defined, lib/snprintf.c will use it when defining
4027 the `VA_COPY` macro.
4028
4029 - Reduced the amount of stack memory needed for each level of directory
4030 recursion by nearly MAXPATHLEN bytes.
4031
4032 - The wildmatch function was extended to allow an array of strings to be
4033 supplied as the string to match. This allows the exclude code to do less
4034 string copying.
4035
4036 - Got rid of the `safe_fname()` function (and all the myriad calls) and
4037 replaced it with a new function in the log.c code that filters all the
4038 output going to the terminal.
4039
4040 - Unified the `f_name()` and the `f_name_to()` functions.
4041
4042 - Improved the hash-table code the sender uses to handle checksums to make it
4043 use slightly less memory and run just a little faster.
4044
4045 ### DEVELOPER RELATED:
4046
4047 - The diffs in the patches dir now require `patch -p1 <DIFF` instead of the
4048 previous `-p0`. Also, the version included in the release tar now affect
4049 generated files (e.g. configure, rsync.1, proto.h, etc.), so it is no longer
4050 necessary to run autoconf and/or yodl unless you're applying a patch that
4051 was checked out from CVS.
4052
4053 - Several diffs in the patches dir now use the proper `--enable-FOO` configure
4054 option instead of `--with-FOO` to turn on the inclusion of the newly patched
4055 feature.
4056
4057 - There is a new script, `prepare-source` than can be used to update the
4058 various generated files (proto.h, configure, etc.) even before configure has
4059 created the Makefile (this is mainly useful when patching the source with a
4060 patch that doesn't affect generated files).
4061
4062 - The testsuite now sets HOME so that it won't be affected by a file such as
4063 ~/.popt.
4064
4065 ------------------------------------------------------------------------------
4066
4067 # NEWS for rsync 2.6.6 (28 Jul 2005)
4068
4069 ## Changes in this version:
4070
4071 ### SECURITY FIXES:
4072
4073 - The zlib code was upgraded to version 1.2.3 in order to make it more secure.
4074 While the widely-publicized security problem in zlib 1.2.2 did not affect
4075 rsync, another security problem surfaced that affects rsync's zlib 1.1.4.
4076
4077 ### BUG FIXES:
4078
4079 - The setting of `flist->high` in `clean_flist()` was wrong for an empty list.
4080 This could cause `flist_find()` to crash in certain rare circumstances (e.g.
4081 if just the right directory setup was around when `--fuzzy` was combined
4082 with `--link-dest`).
4083
4084 - The outputting of hard-linked files when verbosity was > 1 was not right:
4085 (1) Without `-i` it would output the name of each hard-linked file as though
4086 it had been changed; it now outputs a `is hard linked` message for the file.
4087 (2) With `-i` it would output all dots for the unchanged attributes of a
4088 hard-link; it now changes those dots to spaces, as is done for other totally
4089 unchanged items.
4090
4091 - When backing up a changed symlink or device, get rid of any old backup item
4092 so that we don't get an `already exists` error.
4093
4094 - A couple places that were comparing a local and a remote modification-time
4095 were not honoring the `--modify-window` option.
4096
4097 - Fixed a bug where the 'p' (permissions) itemized-changes flag might get set
4098 too often (if some non-significant mode bits differed).
4099
4100 - Fixed a really old, minor bug that could cause rsync to warn about being
4101 unable to mkdir() a path that ends in `/.` because it just created the
4102 directory (required `--relative`, `--no-implied-dirs`, a source path that
4103 ended in either a trailing slash or a trailing `/.`, and a non-existing
4104 destination dir to tickle the bug in a recent version).
4105
4106 ### ENHANCEMENTS:
4107
4108 - Made the `max verbosity` setting in the rsyncd.conf file settable on a
4109 per-module basis (which now matches the documentation).
4110
4111 - The rrsync script has been upgraded to verify the args of options that take
4112 args (instead of rejecting any such options). It was also changed to try to
4113 be more secure and to fix a problem in the parsing of a pull operation that
4114 has multiple source args. (See the support dir.)
4115
4116 - Improved the documentation that explains the difference between a normal
4117 daemon transfer and a daemon-over remote-shell transfer.
4118
4119 - Some of the diffs supplied in the patches dir were fixed and/or improved.
4120
4121 ### BUILD CHANGES:
4122
4123 - Made configure define `NOBODY_USER` (currently hard-wired to `nobody`) and
4124 `NOBODY_GROUP` (set to either `nobody` or `nogroup` depending on what we
4125 find in the /etc/group file).
4126
4127 - Added a test to the test suite, itemized.test, that tests the output of `-i`
4128 (log-format w/%i) and some double-verbose messages.
4129
4130 ------------------------------------------------------------------------------
4131
4132 # NEWS for rsync 2.6.5 (1 Jun 2005)
4133
4134 ## Changes in this version:
4135
4136 ### OUTPUT CHANGES:
4137
4138 - Non-printable chars in filenames are now output using backslash-escaped
4139 characters rather than '?'s. Any non-printable character is output using 3
4140 digits of octal (e.g. `\n` -> `\012`), and a backslash is now output as
4141 `\\`. Rsync also uses your locale setting, which can make it treat fewer
4142 high-bit characters as non-printable.
4143
4144 - If rsync received an empty file-list when pulling files, it would output a
4145 `nothing to do` message and exit with a 0 (success) exit status, even if the
4146 remote rsync returned an error (it did not do this under the same conditions
4147 when pushing files). This was changed to make the pulling behavior the same
4148 as the pushing behavior: we now do the normal end-of-run outputting
4149 (depending on options) and exit with the appropriate exit status.
4150
4151 ### BUG FIXES:
4152
4153 - A crash bug was fixed when a daemon had its `path` set to `/`, did not have
4154 chroot enabled, and used some anchored excludes in the rsyncd.conf file.
4155
4156 - Fixed a bug in the transfer of a single file when `-H` is specified (rsync
4157 would either infinite loop or perhaps crash).
4158
4159 - Fixed a case where the generator might try (and fail) to tweak the
4160 write-permissions of a read-only directory in list-only mode (this only
4161 caused an annoying warning message).
4162
4163 - If `--compare-dest` or `--link-dest` uses a locally-copied file as the basis
4164 for an updated version, log this better when `--verbose` or `-i` is in
4165 effect.
4166
4167 - Fixed the accidental disabling of `--backup` during the `--delete-after`
4168 processing.
4169
4170 - Restored the ability to use the `--address` option in client mode (in
4171 addition to its use in daemon mode).
4172
4173 - Make sure that some temporary progress information from the delete
4174 processing does not get left on the screen when it is followed by a newline.
4175
4176 - When `--existing` skips a directory with extra verbosity, refer to it as a
4177 `directory`, not a `file`.
4178
4179 - When transferring a single file to a different-named file, any generator
4180 messages that are source-file related no longer refer to the file by the
4181 destination filename.
4182
4183 - Fixed a bug where hard-linking a group of files might fail if the generator
4184 hasn't created a needed destination directory yet.
4185
4186 - Fixed a bug where a hard-linked group of files that is newly-linked to a
4187 file in a `--link-dest` dir doesn't link the files from the rest of the
4188 cluster.
4189
4190 - When deleting files with the `--one-file-system` (`-x`) option set, rsync no
4191 longer tries to remove files from inside a mount-point on the receiving
4192 side. Also, we don't complain about being unable to remove the mount-point
4193 dir.
4194
4195 - Fixed a compatibility problem when using `--cvs-ignore` (`-C`) and sending
4196 files to an older rsync without using `--delete`.
4197
4198 - Make sure that a `- !` or `+ !` include/exclude pattern does not trigger the
4199 list-clearing action that is reserved for `!`.
4200
4201 - Avoid a timeout in the generator when the sender/receiver aren't handling
4202 the generator's checksum output quickly enough.
4203
4204 - Fixed the omission of some directories in the delete processing when
4205 `--relative` (`-R`) was combined with a source path that had a trailing
4206 slash.
4207
4208 - Fixed a case where rsync would erroneously delete some files and then
4209 re-transfer them when the options `--relative` (`-R`) and `--recursive`
4210 (`-r`) were both enabled (along with `--delete`) and a source path had a
4211 trailing slash.
4212
4213 - Make sure that `--max-size` doesn't affect a device or a symlink.
4214
4215 - Make sure that a system with a really small MAXPATHLEN does not cause the
4216 buffers in `readfd_unbuffered()` to be too small to receive normal messages.
4217 (This mainly affected Cygwin.)
4218
4219 - If a source pathname ends with a filename of `..`, treat it as if `../` had
4220 been specified (so that we don't copy files to the parent dir of the
4221 destination).
4222
4223 - If `--delete` is combined with a file-listing rsync command (i.e. no
4224 transfer is happening), avoid outputting a warning that we couldn't delete
4225 anything.
4226
4227 - If `--stats` is specified with `--delete-after`, ensure that all the
4228 `deleting` messages are output before the statistics.
4229
4230 - Improved one `if` in the deletion code that was only checking errno for
4231 ENOTEMPTY when it should have also been checking for EEXIST (for
4232 compatibility with OS variations).
4233
4234 ### ENHANCEMENTS:
4235
4236 - Added the `--only-write-batch=FILE` option that may be used (instead of
4237 `--write-batch=FILE`) to create a batch file without doing any actual
4238 updating of the destination. This allows you to divert all the file-updating
4239 data away from a slow data link (as long as you are pushing the data to the
4240 remote server when creating the batch).
4241
4242 - When the generator is taking a long time to fill up its output buffer (e.g.
4243 if the transferred files are few, small, or missing), it now periodically
4244 flushes the output buffer so that the sender/receiver can get started on the
4245 files sooner rather than later.
4246
4247 - Improved the keep-alive code to handle a long silence between the sender and
4248 the receiver that can occur when the sender is receiving the checksum data
4249 for a large file.
4250
4251 - Improved the auth-errors that are logged by the daemon to include some
4252 information on why the authorization failed: wrong user, password mismatch,
4253 etc. (The client-visible message is unchanged!)
4254
4255 - Improved the client's handling of an `@ERROR` from a daemon so that it does
4256 not complain about an unexpectedly closed socket (since we really did expect
4257 the socket to close).
4258
4259 - If the daemon can't open the log-file specified in rsyncd.conf, fall back to
4260 using syslog and log an appropriate warning. This is better than what was
4261 typically a totally silent (and fatal) failure (since a daemon is not
4262 usually run with the `--no-detach` option that was necessary to see the
4263 error on stderr).
4264
4265 - The manpages now consistently refer to an rsync daemon as a `daemon`
4266 instead of a `server` (to distinguish it from the server process in a
4267 non-daemon transfer).
4268
4269 - Made a small change to the rrsync script (restricted rsync -- in the support
4270 dir) to make a read-only server reject all `--remove-*` options when sending
4271 files (to future-proof it against the possibility of other similar options
4272 being added at some point).
4273
4274 ### INTERNAL:
4275
4276 - Rsync now calls `setlocale(LC_CTYPE, "")`. This enables isprint() to better
4277 discern which filename characters need to be escaped in messages (which
4278 should result in fewer escaped characters in some locales).
4279
4280 - Improved the naming of the log-file open/reopen/close functions.
4281
4282 - Removed some protocol-compatibility code that was only needed to help
4283 someone running a pre-release of 2.6.4.
4284
4285 ### BUILD CHANGES:
4286
4287 - Added configure option `--disable-locale` to disable any use of setlocale()
4288 in the binary.
4289
4290 - Fixed a bug in the `SUPPORT{,_HARD}_LINKS` #defines which prevented rsync
4291 from being built without symlink or hard-link support.
4292
4293 - Only #define `HAVE_REMSH` if it is going to be set to 1.
4294
4295 - Configure now disables the use of mkstemp() under HP-UX (since they refuse
4296 to fix its broken handling of large files).
4297
4298 - Configure now explicitly checks for the lseek64() function so that the code
4299 can use `HAVE_LSEEK64` instead of inferring lseek64()'s presence based on
4300 the presence of the `off64_t` type.
4301
4302 - Configure no longer mentions the change in the default remote-shell (from
4303 rsh to ssh) that occurred for the 2.6.0 release.
4304
4305 - Some minor enhancements to the test scripts.
4306
4307 - Added a few new `*.diff` files to the patches dir, including a patch that
4308 enables the optional copying of extended attributes.
4309
4310 ------------------------------------------------------------------------------
4311
4312 # NEWS for rsync 2.6.4 (30 March 2005)
4313
4314 ## Changes in this version:
4315
4316 ### PROTOCOL NUMBER:
4317
4318 - The protocol number was changed to 29.
4319
4320 ### OUTPUT CHANGES:
4321
4322 - When rsync deletes a directory and outputs a verbose message about it, it
4323 now appends a trailing slash to the name instead of (only sometimes)
4324 outputting a preceding "directory " string.
4325
4326 - The `--stats` output will contain file-list time-statistics if both sides
4327 are 2.6.4, or if the local side is 2.6.4 and the files are being pushed
4328 (since the stats come from the sending side). (Requires protocol 29 for a
4329 pull.)
4330
4331 - The `%o` (operation) log-format escape now has a third value (besides `send`
4332 and `recv`): `del.` (with trailing dot to make it 4 chars). This changes
4333 the way deletions are logged in the daemon's log file.
4334
4335 - When the `--log-format` option is combined with `--verbose`, rsync now
4336 avoids outputting the name of the file twice in most circumstances. As long
4337 as the `--log-format` item does not refer to any post-transfer items (such
4338 as %b or %c), the `--log-format` message is output prior to the transfer, so
4339 `--verbose` is now the equivalent of a `--log-format` of '%n%L' (which
4340 outputs the name and any link info). If the log output must occur after the
4341 transfer to be complete, the only time the name is also output prior to the
4342 transfer is when `--progress` was specified (so that the name will precede
4343 the progress stats, and the full `--log-format` output will come after).
4344
4345 - Non-printable characters in filenames are replaced with a '?' to avoid
4346 corrupting the screen or generating empty lines in the output.
4347
4348 ### BUG FIXES:
4349
4350 - Restore the list-clearing behavior of `!` in a .cvsignore file (2.6.3 was
4351 only treating it as a special token in an rsync include/exclude file).
4352
4353 - The combination of `--verbose` and `--dry-run` now mentions the full list of
4354 changes that would be output without `--dry-run`.
4355
4356 - Avoid a mkdir warning when removing a directory in the destination that
4357 already exists in the `--backup-dir`.
4358
4359 - An OS that has a binary mode for its files (such as Cygwin) needed
4360 `setmode(fd, O_BINARY)` called on the temp-file we opened with mkstemp().
4361 (Fix derived from Cygwin's 2.6.3 rsync package.)
4362
4363 - Fixed a potential hang when verbosity is high, the client side is the
4364 sender, and the file-list is large.
4365
4366 - Fixed a potential protocol-corrupting bug where the generator could merge a
4367 message from the receiver into the middle of a multiplexed packet of data if
4368 only part of that data had been written out to the socket when the message
4369 from the generator arrived.
4370
4371 - We now check if the OS doesn't support using mknod() for creating FIFOs and
4372 sockets, and compile-in some compatibility code using mkfifo() and socket()
4373 when necessary.
4374
4375 - Fixed an off-by-one error in the handling of `--max-delete=N`. Also, if the
4376 `--max-delete` limit is exceeded during a run, we now output a warning about
4377 this at the end of the run and exit with a new error code (25).
4378
4379 - One place in the code wasn't checking if fork() failed.
4380
4381 - The `ignore nonreadable` daemon parameter used to erroneously affect
4382 readable symlinks that pointed to a non-existent file.
4383
4384 - If the OS does not have lchown() and a chown() of a symlink will affect the
4385 referent of a symlink (as it should), we no longer try to set the user and
4386 group of a symlink.
4387
4388 - The generator now properly runs the hard-link loop and the dir-time
4389 rewriting loop after we're sure that the redo phase is complete.
4390
4391 - When `--backup` was specified with `--partial-dir=DIR`, where DIR is a
4392 relative path, the backup code was erroneously trying to backup a file that
4393 was put into the partial-dir.
4394
4395 - If a file gets resent in a single transfer and the `--backup` option is
4396 enabled along with `--inplace`, rsync no longer performs a duplicate backup
4397 (it used to overwrite the first backup with the failed file).
4398
4399 - One call to `flush_write_file()` was not being checked for an error.
4400
4401 - The `--no-relative` option was not being sent from the client to a server
4402 sender.
4403
4404 - If an rsync daemon specified `dont compress = ...` for a file and the client
4405 tried to specify `--compress`, the libz code was not handling a compression
4406 level of 0 properly. This could cause a transfer failure if the block-size
4407 for a file was large enough (e.g. rsync might have exited with an error for
4408 large files).
4409
4410 - Fixed a bug that would sometimes surface when using `--compress` and sending
4411 a file with a block-size larger than 64K (either manually specified, or
4412 computed due to the file being really large). Prior versions of rsync would
4413 sometimes fail to decompress the data properly, and thus the transferred
4414 file would fail its verification.
4415
4416 - If a daemon can't open the specified log file (i.e. syslog is not being
4417 used), die without crashing. We also output an error about the failure on
4418 stderr (which will only be seen if `--no-detach` was specified) and exit
4419 with a new error code (6).
4420
4421 - A local transfer no longer duplicates all its include/exclude options (since
4422 the forked process already has a copy of the exclude list, there's no need
4423 to send them a set of duplicates).
4424
4425 - The output of the items that are being updated by the generator (dirs,
4426 symlinks, devices) is now intermingled in the proper order with the output
4427 from the items that the receiver is updating (regular files) when pulling.
4428 This misordering was particularly bad when `--progress` was specified.
4429 (Requires protocol 29.)
4430
4431 - When `--timeout` is specified, lulls that occur in the transfer while the
4432 generator is doing work that does not generate socket traffic (looking for
4433 changed files, deleting files, doing directory-time touch-ups, etc.) will
4434 cause a new keep-alive packet to be sent that should keep the transfer going
4435 as long as the generator continues to make progress. (Requires protocol 29.)
4436
4437 - The stat size of a device is not added to the total file size of the items
4438 in the transfer (the size might be undefined on some OSes).
4439
4440 - Fixed a problem with refused-option messages sometimes not making it back to
4441 the client side when a remote `--files-from` was in effect and the daemon
4442 was the receiver.
4443
4444 - The `--compare-dest` option was not updating a file that differed in (the
4445 preserved) attributes from the version in the compare-dest DIR.
4446
4447 - When rsync is copying files into a write-protected directory, fixed the
4448 change-report output for the directory so that we don't report an identical
4449 directory as changed.
4450
4451 ### ENHANCEMENTS:
4452
4453 - Rsync now supports popt's option aliases, which means that you can use
4454 /etc/popt and/or ~/.popt to create your own option aliases.
4455
4456 - Added the `--delete-during` (`--del`) option which will delete files from
4457 the receiving side incrementally as each directory in the transfer is being
4458 processed. This makes it more efficient than the default,
4459 before-the-transfer behavior, which is now also available as
4460 `--delete-before` (and is still the default `--delete-WHEN` option that will
4461 be chosen if `--delete` or `--delete-excluded` is specified without a
4462 `--delete-WHEN` choice). All the `--del*` options infer `--delete`, so an
4463 rsync daemon that refuses `delete` will still refuse to allow any
4464 file-deleting options (including the new `--remove-sent-files` option).
4465
4466 - All the `--delete-WHEN` options are now more memory efficient: Previously an
4467 duplicate set of file-list objects was created on the receiving side for the
4468 entire destination hierarchy. The new algorithm only creates one directory
4469 of objects at a time (for files inside the transfer).
4470
4471 - Added the `--copy-dest` option, which works like `--link-dest` except that
4472 it locally copies identical files instead of hard-linking them.
4473
4474 - Added support for specifying multiple `--compare-dest`, `--copy-dest`, or
4475 `--link-dest` options, but only of a single type. (Promoted from the patches
4476 dir and enhanced.) (Requires protocol 29.)
4477
4478 - Added the `--max-size` option. (Promoted from the patches dir.)
4479
4480 - The daemon-mode options are now separated from the normal rsync options so
4481 that they can't be mixed together. This makes it impossible to start a
4482 daemon that has improper default option values (which could cause problems
4483 when a client connects, such as hanging or crashing).
4484
4485 - The `--bwlimit` option may now be used in combination with `--daemon` to
4486 specify both a default value for the daemon side and a value that cannot be
4487 exceeded by a user-specified `--bwlimit` option.
4488
4489 - Added the `port` parameter to the rsyncd.conf file. (Promoted from the
4490 patches dir.) Also added `address`. The command-line options take precedence
4491 over a config-file option, as expected.
4492
4493 - In `_exit_cleanup()`: when we are exiting with a partially-received file, we
4494 now flush any data in the write-cache before closing the partial file.
4495
4496 - The `--inplace` support was enhanced to work with `--compare-dest`,
4497 `--link-dest`, and (the new) `--copy-dest` options. (Requires protocol 29.)
4498
4499 - Added the `--dirs` (`-d`) option for an easier way to copy directories
4500 without recursion. Any directories that are encountered are created on the
4501 destination. Specifying a directory with a trailing slash copies its
4502 immediate contents to the destination.
4503
4504 - The `--files-from` option now implies `--dirs` (`-d`).
4505
4506 - Added the `--list-only` option, which is mainly a way for the client to put
4507 the server into listing mode without needing to resort to any internal
4508 option kluges (e.g. the age-old use of `-r --exclude='/*/*'` for a
4509 non-recursive listing). This option is used automatically (behind the
4510 scenes) when a modern rsync speaks to a modern daemon, but may also be
4511 specified manually if you want to force the use of the `--list-only` option
4512 over a remote-shell connection.
4513
4514 - Added the `--omit-dir-times` (`-O`) option, which will avoid updating the
4515 modified time for directories when `--times` was specified. This option will
4516 avoid an extra pass through the file-list at the end of the transfer (to
4517 tweak all the directory times), which may provide an appreciable speedup for
4518 a really large transfer. (Promoted from the patches dir.)
4519
4520 - Added the `--filter` (`-f`) option and its helper option, `-F`. Filter rules
4521 are an extension to the existing include/exclude handling that also supports
4522 nested filter files as well as per-directory filter files (like .cvsignore,
4523 but with full filter-rule parsing). This new option was chosen in order to
4524 ensure that all existing include/exclude processing remained 100% compatible
4525 with older versions. Protocol 29 is needed for full filter-rule support, but
4526 backward-compatible rules work with earlier protocol versions. (Promoted
4527 from the patches dir and enhanced.)
4528
4529 - Added the `--delay-updates` option that puts all updated files into a
4530 temporary directory (by default `.~tmp~`, but settable via the
4531 `--partial-dir=DIR` option) until the end of the transfer. This makes the
4532 updates a little more atomic for a large transfer.
4533
4534 - If rsync is put into the background, any output from `--progress` is
4535 reduced.
4536
4537 - Documented the `max verbosity` setting for rsyncd.conf. (This setting was
4538 added a couple releases ago, but left undocumented.)
4539
4540 - The sender and the generator now double-check the file-list index they are
4541 given, and refuse to try to do a file transfer on a non-file index (since
4542 that would indicate that something had gone very wrong).
4543
4544 - Added the `--itemize-changes` (`-i`) option, which is a way to output a more
4545 detailed list of what files changed and in what way. The effect is the same
4546 as specifying a `--log-format` of `%i %n%L` (see both the rsync and
4547 rsyncd.conf manpages). Works with `--dry-run` too.
4548
4549 - Added the `--fuzzy` (`-y`) option, which attempts to find a basis file for a
4550 file that is being created from scratch. The current algorithm only looks in
4551 the destination directory for the created file, but it does attempt to find
4552 a match based on size/mod-time (in case the file was renamed with no other
4553 changes) as well as based on a fuzzy name-matching algorithm. This option
4554 requires protocol 29 because it needs the new file-sorting order. (Promoted
4555 from patches dir and enhanced.) (Requires protocol 29.)
4556
4557 - Added the `--remove-sent-files` option, which lets you move files between
4558 systems.
4559
4560 - The hostname in HOST:PATH or HOST::PATH may now be an IPv6 literal enclosed
4561 in '[' and ']' (e.g. `[::1]`). (We already allowed IPv6 literals in the
4562 rsync://HOST:PORT/PATH format.)
4563
4564 - When rsync recurses to build the file list, it no longer keeps open one or
4565 more directory handles from the dir's parent dirs.
4566
4567 - When building under windows, the default for `--daemon` is now to avoid
4568 detaching, requiring the new `--detach` option to force rsync to detach.
4569
4570 - The `--dry-run` option can now be combined with either `--write-batch` or
4571 `--read-batch`, allowing you to run a do-nothing test command to see what
4572 would happen without `--dry-run`.
4573
4574 - The daemon's `read only` config item now sets an internal `read_only`
4575 variable that makes extra sure that no write/delete calls on the read-only
4576 side can succeed.
4577
4578 - The log-format % escapes can now have a numeric field width in between the %
4579 and the escape letter (e.g. `%-40n %08p`).
4580
4581 - Improved the option descriptions in the `--help` text.
4582
4583 ### SUPPORT FILES:
4584
4585 - Added atomic-rsync to the support dir: a perl script that will transfer some
4586 files using rsync, and then move the updated files into place all at once at
4587 the end of the transfer. Only works when pulling, and uses `--link-dest` and
4588 a parallel hierarchy of files to effect its update.
4589
4590 - Added mnt-excl to the support dir: a perl script that takes the /proc/mounts
4591 file and translates it into a set of excludes that will exclude all mount
4592 points (even mapped mounts to the same disk). The excludes are made relative
4593 to the specified source dir and properly anchored.
4594
4595 - Added savetransfer.c to the support dir: a C program that can make a copy of
4596 all the data that flows over the wire. This lets you test for data
4597 corruption (by saving the data on both the sending side and the receiving
4598 side) and provides one way to debug a protocol error.
4599
4600 - Added rrsync to the support dir: this is an updated version of Joe Smith's
4601 restricted rsync perl script. This helps to ensure that only certain rsync
4602 commands can be run by an ssh invocation.
4603
4604 ### INTERNAL:
4605
4606 - Added better checking of the checksum-header values that come over the
4607 socket.
4608
4609 - Merged a variety of file-deleting functions into a single function so that
4610 it is easier to maintain.
4611
4612 - Improved the type of some variables (particularly blocksize vars) for
4613 consistency and proper size.
4614
4615 - Got rid of the uint64 type (which we didn't need).
4616
4617 - Use a slightly more compatible set of core #include directives.
4618
4619 - Defined int32 in a way that ensures that the build dies if we can't find a
4620 variable with at least 32 bits.
4621
4622 ### PROTOCOL DIFFERENCES FOR VERSION 29:
4623
4624 - A 16-bit flag-word is transmitted after every file-list index. This
4625 indicates what is changing between the sender and the receiver. The
4626 generator now transmits an index and a flag-word to indicate when dirs and
4627 symlinks have changed (instead of producing a message), which makes the
4628 outputting of the information more consistent and less prone to screen
4629 corruption (because the local receiver/sender is now outputting all the
4630 file-change info messages).
4631
4632 - If a file is being hard-linked, the `ITEM_XNAME_FOLLOWS` bit is enabled in
4633 the flag-word and the name of the file that was linked immediately follows
4634 in vstring format (see below).
4635
4636 - If a file is being transferred with an alternate-basis file, the
4637 `ITEM_BASIS_TYPE_FOLLOWS` bit is enabled in the flag-word and a single byte
4638 follows, indicating what type of basis file was chosen. If that indicates
4639 that a fuzzy-match was selected, the `ITEM_XNAME_FOLLOWS` bit is set in the
4640 flag-word and the name of the match in vstring format follows the basis
4641 byte. A vstring is a variable length string that has its size written prior
4642 to the string, and no terminating null. If the string is from 1-127 bytes,
4643 the length is a single byte. If it is from 128-32767 bytes, the length is
4644 written as ((len >> 8) | 0x80) followed by (len % 0x100).
4645
4646 - The sending of exclude names is done using filter-rule syntax. This means
4647 that all names have a prefixed rule indicator, even excludes (which used to
4648 be sent as a bare pattern, when possible). The `-C` option will include the
4649 per-dir .cvsignore merge file in the list of filter rules so it is
4650 positioned correctly (unlike in some older transfer scenarios).
4651
4652 - Rsync sorts the filename list in a different way: it sorts the subdir names
4653 after the non-subdir names for each dir's contents, and it always puts a
4654 dir's contents immediately after the dir's name in the list. (Previously an
4655 item named `foo.txt` would sort in between directory `foo/` and `foo/bar`.)
4656
4657 - When talking to a protocol 29 rsync daemon, a list-only request is able to
4658 note this before the options are sent over the wire and the new
4659 `--list-only` option is included in the options.
4660
4661 - When the `--stats` bytes are sent over the wire (or stored in a batch), they
4662 now include two elapsed-time values: one for how long it took to build the
4663 file-list, and one for how long it took to send it over the wire (each
4664 expressed in thousandths of a second).
4665
4666 - When `--delete-excluded` is specified with some filter rules (AKA excludes),
4667 a client sender will now initiate a send of the rules to the receiver (older
4668 protocols used to omit the sending of excludes in this situation since there
4669 were no receiver-specific rules that survived `--delete-excluded` back
4670 then). Note that, as with all the filter-list sending, only items that are
4671 significant to the other side will actually be sent over the wire, so the
4672 filter-rule list that is sent in this scenario is often empty.
4673
4674 - An index equal to the file-list count is sent as a keep-alive packet from
4675 the generator to the sender, which then forwards it on to the receiver. This
4676 normally invalid index is only a valid keep-alive packet if the 16-bit
4677 flag-word that follows it contains a single bit (`ITEM_IS_NEW`, which is
4678 normally an illegal flag to appear alone).
4679
4680 - A protocol-29 batch file includes a bit for the setting of the `--dirs`
4681 option and for the setting of the `--compress` option. Also, the shell
4682 script created by `--write-batch` will use the `--filter` option instead of
4683 `--exclude-from` to capture any filter rules.
4684
4685 ### BUILD CHANGES:
4686
4687 - Handle an operating system that use mkdev() in place of makedev().
4688
4689 - Improved configure to better handle cross-compiling.
4690
4691 ------------------------------------------------------------------------------
4692
4693 # NEWS for rsync 2.6.3 (30 Sep 2004)
4694
4695 ## Changes in this version:
4696
4697 ### SECURITY FIXES:
4698
4699 - A bug in the `sanitize_path` routine (which affects a non-chrooted rsync
4700 daemon) could allow a user to craft a pathname that would get transformed
4701 into an absolute path for certain options (but not for file-transfer names).
4702 If you're running an rsync daemon with chroot disabled, **please upgrade**,
4703 ESPECIALLY if the user privs you run rsync under is anything above `nobody`.
4704
4705 OUTPUT CHANGES (ATTN: those using a script to parse the verbose output):
4706
4707 - Please note that the 2-line footer (output when verbose) now uses the term
4708 `sent` instead of `wrote` and `received` instead of `read`. If you are not
4709 parsing the numeric values out of this footer, a script would be better off
4710 using the empty line prior to the footer as the indicator that the verbose
4711 output is over.
4712
4713 - The output from the `--stats` option was similarly affected to change
4714 `written` to `sent` and `read` to `received`.
4715
4716 - Rsync ensures that a filename that contains a newline gets mentioned with
4717 each newline transformed into a question mark (which prevents a filename
4718 from causing an empty line to be output).
4719
4720 - The `backed up ...` message that is output when at least 2 `--verbose`
4721 options are specified is now the same both with and without the
4722 `--backup-dir` option.
4723
4724 ### BUG FIXES:
4725
4726 - Fixed a crash bug that might appear when `--delete` was used and multiple
4727 source directories were specified.
4728
4729 - Fixed a 32-bit truncation of the file length when generating the checksums.
4730
4731 - The `--backup` code no longer attempts to create some directories over and
4732 over again (generating warnings along the way).
4733
4734 - Fixed a bug in the reading of the secrets file (by the daemon) and the
4735 password file (by the client): the files no longer need to be terminated by
4736 a newline for their content to be read in.
4737
4738 - If a file has a read error on the sending side or the reconstructed data
4739 doesn't match the expected checksum (perhaps due to the basis file changing
4740 during the transfer), the receiver will no longer retain the resulting file
4741 unless the `--partial` option was specified. (Note: for the read-error
4742 detection to work, neither side can be older than 2.6.3 -- older receivers
4743 will always retain the file, and older senders don't tell the receiver that
4744 the file had a read error.)
4745
4746 - If a file gets resent in a single transfer and the `--backup` option is
4747 enabled, rsync no longer performs a duplicate backup (it used to overwrite
4748 the original file in the backup area).
4749
4750 - Files specified in the daemon's `exclude` or `exclude from` config items are
4751 now excluded from being uploaded (assuming that the module allows uploading
4752 at all) in addition to the old download exclusion.
4753
4754 - Got rid of a potential hang in the receiver when near the end of a phase.
4755
4756 - When using `--backup` without a `--backup-dir`, rsync no longer preserves
4757 the modify time on directories. This avoids confusing NFS.
4758
4759 - When `--copy-links` (`-L`) is specified, we now output a separate error for
4760 a symlink that has no referent instead of claiming that a file `vanished`.
4761
4762 - The `--copy-links` (`-L`) option no longer has the side-effect of telling
4763 the receiving side to follow symlinks. See the `--keep-dirlinks` option
4764 (mentioned below) for a way to specify that behavior.
4765
4766 - Error messages from the daemon server's option-parsing (such as refused
4767 options) are now successfully transferred back to the client (the server
4768 used to fail to send the message because the socket wasn't in the right
4769 state for the message to get through).
4770
4771 - Most transfer errors that occur during a daemon transfer are now returned to
4772 the user in addition to being logged (some messages are intended to be
4773 daemon-only and are not affected by this).
4774
4775 - Fixed a bug in the daemon authentication code when using one of the
4776 batch-processing options.
4777
4778 - We try to work around some buggy IPv6 implementations that fail to implement
4779 `IPV6_V6ONLY`. This should fix the `address in use` error that some daemons
4780 get when running on an OS with a buggy IPv6 implementation. Also, if the new
4781 code gets this error, we might suggest that the user specify `--ipv4` or
4782 `--ipv6` (if we think it will help).
4783
4784 - When the remote rsync dies, make a better effort to recover any error
4785 messages it may have sent before dying (the local rsync used to just die
4786 with a socket-write error).
4787
4788 - When using `--delete` and a `--backup-dir` that contains files that are
4789 hard-linked to their destination equivalents, rsync now makes sure that
4790 removed files really get removed (avoids a really weird rename() behavior).
4791
4792 - Avoid a bogus run-time complaint about a lack of 64-bit integers when the
4793 int64 type is defined as an `off_t` and it actually has 64-bits.
4794
4795 - Added a configure check for open64() without mkstemp64() so that we can
4796 avoid using mkstemp() when such a combination is encountered. This bypasses
4797 a problem writing out large temp files on OSes such as AIX and HP-UX.
4798
4799 - Fixed an age-old crash problem with `--read-batch` on a local copy (rsync
4800 was improperly assuming `--whole-file` for the local copy).
4801
4802 - When `--dry-run` (`-n`) is used and the destination directory does not
4803 exist, rsync now produces a correct report of files that would be sent
4804 instead of dying with a chdir() error.
4805
4806 - Fixed a bug that could cause a slow-to-connect rsync daemon to die with an
4807 error instead of waiting for the connection to finish.
4808
4809 - Fixed an ssh interaction that could cause output to be lost when the user
4810 chose to combine the output of rsync's stdout and stderr (e.g. using the
4811 `2>&1`).
4812
4813 - Fixed an option-parsing bug when `--files-from` got passed to a daemon.
4814
4815 ### ENHANCEMENTS:
4816
4817 - Added the `--partial-dir=DIR` option that lets you specify where to
4818 (temporarily) put a partially transferred file (instead of overwriting the
4819 destination file). E.g. `--partial-dir=.rsync-partial` Also added support
4820 for the `RSYNC_PARTIAL_DIR` environment variable that, when found,
4821 transforms a regular `--partial` option (such as the convenient `-P` option)
4822 into one that also specifies a directory.
4823
4824 - Added `--keep-dirlinks` (`-K`), which allows you to symlink a directory onto
4825 another partition on the receiving side and have rsync treat it as matching
4826 a normal directory from the sender.
4827
4828 - Added the `--inplace` option that tells rsync to write each destination file
4829 without using a temporary file. The matching of existing data in the
4830 destination file can be severely limited by this, but there are also cases
4831 where this is more efficient (such as appending data). Use only when needed
4832 (see the manpage for more details).
4833
4834 - Added the `write only` option for the daemon's config file.
4835
4836 - Added long-option names for `-4` and `-6` (namely `--ipv4` and `--ipv6`) and
4837 documented all these options in the manpage.
4838
4839 - Improved the handling of the `--bwlimit` option so that it's less bursty,
4840 more accurate, and works properly over a larger range of values.
4841
4842 - The rsync daemon-over-ssh code now looks for `SSH_CONNECTION` and
4843 `SSH2_CLIENT` in addition to `SSH_CLIENT` to figure out the IP address.
4844
4845 - Added the `--checksum-seed=N` option for advanced users.
4846
4847 - Batch writing/reading has a brand-new implementation that is simpler, fixes
4848 a few weird problems with the old code (such as no longer sprinkling the
4849 batch files into different dirs or even onto different systems), and is much
4850 less intrusive into the code (making it easier to maintain for the future).
4851 The new code generates just one data file instead of three, which makes it
4852 possible to read the batch on stdin via a remote shell. Also, the old
4853 requirement of forcing the same fixed checksum-seed for all batch processing
4854 has been removed.
4855
4856 - If an rsync daemon has a module set with `list = no` (which hides its
4857 presence in the list of available modules), a user that fails to
4858 authenticate gets the same `unknown module` error that they would get if the
4859 module were actually unknown (while still logging the real error to the
4860 daemon's log file). This prevents fishing for module names.
4861
4862 - The daemon's `refuse options` config item now allows you to match option
4863 names using wildcards and/or the single-letter option names.
4864
4865 - Each transferred file now gets its permissions and modified-time updated
4866 before the temp-file gets moved into place. Previously, the finished file
4867 would have a very brief window where its permissions disallowed all group
4868 and world access.
4869
4870 - Added the ability to parse a literal IPv6 address in an `rsync:` URL (e.g.
4871 rsync://[2001:638:500:101::21]:873/module/dir).
4872
4873 - The daemon's wildcard expanding code can now handle more than 1000 filenames
4874 (it's now limited by memory instead of having a hard-wired limit).
4875
4876 ### INTERNAL:
4877
4878 - Some cleanup in the exclude code has saved some per-exclude memory and made
4879 the code easier to maintain.
4880
4881 - Improved the argv-overflow checking for a remote command that has a lot of
4882 args.
4883
4884 - Use rsyserr() in the various places that were still calling rprintf() with
4885 strerror() as an arg.
4886
4887 - If an rsync daemon is listening on multiple sockets (to handle both IPv4 and
4888 IPv6 to a single port), we now close all the unneeded file handles after we
4889 accept a connection (we used to close just one of them).
4890
4891 - Optimized the handling of larger block sizes (rsync used to slow to a crawl
4892 if the block size got too large).
4893
4894 - Optimized away a loop in `hash_search()`.
4895
4896 - Some improvements to the `sanitize_path()` and `clean_fname()` functions
4897 makes them more efficient and produce better results (while still being
4898 compatible with the file-name cleaning that gets done on both sides when
4899 sending the file-list).
4900
4901 - Got rid of `alloc_sanitize_path()` after adding a destination-buffer arg to
4902 `sanitize_path()` made it possible to put all the former's functionality
4903 into the latter.
4904
4905 - The file-list that is output when at least 4 verbose options are specified
4906 reports the uid value on the sender even when rsync is not running as root
4907 (since we might be sending to a root receiver).
4908
4909 ### BUILD CHANGES:
4910
4911 - Added a `gen` target to rebuild most of the generated files, including
4912 configure, config.h.in, the manpages, and proto.h.
4913
4914 - If `make proto` doesn't find some changes in the prototypes, the proto.h
4915 file is left untouched (its time-stamp used to always be updated).
4916
4917 - The variable `$STRIP` (that is optionally set by the install-strip target's
4918 rule) was changed to `$INSTALL_STRIP` because some systems have `$STRIP`
4919 already set in the environment.
4920
4921 - Fixed a build problem when `SUPPORT_HARD_LINKS` isn't defined.
4922
4923 - When cross-compiling, the gettimeofday() function is now assumed to be a
4924 modern version that takes two-args (since we can't test it).
4925
4926 ### DEVELOPER RELATED:
4927
4928 - The scripts in the testsuite dir were cleaned up a bit and a few new tests
4929 added.
4930
4931 - Some new diffs were added to the patches dir, and some accepted ones were
4932 removed.
4933
4934 ------------------------------------------------------------------------------
4935
4936 # NEWS for rsync 2.6.2 (30 Apr 2004)
4937
4938 ## Changes in this version:
4939
4940 ### BUG FIXES:
4941
4942 - Fixed a major bug in the sorting of the filenames when `--relative` is used
4943 for some sources (just sources such as `/` and `/*` were affected). This fix
4944 ensures that we ask for the right file-list item when requesting changes
4945 from the sender.
4946
4947 - Rsync now checks the return value of the close() function to better report
4948 disk-full problems on an NFS file system.
4949
4950 - Restored the old daemon-server behavior of logging error messages rather
4951 than returning them to the user. (A better long-term fix will be sought in
4952 the future.)
4953
4954 - An obscure uninitialized-variable bug was fixed in the uid/gid code. (This
4955 bug probably had no ill effects.)
4956
4957 ### BUILD CHANGES:
4958
4959 - Got rid of the configure check for sys/sysctl.h (it wasn't used and was
4960 causing a problem on some systems). Also improved the
4961 broken-largefile-locking test to try to avoid failure due to an NFS
4962 build-dir.
4963
4964 - Fixed a compile problem on systems that don't define `AI_NUMERICHOST`.
4965
4966 - Fixed a compile problem in the popt source for compilers that don't support
4967 `__attribute__`.
4968
4969 ### DEVELOPER RELATED:
4970
4971 - Improved the testsuite's `merge` test to work on OSF1.
4972
4973 - Two new diffs were added to the patches dir.
4974
4975 ------------------------------------------------------------------------------
4976
4977 # NEWS for rsync 2.6.1 (26 Apr 2004)
4978
4979 ## Changes in this version:
4980
4981 ### PROTOCOL NUMBER:
4982
4983 - The protocol number was changed to 28.
4984
4985 ### SECURITY FIXES:
4986
4987 - Paths sent to an rsync daemon are more thoroughly sanitized when chroot is
4988 not used. If you're running a non-read-only rsync daemon with chroot
4989 disabled, **please upgrade**, ESPECIALLY if the user privs you run rsync
4990 under is anything above `nobody`.
4991
4992 ### ENHANCEMENTS:
4993
4994 - Lower memory use, more optimal transfer of data over the socket, and lower
4995 CPU usage (see the INTERNAL section for details).
4996
4997 - The `RSYNC_PROXY` environment variable can now contain a `USER:PASS@` prefix
4998 before the `HOST:PORT` information. (Bardur Arantsson)
4999
5000 - The `--progress` output now mentions how far along in the transfer we are,
5001 including both a count of files transferred and a percentage of the total
5002 file-count that we've processed. It also shows better
5003 current-rate-of-transfer and remaining-transfer-time values.
5004
5005 - Documentation changes now attempt to describe some often misunderstood
5006 features more clearly.
5007
5008 ### BUG FIXES:
5009
5010 - When `-x` (`--one-file-system`) is combined with `-L` (`--copy-links`) or
5011 `--copy-unsafe-links,` no symlinked files are skipped, even if the referent
5012 file is on a different filesystem.
5013
5014 - The `--link-dest` code now works properly for a non-root user when (1) the
5015 UIDs of the source and destination differ and `-o` was specified, or (2)
5016 when the group of the source can't be used on the destination and `-g` was
5017 specified.
5018
5019 - Fixed a bug in the handling of `-H` (hard-links) that might cause the
5020 expanded PATH/NAME value of the current item to get overwritten (due to an
5021 expanded-name caching bug).
5022
5023 - We now reset the `new data has been sent` flag at the start of each file we
5024 send. This makes sure that an interrupted transfer with the `--partial`
5025 option set doesn't keep a shorter temp file than the current basis file when
5026 no new data has been transferred over the wire for that file.
5027
5028 - Fixed a byte-order problem in `--batch-mode` on big-endian machines. (Jay
5029 Fenlason)
5030
5031 - When using `--cvs-exclude`, the exclude items we get from a per-directory's
5032 .cvsignore file once again only affect that one directory (not all following
5033 directories too). The items are also now properly word-split and parsed
5034 without any +/- prefix parsing.
5035
5036 - When specifying the USER@HOST: prefix for a file, the USER part can now
5037 contain an '@', if needed (i.e. the last '@' is used to find the HOST, not
5038 the first).
5039
5040 - Fixed some bugs in the handling of group IDs for non-root users: (1) It
5041 properly handles a group that the sender didn't have a name for (it would
5042 previously skip changing the group on any files in that group). (2) If
5043 `--numeric-ids` is used, rsync no longer attempts to set groups that the
5044 user doesn't have the permission to set.
5045
5046 - Fixed the `refuse options` setting in the rsyncd.conf file.
5047
5048 - Improved the `-x` (`--one-file-system`) flag's handling of any mount-point
5049 directories we encounter. It is both more optimal (in that it no longer does
5050 a useless scan of the contents of the mount-point dirs) and also fixes a
5051 bug where a remapped mount of the original filesystem could get discovered
5052 in a subdir we should be ignoring.
5053
5054 - Rsync no longer discards a double-slash at the start of a filename when
5055 trying to open the file. It also no longer constructs names that start with
5056 a double slash (unless the user supplied them).
5057
5058 - Path-specifying options to a daemon should now work the same with or without
5059 chroot turned on. Previously, such a option (such as `--link-dest`) would
5060 get its absolute path munged into a relative one if chroot was not on,
5061 making that setting fairly useless. Rsync now transforms the path into one
5062 that is based on the module's base dir when chroot is not enabled.
5063
5064 - Fixed a compatibility problem interacting with older rsync versions that
5065 might send us an empty `--suffix` value without telling us that
5066 `--backup-dir` was specified.
5067
5068 - The `hosts allow` option for a daemon-over-remote-shell process now has
5069 improved support for IPv6 addresses and a fix for systems that have a length
5070 field in their socket structs.
5071
5072 - Fixed the ability to request an empty backup `--suffix` when sending files
5073 to an rsync daemon.
5074
5075 - Fixed an option-parsing bug when `--files-from` was sent to a server sender.
5076
5077 ### INTERNAL:
5078
5079 - Most of the I/O is now buffered, which results in a pretty large speedup
5080 when running under MS Windows. (Craig Barratt)
5081
5082 - Optimizations to the name-handling/comparing code have made some significant
5083 reductions in user-CPU time for large file sets.
5084
5085 - Some cleanup of the variable types make the code more consistent.
5086
5087 - Reduced memory requirements of hard link preservation. (J.W. Schultz)
5088
5089 - Implemented a new algorithm for hard-link handling that speeds up the code
5090 significantly. (J.W. Schultz and Wayne Davison)
5091
5092 - The `--hard-link` option now uses the first existing file in the group of
5093 linked files as the basis for the transfer. This prevents the sub-optimal
5094 transfer of a file's data when a new hardlink is added on the sending side
5095 and it sorts alphabetically earlier in the list than the files that are
5096 already present on the receiving side.
5097
5098 - Dropped support for protocol versions less than 20 (2.3.0 released 15 Mar
5099 1999) and activated warnings for protocols less than 25 (2.5.0 released 23
5100 Aug 2001). (Wayne Davison and J.W. Schultz, severally)
5101
5102 - More optimal data transmission for `--hard-links` (protocol 28).
5103
5104 - More optimal data transmission for `--checksum` (protocol 28).
5105
5106 - Less memory is used when `--checksum` is specified.
5107
5108 - Less memory is used in the file list (a per-file savings).
5109
5110 - The generator is now better about not modifying the file list during the
5111 transfer in order to avoid a copy-on-write memory bifurcation (on systems
5112 where fork() uses shared memory). Previously, rsync's shared memory would
5113 slowly become unshared, resulting in real memory usage nearly doubling on
5114 the receiving side by the end of the transfer. Now, as long as permissions
5115 are being preserved, the shared memory should remain that way for the entire
5116 transfer.
5117
5118 - Changed hardlink info and `file_struct` + strings to use allocation pools.
5119 This reduces memory use for large file-sets and permits freeing memory to
5120 the OS. (J.W. Schultz)
5121
5122 - The 2 pipes used between the receiver and generator processes (which are
5123 forked on the same machine) were reduced to 1 pipe and the protocol improved
5124 so that (1) it is now impossible to have the `redo` pipe fill up and hang
5125 rsync, and (2) trailing messages from the receiver don't get lost on their
5126 way through the generator over to the sender (which mainly affected
5127 hard-link messages and verbose `--stats` output).
5128
5129 - Improved the internal uid/gid code to be more portable and a little more
5130 optimized.
5131
5132 - The device numbers sent when using `--devices` are now sent as separate
5133 major/minor values with 32-bit accuracy (protocol 28). Previously, the
5134 copied devices were sent as a single 32-bit number. This will make
5135 inter-operation of 64-bit binaries more compatible with their 32-bit
5136 brethren (with both ends of the connection are using protocol 28). Note that
5137 optimizations in the binary protocol for sending the device numbers often
5138 results in fewer bytes being used than before, even though more precision is
5139 now available.
5140
5141 - Some cleanup of the exclude/include structures and its code made things
5142 clearer (internally), simpler, and more efficient.
5143
5144 - The reading & writing of the file-list in batch-mode is now handled by the
5145 same code that sends & receives the list over the wire. This makes it much
5146 easier to maintain. (Note that the batch code is still considered to be
5147 experimental.)
5148
5149 ### BUILD CHANGES:
5150
5151 - The configure script now accepts `--with-rsyncd-conf=PATH` to override the
5152 default value of the /etc/rsyncd.conf file.
5153
5154 - Fixed configure bug when running `./configure --disable-ipv6`.
5155
5156 - Fixed compilation problem on Tru64 Unix (having to do with `sockaddr.sa_len`
5157 and `sockaddr.sin_len`).
5158
5159 ### DEVELOPER RELATED:
5160
5161 - Fixed `make test` bug when build dir is not the source dir.
5162
5163 - Added a couple extra diffs in the `patches` dir, removed the ones that got
5164 applied, and rebuilt the rest.
5165
5166 ------------------------------------------------------------------------------
5167
5168 # NEWS for rsync 2.6.0 (1 Jan 2004)
5169
5170 ## Changes in this version:
5171
5172 ### PROTOCOL NUMBER:
5173
5174 - The protocol number was changed to 27. The maximum accepted protocol number
5175 was increased from 30 to 40.
5176
5177 ### ENHANCEMENTS:
5178
5179 - `ssh` is now the default remote shell for rsync. If you want to change this,
5180 configure like this: `./configure --with-rsh=rsh`.
5181
5182 - Added `--files-from`, `--no-relative`, `--no-implied-dirs`, and `--from0`.
5183 Note that `--from0` affects the line-ending character for all the files read
5184 by the `--*-from` options. (Wayne Davison)
5185
5186 - Length of csum2 is now per-file starting with protocol version
5187 27. (J.W. Schultz)
5188
5189 - Per-file dynamic block size is now sqrt(file length). The per-file checksum
5190 size is determined according to an algorithm provided by Donovan Baarda
5191 which reduces the probability of rsync algorithm corrupting data and falling
5192 back using the whole md4 checksums. (J.W. Schultz, Donovan Baarda)
5193
5194 - The `--stats` option no longer includes the (debug) malloc summary unless
5195 the verbose option was specified at least twice.
5196
5197 - Added a new error/warning code for when files vanish from the sending side.
5198 Made vanished source files not interfere with the file-deletion pass when
5199 `--delete-after` was specified.
5200
5201 - Various trailing-info sections are now preceded by a newline.
5202
5203 ### BUG FIXES:
5204
5205 - Fixed several exclude/include matching bugs when using wild-cards. This has
5206 a several user-visible effects, all of which make the matching more
5207 consistent and intuitive. This should hopefully not cause anyone problems
5208 since it makes the matching work more like what people are expecting. (Wayne
5209 Davison)
5210
5211 - A pattern with a `**` no longer causes a `*` to match slashes. For example,
5212 with `/*/foo/**`, `foo` must be 2 levels deep. [If your string has BOTH `*`
5213 and `**` wildcards, changing the `*` wildcards to `**` will provide the old
5214 behavior in all versions.]
5215
5216 - `**/foo` now matches at the base of the transfer (like /foo does). [Use
5217 `/**/foo` to get the old behavior in all versions.]
5218
5219 - A non-anchored wildcard term floats to match beyond the base of the
5220 transfer. E.g. `CVS/R*` matches at the end of the path, just like the
5221 non-wildcard term `CVS/Root` does. [Use `/CVS/R*` to get the old behavior in
5222 all versions.]
5223
5224 - Including a `**` in the match term causes it to be matched against the
5225 entire path, not just the name portion, even if there aren't any interior
5226 slashes in the term. E.g. `foo**bar` would exclude `/path/foo-bar` (just
5227 like before) as well as `/foo-path/baz-bar` (unlike before). [Use `foo*bar`
5228 to get the old behavior in all versions.]
5229
5230 - The exclude list specified in the daemon's config file is now properly
5231 applied to the pulled items no matter how deep the user's file-args are in
5232 the source tree. (Wayne Davison)
5233
5234 - For protocol version >= 27, `mdfour_tail()` is called when the block size
5235 (including `checksum_seed`) is a multiple of 64. Previously it was not
5236 called, giving the wrong MD4 checksum. (Craig Barratt)
5237
5238 - For protocol version >= 27, a 64 bit bit counter is used in mdfour.c as
5239 required by the RFC. Previously only a 32 bit bit counter was used, causing
5240 incorrect MD4 file checksums for file sizes >= 512MB - 4. (Craig Barratt)
5241
5242 - Fixed a crash bug when interacting with older rsync versions and multiple
5243 files of the same name are destined for the same dir. (Wayne Davison)
5244
5245 - Keep tmp names from overflowing MAXPATHLEN.
5246
5247 - Make `--link-dest` honor the absence of `-p`, `-o`, and `-g`.
5248
5249 - Made rsync treat a trailing slash in the destination in a more consistent
5250 manner.
5251
5252 - Fixed file I/O error detection. (John Van Essen)
5253
5254 - Fixed bogus `malformed address {hostname}` message in rsyncd log when
5255 checking IP address against hostnames from `hosts allow` and `hosts deny`
5256 parameters in config file.
5257
5258 - Print heap statistics when verbose >= 2 instead of when >= 1.
5259
5260 - Fixed a compression (`-z`) bug when syncing a mostly-matching file that
5261 contains already-compressed data. (Yasuoka Masahiko and Wayne Davison)
5262
5263 - Fixed a bug in the `--backup` code that could cause deleted files to not get
5264 backed up.
5265
5266 - When the backup code makes new directories, create them with mode 0700
5267 instead of 0755 (since the directory permissions in the backup tree are not
5268 yet copied from the main tree).
5269
5270 - Call setgroups() in a more portable manner.
5271
5272 - Improved file-related error messages to better indicate exactly what
5273 pathname failed. (Wayne Davison)
5274
5275 - Fixed some bugs in the handling of `--delete` and `--exclude` when using the
5276 `--relative` (`-R`) option. (Wayne Davison)
5277
5278 - Fixed bug that prevented regular files from replacing special files and
5279 caused a directory in `--link-dest` or `--compare-dest` to block the
5280 creation of a file with the same path. A directory still cannot be replaced
5281 by a regular file unless `--delete` specified. (J.W. Schultz)
5282
5283 - Detect and report when open or opendir succeed but read and readdir fail
5284 caused by network filesystem issues and truncated files. (David Norwood,
5285 Michael Brown, J.W. Schultz)
5286
5287 - Added a fix that should give ssh time to restore the tty settings if the
5288 user presses Ctrl-C at an ssh password prompt.
5289
5290 ### INTERNAL:
5291
5292 - Eliminated vestigial support for old versions that we stopped supporting.
5293 (J.W. Schultz)
5294
5295 - Simplified some of the option-parsing code. (Wayne Davison)
5296
5297 - Some cleanup made to the exclude code, as well as some new defines added to
5298 enhance readability. (Wayne Davison)
5299
5300 - Changed the protocol-version code so that it can interact at a lower
5301 protocol level than the maximum supported by both sides. Added an
5302 undocumented option, `--protocol=N`, to force the value we advertise to the
5303 other side (primarily for testing purposes). (Wayne Davison)
5304
5305 ------------------------------------------------------------------------------
5306
5307 # NEWS for rsync 2.5.7 (4 Dec 2003)
5308
5309 ## Changes in this version:
5310
5311 ### SECURITY FIXES:
5312
5313 - Fix buffer handling bugs. (Andrew Tridgell, Martin Pool, Paul Russell,
5314 Andrea Barisani)
5315
5316 ------------------------------------------------------------------------------
5317
5318 # NEWS for rsync 2.5.6, aka "the dwd-between-jobs release" (26 Jan 2003)
5319
5320 ## Changes in this version:
5321
5322 ### ENHANCEMENTS:
5323
5324 - The `--delete-after` option now implies `--delete`. (Wayne Davison)
5325
5326 - The `--suffix` option can now be used with `--backup-dir`. (Michael
5327 Zimmerman)
5328
5329 - Combining `::` syntax with the `--rsh`/`-e` option now uses the specified
5330 remote-shell as a transport to talk to a (newly-spawned) server-daemon. This
5331 allows someone to use daemon features, such as modules, over a secure
5332 protocol, such as ssh. (JD Paul)
5333
5334 - The rsync:// syntax for daemon connections is now accepted in the
5335 destination field.
5336
5337 - If the file name given to `--include-from` or `--exclude-from` is `-`, rsync
5338 will read from standard input. (J.W. Schultz)
5339
5340 - New option `--link-dest` which is like `--compare-dest` except that
5341 unchanged files are hard-linked in to the destination directory. (J.W.
5342 Schultz)
5343
5344 - Don't report an error if an excluded file disappears during an rsync run.
5345 (Eugene Chupriyanov and Bo Kersey)
5346
5347 - Added .svn to `--cvs-exclude` list to support subversion. (Jon Middleton)
5348
5349 - Properly support IPv6 addresses in the rsyncd.conf `hosts allow` and `hosts
5350 deny` fields. (Hideaki Yoshifuji)
5351
5352 - Changed exclude file handling to permit DOS or MAC style line terminations.
5353 (J.W. Schultz)
5354
5355 - Ignore errors from chmod when `-p`/`-a`/`--preserve-perms` is not set.
5356 (Dave Dykstra)
5357
5358 ### BUG FIXES:
5359
5360 - Fix `forward name lookup failed` errors on AIX 4.3.3. (John L. Allen, Martin
5361 Pool)
5362
5363 - Generate each file's rolling-checksum data as we send it, not in a separate
5364 (memory-eating) pass before hand. This prevents timeout errors on really
5365 large files. (Stefan Nehlsen)
5366
5367 - Fix compilation on Tru64. (Albert Chin, Zoong Pham)
5368
5369 - Better handling of some client-server errors. (Martin Pool)
5370
5371 - Fixed a crash that would occur when sending a list of files that contains a
5372 duplicate name (if it sorts to the end of the file list) and using
5373 `--delete`. (Wayne Davison)
5374
5375 - Fixed the file-name duplicate-removal code when dealing with multiple dups
5376 in a row. (Wayne Davison)
5377
5378 - Fixed a bug that caused rsync to lose the exit status of its child processes
5379 and sometimes return an exit code of 0 instead of showing an error. (David
5380 R. Staples, Dave Dykstra)
5381
5382 - Fixed bug in `--copy-unsafe-links` that caused it to be completely broken.
5383 (Dave Dykstra)
5384
5385 - Prevent infinite recursion in cleanup code under certain circumstances.
5386 (Sviatoslav Sviridov and Marc Espie)
5387
5388 - Fixed a bug that prevented rsync from creating intervening directories when
5389 `--relative-paths`/`-R` is set. (Craig Barratt)
5390
5391 - Prevent `Connection reset by peer` messages from Cygwin. (Randy O'Meara)
5392
5393 ### INTERNAL:
5394
5395 - Many code cleanups and improved internal documentation. (Martin Pool, Nelson
5396 Beebe)
5397
5398 - Portability fixes. (Dave Dykstra and Wayne Davison)
5399
5400 - More test cases. (Martin Pool)
5401
5402 - Some test-case fixes. (Brian Poole, Wayne Davison)
5403
5404 - Updated included popt to the latest vendor drop, version 1.6.4. (Jos
5405 Backus)
5406
5407 - Updated config.guess and config.sub to latest versions; this means rsync
5408 should build on more platforms. (Paul Green)
5409
5410 ------------------------------------------------------------------------------
5411
5412 # NEWS for rsync 2.5.5, aka Snowy River (2 Apr 2002)
5413
5414 ## Changes in this version:
5415
5416 ### ENHANCEMENTS:
5417
5418 - With `--progress`, when a transfer is complete show the time taken;
5419 otherwise show expected time to complete. (Cameron Simpson)
5420
5421 - Make `make install-strip` works properly, and `make install` accepts a
5422 DESTDIR variable for help in building binary packages. (Peter
5423 Breitenlohner, Greg Louis)
5424
5425 - If configured with `--enable-maintainer-mode`, then on receipt of a fatal
5426 signal rsync will try to open an xterm running gdb, similarly to Samba's
5427 `panic action` or GNOME's bug-buddy. (Martin Pool)
5428
5429 ### BUG FIXES:
5430
5431 - Fix situation where failure to fork (e.g. because out of process slots)
5432 would cause rsync to kill all processes owned by the current user. Yes,
5433 really! (Paul Haas, Martin Pool)
5434
5435 - Fix test suite on Solaris. (Jos Backus, Martin Pool)
5436
5437 - Fix minor memory leak in socket code. (Dave Dykstra, Martin Pool.)
5438
5439 - Fix `--whole-file` problem that caused it to be the default even for remote
5440 connections. (Martin Pool, Frank Schulz)
5441
5442 - Work around bug in Mac OS X mkdir(2), which cannot handle trailing slashes.
5443 <http://www.opensource.apple.com/bugs/X/BSD%20Kernel/2734739.html> (Martin
5444 Pool)
5445
5446 - Improved network error handling. (Greg A. Woods)
5447
5448 ------------------------------------------------------------------------------
5449
5450 # NEWS for rsync 2.5.4, aka "Imitation lizard skin" (13 Mar 2002)
5451
5452 ## Changes in this version:
5453
5454 ### BUG FIXES:
5455
5456 - Additional fix for zlib double-free bug. (Martin Pool, Andrew Tridgell) (CVE
5457 CAN-2002-0059)
5458
5459 ### ENHANCEMENTS:
5460
5461 - Merge in changes from zlib 1.1.3 to zlib 1.1.4. (Jos Backus) (Note that
5462 rsync still uses a custom version of zlib; you can not just link against a
5463 system library. See zlib/README.rsync)
5464
5465 - Additional test cases for `--compress`. (Martin Pool)
5466
5467 ------------------------------------------------------------------------------
5468
5469 # NEWS for rsync 2.5.3, aka "Happy 26" (11 Mar 2002)
5470
5471 ## Changes in this version:
5472
5473 ### SECURITY FIXES:
5474
5475 - Make sure that supplementary groups are removed from a server
5476 process after changing uid and gid. (Ethan Benson) (Debian bug
5477 #132272, CVE CAN-2002-0080)
5478
5479 ### BUG FIXES:
5480
5481 - Fix zlib double-free bug. (Owen Taylor, Mark J Cox) (CVE CAN-2002-0059)
5482
5483 - Fixed problem that in many cases caused the error message unexpected read
5484 size of 0 in `map_ptr` and resulted in the wrong data being copied.
5485
5486 - Fixed compilation errors on some systems caused by the use of `unsigned
5487 int64` in rsync.h.
5488
5489 - Fixed problem on systems such as Sunos4 that do not support realloc on a
5490 NULL pointer; error was 'out of memory in "flist_expand"'.
5491
5492 - Fix for rsync server processes hanging around after the client unexpectedly
5493 disconnects. (Colin Walters) (Debian bug #128632)
5494
5495 - Cope with BSD systems on which mkdir() will not accept a trailing slash.
5496
5497 ### ENHANCEMENTS:
5498
5499 - Merge in changes from zlib 1.1.2 to zlib 1.1.3. (Note that rsync still uses
5500 a custom version of zlib; you can not just link against a system library.
5501 See zlib/README.rsync)
5502
5503 - Command to initiate connections is only shown with `-vv`, rather than `-v`
5504 as in 2.5.2. Output from plain `-v` is more similar to what was historically
5505 used so as not to break scripts that try to parse the output.
5506
5507 - Added `--no-whole-file` and `--no-blocking-io` options (Dave Dykstra)
5508
5509 - Made the `--write-batch` and `--read-batch` options actually work and added
5510 documentation in the manpage (Jos Backus)
5511
5512 - If the daemon is unable to fork a child to accept a connection, print an
5513 error message. (Colin Walters)
5514
5515 ------------------------------------------------------------------------------
5516
5517 # NEWS for rsync 2.5.2 (26 Jan 2002)
5518
5519 ## Changes in this version:
5520
5521 ### SECURITY FIXES:
5522
5523 - Signedness security patch from Sebastian Krahmer <[email protected]> -- in
5524 some cases we were not sufficiently careful about reading integers from the
5525 network.
5526
5527 ### PROTOCOL NUMBER:
5528
5529 - The protocol number was changed to 26.
5530
5531 ### BUG FIXES:
5532
5533 - Fix possible string mangling in log files.
5534
5535 - Fix for setting local address of outgoing sockets.
5536
5537 - Better handling of hardlinks and devices on platforms with 64-bit `dev_t` or
5538 `ino_t`.
5539
5540 - Name resolution on machines supporting IPv6 is improved.
5541
5542 - Fix for device nodes. (dann frazier) (Debian #129135)
5543
5544 ### ENHANCEMENTS:
5545
5546 - With `-v`, rsync now shows the command used to initiate an ssh/rsh
5547 connection.
5548
5549 - `--statistics` now shows memory heap usage on platforms that support
5550 mallinfo().
5551
5552 - "The Ted T'so school of program optimization": make progress visible and
5553 people will think it's faster. (With `--progress`, rsync will show you how
5554 many files it has seen as it builds the `file_list`, giving some indication
5555 that it has not hung.)
5556
5557 - Improvements to batch mode support. This is still experimental but testing
5558 would be welcome. (Jos Backus)
5559
5560 - New `--ignore-existing` option, patch previously distributed with Vipul's
5561 Razor. (Debian #124286)
5562
5563 ------------------------------------------------------------------------------
5564
5565 # NEWS for rsync 2.5.1 (3 Jan 2002)
5566
5567 ## Changes in this version:
5568
5569 ### BUG FIXES:
5570
5571 - Fix for segfault in `--daemon` mode configuration parser. (Paul Mackerras)
5572
5573 - Correct `string<->address` parsing for both IPv4 and 6. (YOSHIFUJI Hideaki,
5574 SUMIKAWA Munechika and Jun-ichiro `itojun` Hagino)
5575
5576 - Various fixes for IPv6 support. (Dave Dykstra)
5577
5578 - rsync.1 typo fix. (Matt Kraai)
5579
5580 - Test suite typo fixes. (Tom Schmidt)
5581
5582 - rsync.1 grammar and clarity improvements. (Edward Welbourne)
5583
5584 - Correction to ./configure tests for `inet_ntop`. (Jeff Garzik)
5585
5586 ### ENHANCEMENTS:
5587
5588 - `--progress` and `-P` now show estimated data transfer rate (in a multiple
5589 of bytes/s) and estimated time to completion. (Rik Faith)
5590
5591 - `--no-detach` option, required to run as a W32 service and also useful when
5592 running on Unix under daemontools, AIX's SRC, or a debugger. (Max Bowsher,
5593 Jos Backus)
5594
5595 - Clearer error messages for some conditions.
5596
5597 ------------------------------------------------------------------------------
5598
5599 # NEWS for rsync 2.5.0 (30 Nov 2001)
5600
5601 ## Changes in this version:
5602
5603 ### PROTOCOL NUMBER:
5604
5605 - The protocol number was changed to 25.
5606
5607 ### ANNOUNCEMENTS:
5608
5609 - Martin Pool <[email protected]> is now a co-maintainer.
5610
5611 ### NEW FEATURES:
5612
5613 - Support for LSB-compliant packaging <http://www.linuxbase.org/>
5614
5615 - Shell wildcards are allowed in `auth users` lines.
5616
5617 - Merged UNC rsync+ patch to support creation of standalone patch sets. By
5618 Bert J. Dempsey and Debra Weiss, updated by Jos Backus.
5619 <http://www.ils.unc.edu/i2dsi/unc_rsync+.html>
5620
5621 - IPv6 support based on a patch from KAME.net, on systems including modern
5622 versions of Linux, Solaris, and HP-UX. Also includes IPv6 compatibility
5623 functions for old OSs by the Internet Software Consortium, Paul Vixie, the
5624 OpenSSH portability project, and OpenBSD.
5625
5626 ### ENHANCEMENTS:
5627
5628 - Include/exclude cluestick: with `-vv`, print out whether files are included
5629 or excluded and why.
5630
5631 - Many error messages have more friendly explanations and more details.
5632
5633 - Manual page improvements plus scanty protocol documentation.
5634
5635 - When running as `--daemon` in the background and using a `log file`
5636 rsyncd.conf directive, close the log file every time it is open when going
5637 to sleep on the socket. This allows the log file to get cleaned out by
5638 another process.
5639
5640 - Change to using libpopt rather than getopt for processing options. This
5641 makes the code cleaner and the behaviour more consistent across platforms.
5642 popt is included and built if not installed on the platform.
5643
5644 - More details in `--version`, including note about whether 64-bit files,
5645 symlinks and hardlinks are supported.
5646
5647 - MD4 code may use less CPU cycles.
5648
5649 - Use mkstemp on systems where it is secure. If we use mktemp, explain that we
5650 do it in a secure way.
5651
5652 - `--whole-file` is the default when source and target are on the local
5653 machine.
5654
5655 ### BUG FIXES:
5656
5657 - Fix for various bugs causing rsync to hang.
5658
5659 - Attempt to fix Large File Summit support on AIX.
5660
5661 - Attempt to fix error handling lockup bug.
5662
5663 - Give a non-0 exit code if **any** of the files we have been asked to
5664 transfer fail to transfer.
5665
5666 - For log messages containing ridiculously long strings that might overflow a
5667 buffer rsync no longer aborts, but rather prints an ellipsis at the end of
5668 the string. (Patch from Ed Santiago.)
5669
5670 ### PLATFORMS:
5671
5672 - Improved support for UNICOS (tested on Cray T3E and Cray SV1)
5673
5674 - autoconf2.52 (or later) is now required to rebuild the autoconf scripts. It
5675 is not required to simply build rsync.
5676
5677 - Platforms thought to work in this release:
5678
5679 - Cray SV1 UNICOS 10.0.0.8 cc
5680 - Debian Linux 2.2 UltraSparc gcc
5681 - Debian Linux testing/unstable ARM gcc
5682 - FreeBSD 3.3-RELEASE i386 cc
5683 - FreeBSD 4.1.1-RELEASE i386 cc
5684 - FreeBSD 4.3-STABLE i386 cc
5685 - HP PA-RISC HP-UX 10.20 gcc
5686 - HP PA-RISC HP-UX 11.11 cc
5687 - IRIX 6.5 MIPS cc
5688 - IRIX 6.5 MIPS gcc
5689 - Mac OS X PPC (`--disable-ipv6`) cc
5690 - NetBSD 1.5 i386 gcc
5691 - NetBSD Current i386 cc
5692 - OpenBSD 2.5 Sparc gcc
5693 - OpenBSD 2.9 i386 cc
5694 - OpenBSD Current i386 cc
5695 - RedHat 6.2 i386 gcc
5696 - RedHat 6.2 i386 insure++
5697 - RedHat 7.0 i386 gcc
5698 - RedHat 7.1 i386 (Kernel 2.4.10) gcc
5699 - Slackware 8.0 i686 (Kernel 2.4.10)
5700 - Solaris 8 UltraSparc cc
5701 - Solaris 8 UltraSparc gcc
5702 - Solaris 8 i386 gcc
5703 - SuSE 7.1 i386 gcc2.95.2
5704 - SuSE 7.1 ppc gcc2.95.2
5705 - i386-pc-sco3.2v5.0.5 cc
5706 - i386-pc-sco3.2v5.0.5 gcc
5707 - powerpc-ibm-aix4.3.3.0 cc
5708 - i686-unknown-sysv5UnixWare7.1.0 gcc
5709 - i686-unknown-sysv5UnixWare7.1.0 cc
5710
5711 ### TESTING:
5712
5713 - The existing test.sh script by Phil Hands has been merged into a
5714 test framework that works from both `make check` and the Samba
5715 build farm.
5716
5717 ------------------------------------------------------------------------------
5718
5719 ## Partial Protocol History
5720
5721 | RELEASE DATE | VER. | DATE OF COMMIT\* | PROTOCOL |
5722 |--------------|--------|------------------|-------------|
5723 | 13 Aug 2026 | 3.5.0 | | 32 |
5724 | 08 Jun 2026 | 3.4.4 | | 32 |
5725 | 20 May 2026 | 3.4.3 | | 32 |
5726 | 28 Apr 2026 | 3.4.2 | | 32 |
5727 | 16 Jan 2025 | 3.4.1 | | 32 |
5728 | 15 Jan 2025 | 3.4.0 | 15 Jan 2025 | 32 |
5729 | 06 Apr 2024 | 3.3.0 | | 31 |
5730 | 20 Oct 2022 | 3.2.7 | | 31 |
5731 | 09 Sep 2022 | 3.2.6 | | 31 |
5732 | 14 Aug 2022 | 3.2.5 | | 31 |
5733 | 15 Apr 2022 | 3.2.4 | | 31 |
5734 | 06 Aug 2020 | 3.2.3 | | 31 |
5735 | 04 Jul 2020 | 3.2.2 | | 31 |
5736 | 22 Jun 2020 | 3.2.1 | | 31 |
5737 | 19 Jun 2020 | 3.2.0 | | 31 |
5738 | 28 Jan 2018 | 3.1.3 | | 31 |
5739 | 21 Dec 2015 | 3.1.2 | | 31 |
5740 | 22 Jun 2014 | 3.1.1 | | 31 |
5741 | 28 Sep 2013 | 3.1.0 | 31 Aug 2008 | 31 |
5742 | 23 Sep 2011 | 3.0.9 | | 30 |
5743 | 26 Mar 2011 | 3.0.8 | | 30 |
5744 | 31 Dec 2009 | 3.0.7 | | 30 |
5745 | 08 May 2009 | 3.0.6 | | 30 |
5746 | 28 Dec 2008 | 3.0.5 | | 30 |
5747 | 06 Sep 2008 | 3.0.4 | | 30 |
5748 | 29 Jun 2008 | 3.0.3 | | 30 |
5749 | 08 Apr 2008 | 3.0.2 | | 30 |
5750 | 03 Apr 2008 | 3.0.1 | | 30 |
5751 | 01 Mar 2008 | 3.0.0 | 11 Nov 2006 | 30 |
5752 | 06 Nov 2006 | 2.6.9 | | 29 |
5753 | 22 Apr 2006 | 2.6.8 | | 29 |
5754 | 11 Mar 2006 | 2.6.7 | | 29 |
5755 | 28 Jul 2005 | 2.6.6 | | 29 |
5756 | 01 Jun 2005 | 2.6.5 | | 29 |
5757 | 30 Mar 2005 | 2.6.4 | 17 Jan 2005 | 29 |
5758 | 30 Sep 2004 | 2.6.3 | | 28 |
5759 | 30 Apr 2004 | 2.6.2 | | 28 |
5760 | 26 Apr 2004 | 2.6.1 | 08 Jan 2004 | 28 |
5761 | 01 Jan 2004 | 2.6.0 | 10 Apr 2003 | 27 (MAX=40) |
5762 | 04 Dec 2003 | 2.5.7 | | 26 |
5763 | 26 Jan 2003 | 2.5.6 | | 26 |
5764 | 02 Apr 2002 | 2.5.5 | | 26 |
5765 | 13 Mar 2002 | 2.5.4 | | 26 |
5766 | 11 Mar 2002 | 2.5.3 | | 26 |
5767 | 26 Jan 2002 | 2.5.2 | 11 Jan 2002 | 26 |
5768 | 03 Jan 2002 | 2.5.1 | | 25 |
5769 | 30 Nov 2001 | 2.5.0 | 23 Aug 2001 | 25 |
5770 | 06 Sep 2000 | 2.4.6 | | 24 |
5771 | 19 Aug 2000 | 2.4.5 | | 24 |
5772 | 29 Jul 2000 | 2.4.4 | | 24 |
5773 | 09 Apr 2000 | 2.4.3 | | 24 |
5774 | 30 Mar 2000 | 2.4.2 | | 24 |
5775 | 30 Jan 2000 | 2.4.1 | 29 Jan 2000 | 24 |
5776 | 29 Jan 2000 | 2.4.0 | 28 Jan 2000 | 23 |
5777 | 25 Jan 2000 | 2.3.3 | 23 Jan 2000 | 22 |
5778 | 08 Nov 1999 | 2.3.2 | 26 Jun 1999 | 21 |
5779 | 06 Apr 1999 | 2.3.1 | | 20 |
5780 | 15 Mar 1999 | 2.3.0 | 15 Mar 1999 | 20 |
5781 | 25 Nov 1998 | 2.2.1 | | 19 |
5782 | 03 Nov 1998 | 2.2.0 | | 19 |
5783 | 09 Sep 1998 | 2.1.1 | | 19 |
5784 | 20 Jul 1998 | 2.1.0 | | 19 |
5785 | 17 Jul 1998 | 2.0.19 | | 19 |
5786 | 18 Jun 1998 | 2.0.17 | | 19 |
5787 | 01 Jun 1998 | 2.0.16 | | 19 |
5788 | 27 May 1998 | 2.0.13 | 27 May 1998 | 19 |
5789 | 26 May 1998 | 2.0.12 | | 18 |
5790 | 22 May 1998 | 2.0.11 | | 18 |
5791 | 18 May 1998 | 2.0.9 | 18 May 1998 | 18 |
5792 | 17 May 1998 | 2.0.8 | | 17 |
5793 | 15 May 1998 | 2.0.1 | | 17 |
5794 | 14 May 1998 | 2.0.0 | | 17 |
5795 | 17 Apr 1998 | 1.7.4 | | 17 |
5796 | 13 Apr 1998 | 1.7.3 | | 17 |
5797 | 05 Apr 1998 | 1.7.2 | | 17 |
5798 | 26 Mar 1998 | 1.7.1 | | 17 |
5799 | 26 Mar 1998 | 1.7.0 | 26 Mar 1998 | 17 (MAX=30) |
5800 | 13 Jan 1998 | 1.6.9 | 13 Jan 1998 | 15 (MAX=20) |
5801
5802 \* DATE OF COMMIT is the date the protocol change was committed to version
5803 control.
5804
5805 @USE_GFM_PARSER@