Add a default single-access lock.
[rsync.git] / NEWS.md
1 <a name="3.2.4"></a>
2
3 # NEWS for rsync 3.2.4 (UNRELEASED)
4
5 ## Changes in this version:
6
7 ### OUTPUT CHANGES:
8
9  - A long-standing bug was preventing rsync from figuring out the current
10    locale's decimal point character, which made rsync always output numbers
11    using the "C" locale.  Since this is now fixed in 3.2.4, a script that
12    parses rsync's decimal numbers (e.g. from the verbose footer) should be sure
13    to setup the environment in a way that the output continues to be in the C
14    locale.  For instance, one of the following should work fine:
15
16    ```shell
17        export LC_ALL=C.UTF-8
18    ```
19
20    or maybe:
21
22    ```shell
23        if [ "${LC_ALL:-}" ]; then
24            export LANG="$LC_ALL"
25            export LC_CTYPE="$LC_ALL"
26            unset LC_ALL
27        fi
28        export LC_NUMERIC=C.UTF-8
29    ```
30
31 ### BUG FIXES:
32
33  - Fixed a bug with `--inplace` + `--sparse` where the destination file could
34    get reconstructed with bogus data.  This bug can be worked-around in older
35    rsync versions by also specifying `--no-W -M--no-W`.  When running 3.2.4 or
36    newer for your copy, rsync now sends `--no-W` to the remote rsync in such a
37    scenario (just in case the remote rsync is a version with this bug).
38
39  - Fixed a bug with `--mkpath` if a single-file copy specifies an existing
40    destination dir with a non-existing destination filename.
41
42  - Fixed `--update -vv` to output "is uptodate" instead of "is newer" messages
43    for files that are being skipped due to an identical modify time.  (This
44    was a new output quirk in 3.2.3.)
45
46  - When doing an append transfer, the sending side's file must not get shorter
47    or it is skipped. Fixes a crash that could occur when the size changes to 0
48    in the middle of the send negotiations.
49
50  - When dealing with a special file in an alt-dest hierarchy, rsync now checks
51    the non-permissions mode bits to ensure that the 2 special files are really
52    the same.
53
54  - Fixed a bug where `--delay-updates` with stale partial data could cause a
55    file to fail to update.
56
57  - Fixed a few places that would output an INFO message with `--info=NAME` that
58    should only have been output given `--verbose` or `--itemize-changes`.
59
60  - Avoid a weird failure if you run a local copy with a (useless) `--rsh`
61    option that contains a `V`.
62
63 ### ENHANCEMENTS:
64
65  - Use openssl's `-verify_hostname` option in the rsync-ssl script.
66
67  - Added extra info to the "FILENAME exists" output of `--ignore-existing` when
68    `--info=skip2` is used.  The skip message becomes "FILENAME exists (INFO)"
69    where the INFO is one of "type change", "sum change" (requires `-c`), "file
70    change" (based on the quick check), "attr change", or "uptodate". Prior
71    versions only supported `--info=skip1`.
72
73  - Added the `--fsync` option (promoted from the patches repo).
74
75  - Reduced memory usage for an incremental transfer that has a bunch of small
76    directories.
77
78  - The rsync daemon can now handle a client address with an implied "%scope"
79    suffix.
80
81  - Added support for `--atimes` on macOS and fixed using using it without `-t`.
82
83  - Rsync can now update the xattrs on a read-only file when your user can
84    temporarily add user-write permission to the file. (It always worked for a
85    root transfer.)
86
87  - Rsync can now work around an `--inplace` update of a file that is being
88    refused due to the Linux fs.protected_regular sysctl setting.
89
90  - When `--chown`, `--usermap`, or `--groupmap` is used, rsync now implies
91    the appropriate `--owner` and/or `--group` option.
92
93  - Added the `--info=NONREG` setting to control if rsync should warn about
94    non-regular files in the transfer.  This is enabled by default (keeping the
95    behavior the same as before), so specifying `--info=nonreg0` can be used to
96    turn the warnings off.
97
98  - More ASM optimizations from Shark64.
99
100  - Transformed rrsync into a python script with improvements:
101    - Security has been beefed up.
102    - The known rsync options were updated to include recent additions.
103    - Make rrsync reject `-L`, `-K`, & `-k` by default to make it harder to
104      exploit any out-of-subdir symlinks.
105    - A new rrsync option of `-munge` tells rrsync to always enable rsync's
106      `--munge-links` option on the server side.
107    - A new rrsync option of `-no-lock` disables a new single-use locking idiom
108      that is the default when `-ro` is not used (useful with `-munge`).
109    - A new rrsync option of `-no-del` disables all `--remove*` and `--delete*`
110      options on the server side.
111    - The log format has been tweaked slightly to add seconds to the timestamp
112      and to output the command executed as a tuple (making the args clearer).
113    - An rrsync.1 manpage was added.
114
115  - Work around a glibc bug where lchmod() breaks in a chroot w/o /proc mounted.
116
117  - Some manpage improvements.
118
119 ### PACKAGING RELATED:
120
121  - Give configure the `--with-rrsync` option if you want `make install` to
122    install the (now python3) rrsync script and its (new) man page.
123
124  - If the rrsync script is installed, make its package depend on python3 and
125    (suggested but not required) the python3 braceexpand lib.
126
127  - When creating a package from a non-release version (w/o a git checkout), the
128    packager can elect to create git-version.h and define RSYNC_GITVER to the
129    string they want `--version` to output.  (The file is still auto-generated
130    using the output of `git describe` when building inside a non-shallow git
131    checkout, though.)
132
133  - Improved the IPv6 determination in configure.
134
135  - Made SIMD & ASM configure default to "no" on non-Linux hosts due to various
136    reports of problems on NetBSD & macOS hosts.  These tests were also tweaked
137    to support a host_cpu of amd64 in addition to x86_64.
138
139  - Fixed configure to not fail at the SIMD check when cross-compiling.
140
141  - Compile the C files with `-pedantic-errors` when possible so that we get
142    warned about an overflowed static initialization (among other things).
143
144  - Added a SECURITY.md file.
145
146 ### DEVELOPER RELATED:
147
148  - Made it easier to write rsync tests that diff the output while also checking
149    the status code, and used the idiom to improve the existing tests.
150
151  - The packaging scripts & related python lib got some minor enhancements.
152
153 ### INTERNAL
154
155  - Use setenv() instead of putenv() when it is available.
156
157  - Improve the logic in compat.c so that we don't need to try to remember to
158    sprinkle `!local_server` exceptions throughout the protocol logic.
159
160  - One more C99 Flexible Array improvement (started in the last release).
161
162 ------------------------------------------------------------------------------
163 <a name="3.2.3"></a>
164
165 # NEWS for rsync 3.2.3 (6 Aug 2020)
166
167 ## Changes in this version:
168
169 ### BUG FIXES:
170
171  - Fixed a bug in the xattr code that was freeing the wrong object when trying
172    to cleanup the xattr list.
173
174  - Fixed a bug in the xattr code that was not leaving room for the "rsync."
175    prefix in some instances where it needed to be added.
176
177  - Restored the ability to use `--bwlimit=0` to specify no bandwidth limit.  (It
178    was accidentally broken in 3.2.2.)
179
180  - Fixed a bug when combining `--delete-missing-args` with `--no-implied-dirs` &
181    `-R` where rsync might create the destination path of a missing arg.  The
182    code also avoids some superfluous warnings for nested paths of removed args.
183
184  - Fixed an issue where hard-linked devices could cause the rdev_major value to
185    get out of sync between the sender and the receiver, which could cause a
186    device to get created with the wrong major value in its major,minor pair.
187
188  - Rsync now complains about a missing `--temp-dir` before starting any file
189    transfers.
190
191  - A completely empty source arg is now a fatal error.  This doesn't change
192    the handling of implied dot-dir args such as "localhost:" and such.
193
194 ### ENHANCEMENTS:
195
196  - Allow `--max-alloc=0` to specify no limit to the alloc sanity check.
197
198  - Allow `--block-size=SIZE` to specify the size using units (e.g. "100K").
199
200  - The name of the id-0 user & group are now sent to the receiver along with
201    the other user/group names in the transfer (instead of assuming that both
202    sides have the same id-0 names).
203
204  - Added the `--stop-after=MINS` and `--stop-at=DATE_TIME` options (with the
205    `--time-limit=MINS` option accepted as an alias for `--stop-after`).  This
206    is an enhanced version of the time-limit patch from the patches repo.
207
208  - Added the `name converter` daemon parameter to make it easier to convert
209    user & group names inside a chrooted daemon module.  This is based on the
210    nameconverter patch with some improvements, including a tweak to the request
211    protocol (so if you used this patch in the past, be sure to update your
212    converter script to use newlines instead of null chars).
213
214  - Added `--crtimes` (`-N`) option for preserving the file's create time (I
215    believe that this is macOS only at the moment).
216
217  - Added `--mkpath` option to tell rsync that it should create a non-existing
218    path component of the destination arg.
219
220  - Added `--stderr=errors|all|client` to replace the `--msgs2stderr` and
221    `--no-msgs2stderr` options (which are still accepted).  The default use of
222    stderr was changed to be `--stderr=errors` where all the processes that have
223    stderr available output directly to stderr, which should help error messages
224    get to the user more quickly, especially when doing a push (which includes
225    local copying).  This also allows rsync to exit quickly when a receiver
226    failure occurs, since rsync doesn't need to try to keep the connection alive
227    long enough for the fatal error to go from the receiver to the generator to
228    the sender.  The old default can be requested via `--stderr=client`.  Also
229    changed is that a non-default stderr mode is conveyed to the remote rsync
230    (using the older option names) instead of requiring the user to use
231    `--remote-option` (`-M`) to tell the remote rsync what to do.
232
233  - Added the ability to specify "@netgroup" names to the `hosts allow` and
234    `hosts deny` daemon parameters.  This is a finalized version of the
235    netgroup-auth patch from the patches repo.
236
237  - Rsync can now hard-link symlinks on FreeBSD due to it making use of the
238    linkat() function when it is available.
239
240  - Output file+line info on out-of-memory & overflow errors while also avoiding
241    the output of alternate build-dir path info that is not useful to the user.
242
243  - Change configure to know that Cygwin supports Linux xattrs.
244
245  - Improved the testsuite on FreeBSD & Cygwin.
246
247  - Added some compatibility code for HPE NonStop platforms.
248
249  - Improved the INSTALL.md info.
250
251  - Added a few more suffixes to the default skip-compress list.
252
253  - Improved configure's error handling to notify about several issues at once
254    instead of one by one (for the newest optional features).
255
256 ### INTERNAL:
257
258  - Use a simpler overflow check idiom in a few spots.
259
260  - Use a C99 Flexible Array for a trailing variable-size filename in a struct
261    (with a fallback to the old 1-char string kluge for older compilers).
262
263 ------------------------------------------------------------------------------
264 <a name="3.2.2"></a>
265
266 # NEWS for rsync 3.2.2 (4 Jul 2020)
267
268 ## Changes in this version:
269
270 ### BUG FIXES:
271
272  - Avoid a crash when a daemon module enables `transfer logging` without
273    setting a `log format` value.
274
275  - Fixed installing rsync-ssl script from an alternate build dir.
276
277  - Fixed the updating of configure.sh from an alternate build dir.
278
279  - Apple requires the asm function name to begin with an underscore.
280
281  - Avoid a test failure in the daemon test when `--atimes` is disabled.
282
283 ### ENHANCEMENTS:
284
285  - Allow the server side to restrict checksum & compression choices via the
286    same environment variables the client uses.  The env vars can be divided
287    into "client list & server list" by the "`&`" char or the same list can
288    apply to both.
289
290  - Simplify how the negotiation environment variables apply when interacting
291    with an older rsync and also when a list contains only invalid names.
292
293  - Do not allow a negotiated checksum or compression choice of "none" unless
294    the user authorized it via an environment variable or command-line option.
295
296  - Added the `--max-alloc=SIZE` option to be able to override the memory
297    allocator's sanity-check limit.  It defaults to 1G (as before) but the error
298    message when exceeding it specifically mentions the new option so that you
299    can differentiate an out-of-memory error from a failure of this limit.  It
300    also allows you to specify the value via the RSYNC_MAX_ALLOC environment
301    variable.
302
303  - Add the "open atime" daemon parameter to allow a daemon to always enable or
304    disable the use of O_NOATIME (the default is to let the user control it).
305
306  - The default systemd config was changed to remove the `ProtectHome=on`
307    setting since rsync is often used to serve files in /home and /root and this
308    seemed a bit too strict.  Feel free to use `systemctl edit rsync` to add
309    that restriction (or maybe `ProtectHome=read-only`), if you like.  See the
310    3.2.0 NEWS for the other restrictions that were added compared to 3.1.3.
311
312  - The memory allocation functions now automatically check for a failure and
313    die when out of memory.  This eliminated some caller-side check-and-die
314    code and added some missing sanity-checking of allocations.
315
316  - Put optimizations into their own list in the `--version` output.
317
318  - Improved the man page a bit more.
319
320 ### PACKAGING RELATED:
321
322  - Prepared the checksum code for an upcoming xxHash release that provides new
323    XXH3 (64-bit) & XXH128 (128-bit) checksum routines.  These will not be
324    compiled into rsync until the xxhash v0.8.0 include files are installed on
325    the build host, and that release is a few weeks away at the time this was
326    written.  So, if it's now the future and you have packaged and installed
327    xxhash-0.8.0-devel, a fresh rebuild of rsync 3.2.2 will give you the new
328    checksum routines.  Just make sure that the new rsync package depends on
329    xxhash >= 0.8.0.
330
331 ### DEVELOPER RELATED:
332
333  - Moved the version number out of configure.ac into its own version.h file so
334    that we don't need to reconfigure just because the version number changes.
335
336  - Moved the daemon parameter list into daemon-parm.txt so that an awk script
337    can create the interrelated structs and accessors that loadparm.c needs.
338
339 ------------------------------------------------------------------------------
340 <a name="3.2.1"></a>
341
342 # NEWS for rsync 3.2.1 (22 Jun 2020)
343
344 ## Changes in this version:
345
346 ### BUG FIXES:
347
348  - Fixed a potential build issue with the MD5 assembly-language code by
349    removing some non-portable directives.
350
351  - Use the preprocessor with the asm file to ensure that if the code is
352    unneeded, it doesn't get built.
353
354  - Avoid the stack getting set to executable when including the asm code.
355
356  - Some improvements in the SIMD configure testing to try to avoid build
357    issues, such as avoiding a clang++ core dump when `-g` is combined with
358    `-O2`.  Note that clang++ is quite buggy in this area, and it does still
359    crash for some folks, so just use `--disable-simd` if you need to avoid
360    their buggy compiler (since the configure test is apparently not finding
361    all the compilers that will to crash and burn).
362
363  - Fixed an issue in the md2man script when building from an alternate dir.
364
365  - Disable `--atimes` on macOS (it apparently just ignores the atime change).
366
367 ### ENHANCEMENTS:
368
369  - The use of `--backup-dir=STR` now implies `--backup`.
370
371  - Added `--zl=NUM` as a short-hand for `--compress-level=NUM`.
372
373  - Added `--early-input=FILE` option that allows the client to send some
374    data to a daemon's (optional) "early exec" script on its stdin.
375
376  - Mention atimes in the capabilities list that `--version` outputs.
377
378  - Mention either "default protect-args" or "optional protect-args" in the
379    `--version` capabilities depending on how rsync was configured.
380
381  - Some info on optimizations is now elided from the `--version` capabilities
382    since they aren't really user-facing capabilities.  You can still see the
383    info (plus the status of a couple extra optimizations) by repeating the
384    `--version` option (e.g. `-VV`).
385
386  - Updated various URLs to be https instead of http.
387
388  - Some documentation improvements.
389
390 ### PACKAGING RELATED:
391
392  - If you had to use `--disable-simd` for 3.2.0, you might want to try removing
393    that and see if it will succeed or auto-disable.  Some buggy clang++
394    compilers are still not auto disabled, though.
395
396  - The MD5 asm code is now under its own configure flag (not shared with the
397    SIMD setting), so if you have any issues compiling it, re-run configure with
398    `--disable-asm`.
399
400  - Merged the OLDNEWS.md file into NEWS.md.
401
402 ------------------------------------------------------------------------------
403 <a name="3.2.0"></a>
404
405 # NEWS for rsync 3.2.0 (19 Jun 2020)
406
407 ## Changes in this version:
408
409 ### BUG FIXES:
410
411  - Avoid a potential out-of-bounds read in daemon mode if argc can be made to
412    become 0.
413
414  - Fix the default list of skip-compress files for non-daemon transfers.
415
416  - Fix xattr filter rules losing an 'x' attribute in a non-local transfer.
417
418  - Avoid an error when a check for a potential fuzzy file happens to reference
419    a directory.
420
421  - Make the atomic-rsync helper script have a more consistent error-exit.
422
423  - Make sure that a signal handler's use of exit_cleanup() calls `_exit()`
424    instead of exit().
425
426  - Various zlib fixes, including security fixes for CVE-2016-9843,
427    CVE-2016-9842, CVE-2016-9841, and CVE-2016-9840.
428
429  - Fixed an issue with `--remove-source-files` not removing a source symlink
430    when combined with `--copy-links`.
431
432  - Fixed a bug where the daemon would fail to write early fatal error messages
433    to the client, such as refused or unknown command-line options.
434
435  - Fixed the block-size validation logic when dealing with older protocols.
436
437  - Some rrsync fixes and enhancements to handle the latest options.
438
439  - Fixed a problem with the `--link-dest`|`--copy-dest` code when `--xattrs`
440    was specified along with multiple alternate-destination directories (it
441    could possibly choose a bad file match while trying to find a better xattr
442    match).
443
444  - Fixed a couple bugs in the handling of files with the `--sparse` option.
445
446  - Fixed a bug in the writing of the batch.sh file (w/`--write-batch`) when the
447    source & destination args were not last on the command-line.
448
449  - Avoid a hang when an overabundance of messages clogs up all the I/O buffers.
450
451  - Fixed a mismatch in the RSYNC_PID values put into the environment of
452    `pre-xfer exec` and a `post-xfer exec`.
453
454  - Fixed a crash in the `--iconv` code.
455
456  - Fixed a rare crash in the popt_unalias() code.
457
458 ### ENHANCEMENTS:
459
460  - The default systemd config was made stricter by default.  For instance,
461    `ProtectHome=on` (which hides content in /root and /home/USER dirs),
462    `ProtectSystem=full` (which makes /usr, /boot, & /etc dirs read-only), and
463    `PrivateDevices=on` (which hides devices).  You can override any of these
464    using the standard `systemctl edit rsync` and add one or more directives
465    under a `[Service]` heading (and restart the rsync service).
466
467  - Various checksum enhancements, including the optional use of openssl's MD4 &
468    MD5 checksum algorithms, some x86-64 optimizations for the rolling checksum,
469    some x86-64 optimizations for the (non-openssl) MD5 checksum, the addition
470    of xxHash checksum support, and a negotiation heuristic that ensures that it
471    is easier to add new checksum algorithms in the future.  The environment
472    variable `RSYNC_CHECKSUM_LIST` can be used to customize the preference order
473    of the negotiation, or use `--checksum-choice` (`--cc`) to force a choice.
474
475  - Various compression enhancements, including the addition of zstd and lz4
476    compression algorithms and a negotiation heuristic that picks the best
477    compression option supported by both sides.  The environment variable
478    `RSYNC_COMPRESS_LIST` can be used to customize the preference order of the
479    negotiation, or use `--compress-choice` (`--zc`) to force a choice.
480
481  - Added a `--debug=NSTR` option that outputs details of the new negotiation
482    strings (for checksums and compression).  The first level just outputs the
483    result of each negotiation on the client, level 2 outputs the values of the
484    strings that were sent to and received from the server, and level 3 outputs
485    all those values on the server side too (when the server was given the debug
486    option).
487
488  - The `--debug=OPTS` command-line option is no longer auto-forwarded to the
489    remote rsync which allows for the client and server to have different levels
490    of debug specified. This also allows for newer debug options to be
491    specified, such as using `--debug=NSTR` to see the negotiated hash result,
492    without having the command fail if the server version is too old to handle
493    that debug item. Use `-M--debug=OPTS` to send the options to the remote side.
494
495  - Added the `--atimes` option based on the long-standing patch (just with some
496    fixes that the patch has been needing).
497
498  - Added `--open-noatime` option to open files using `O_NOATIME`.
499
500  - Added the `--write-devices` option based on the long-standing patch.
501
502  - Added openssl & preliminary gnutls support to the rsync-ssl script, which is
503    now installed by default.  This was unified with the old stunnel-rsync
504    helper script to simplify packaging.  Note that the script accepts the use
505    of `--type=gnutls` for gnutls testing, but does not look for gnutls-cli on
506    the path yet.  The use of `--type=gnutls` will not work right until
507    gnutls-cli no longer drops data.
508
509  - Rsync was enhanced to set the `RSYNC_PORT` environment variable when running
510    a daemon-over-rsh script. Its value is the user-specified port number (set
511    via `--port` or an rsync:// URL) or 0 if the user didn't override the port.
512
513  - Added the `proxy protocol` daemon parameter that allows your rsyncd to know
514    the real remote IP when it is setup behind a proxy.
515
516  - Added negated matching to the daemon's `refuse options` setting by using
517    match strings that start with a `!` (such as `!compress*`).  This lets you
518    refuse all options except for a particular approved list, for example.  It
519    also lets rsync refuse certain options by default (such as `write-devices`)
520    while allowing the config to override that, as desired.
521
522  - Added the `early exec` daemon parameter that runs a script before the
523    transfer parameters are known, allowing some early setup based on module
524    name.
525
526  - Added status output in response to a signal (via both SIGINFO & SIGVTALRM).
527
528  - Added `--copy-as=USER` option to give some extra security to root-run rsync
529    commands into/from untrusted directories (such as backups and restores).
530
531  - When resuming the transfer of a file in the `--partial-dir`, rsync will now
532    update that partial file in-place instead of creating yet another tmp file
533    copy.  This requires both sender & receiver to be at least v3.2.0.
534
535  - Added support for `RSYNC_SHELL` & `RSYNC_NO_XFER_EXEC` environment variables
536    that affect the early, pre-xfer, and post-xfer exec rsync daemon parameters.
537
538  - Optimize the `--fuzzy --fuzzy` heuristic to avoid the fuzzy directory scan
539    until all other basis-file options are exhausted (such as `--link-dest`).
540
541  - Have the daemon log include the normal-exit sent/received stats when the
542    transfer exited with an error when possible (i.e. if it is the sender).
543
544  - The daemon now locks its pid file (when configured to use one) so that it
545    will not fail to start when the file exists but no daemon is running.
546
547  - Various man page improvements, including some html representations (that
548    aren't installed by default).
549
550  - Made `-V` the short option for `--version` and improved its information.
551
552  - Pass the `-4` or `-6` option to the ssh command, making it easier to type
553    than `--rsh='ssh -4'` (or the `-6` equivalent).
554
555  - Added example config for rsyncd SSL proxy configs to rsyncd.conf.
556
557  - More errors messages now mention if the error is coming from the sender or
558    the receiver.
559
560 ### PACKAGING RELATED:
561
562  - Add installed bash script: /usr/bin/rsync-ssl
563
564  - Add installed man page: /usr/man/man1/rsync-ssl.1
565
566  - Tweak auxiliary doc file names, such as: README.md, INSTALL.md, & NEWS.md.
567
568  - The rsync-ssl script wants to run openssl or stunnel4, so consider adding a
569    dependency for one of those options (though it's probably fine to just let
570    it complain about being unable to find the program and let the user decide
571    if they want to install one or the other).
572
573  - If you packaged rsync + rsync-ssl + rsync-ssl-daemon as separate packages,
574    the rsync-ssl package is now gone (rsync-ssl should be considered to be
575    mainstream now that Samba requires SSL for its rsync daemon).
576
577  - Add _build_ dependency for liblz4-dev, libxxhash-dev, libzstd-dev, and
578    libssl-dev.  These development libraries will give rsync extra compression
579    algorithms, extra checksum algorithms, and allow use of openssl's crypto
580    lib for (potentially) faster MD4/MD5 checksums.
581
582  - Add _build_ dependency for g++ or clang++ on x86_64 systems to enable the
583    SIMD checksum optimizations.
584
585  - Add _build_ dependency for _either_ python3-cmarkcfm or python3-commonmark
586    to allow for patching of man pages or building a git release.  This is not
587    required for a release-tar build, since it comes with pre-built man pages.
588    Note that cmarkcfm is faster than commonmark, but they generate the same
589    data.  The commonmark dependency is easiest to install since it's native
590    python, and can even be installed via `pip3 install --user commonmark` if
591    you want to just install it for the build user.
592
593  - Remove yodl _build_ dependency (if it was even listed before).
594
595 ### DEVELOPER RELATED:
596
597  - Silenced some annoying warnings about major() & minor() by improving an
598    autoconf include-file check.
599
600  - Converted the man pages from yodl to markdown. They are now processed via a
601    simple python3 script using the cmarkgfm **or** commonmark library.  This
602    should make it easier to package rsync, since yodl is rather obscure.
603
604  - Improved some configure checks to work better with strict C99 compilers.
605
606  - Some perl building/packaging scripts were recoded into awk and python3.
607
608  - Some defines in byteorder.h were changed into static inline functions that
609    will help to ensure that the args don't get evaluated multiple times on
610    "careful alignment" hosts.
611
612  - Some code typos were fixed (as pointed out by a Fossies run).
613
614 ------------------------------------------------------------------------------
615 <a name="3.1.3"></a>
616
617 # NEWS for rsync 3.1.3 (28 Jan 2018)
618
619 ## Changes in this version:
620
621 ### SECURITY FIXES:
622
623  - Fixed a buffer overrun in the protocol's handling of xattr names and ensure
624    that the received name is null terminated.
625
626  - Fix an issue with `--protect-args` where the user could specify the arg in the
627    protected-arg list and short-circuit some of the arg-sanitizing code.
628
629 ### BUG FIXES:
630
631  - Don't output about a new backup dir without appropriate info verbosity.
632
633  - Fixed some issues with the sort functions in support/rsyncstats script.
634
635  - Added a way to specify daemon config lists (e.g. users, groups, etc) that
636    contain spaces (see `auth users` in the latest rsyncd.conf manpage).
637
638  - If a backup fails (e.g. full disk) rsync exits with an error.
639
640  - Fixed a problem with a doubled `--fuzzy` option combined with `--link-dest`.
641
642  - Avoid invalid output in the summary if either the start or end time had an
643    error.
644
645  - We don't allow a popt alias to affect the `--daemon` or `--server` options.
646
647  - Fix daemon exclude code to disallow attribute changes in addition to
648    disallowing transfers.
649
650  - Don't force nanoseconds to match if a non-transferred, non-checksummed file
651    only passed the quick-check w/o comparing nanoseconds.
652
653 ### ENHANCEMENTS:
654
655  - Added the ability for rsync to compare nanosecond times in its file-check
656    comparisons, and added support nanosecond times on Mac OS X.
657
658  - Added a short-option (`-@`) for `--modify-window`.
659
660  - Added the `--checksum-choice=NAME[,NAME]` option to choose the checksum
661    algorithms.
662
663  - Added hashing of xattr names (with using `-X`) to improve the handling of
664    files with large numbers of xattrs.
665
666  - Added a way to filter xattr names using include/exclude/filter rules (see
667    the `--xattrs` option in the manpage for details).
668
669  - Added `daemon chroot|uid|gid` to the daemon config (in addition to the old
670    chroot|uid|gid settings that affect the daemon's transfer process).
671
672  - Added `syslog tag` to the daemon configuration.
673
674  - Some manpage improvements.
675
676 ### DEVELOPER RELATED:
677
678  - Tweak the `make` output when yodl isn't around to create the man pages.
679
680  - Changed an obsolete autoconf compile macro.
681
682  - Support newer yodl versions when converting man pages.
683
684 ------------------------------------------------------------------------------
685 <a name="3.1.2"></a>
686
687 # NEWS for rsync 3.1.2 (21 Dec 2015)
688
689 ## Changes in this version:
690
691 ### SECURITY FIXES:
692
693  - Make sure that all transferred files use only path names from inside the
694    transfer. This makes it impossible for a malicious sender to try to make the
695    receiver use an unsafe destination path for a transferred file, such as a
696    just-sent symlink.
697
698 ### BUG FIXES:
699
700  - Change the checksum seed order in the per-block checksums. This prevents
701    someone from trying to create checksum blocks that match in sum but not
702    content.
703
704  - Fixed a with the per-dir filter files (using `-FF`) that could trigger an
705    assert failure.
706
707  - Only skip `set_modtime()` on a transferred file if the time is exactly
708    right.
709
710  - Don't create an empty backup dir for a transferred file that doesn't exist
711    yet.
712
713  - Fixed a bug where `--link-dest` and `--xattrs` could cause rsync to exit if
714    a filename had a matching dir of the same name in the alt-dest area.
715
716  - Allow more than 32 group IDs per user in the daemon's gid=LIST config.
717
718  - Fix the logging of %b & %c via `--log-file` (daemon logging was already
719    correct, as was `--out-format='%b/%c'`).
720
721  - Fix erroneous acceptance of `--info=5` & `--debug=5` (an empty flag name is
722    not valid).
723
724 ### ENHANCEMENTS:
725
726  - Added `(DRY RUN)` info to the `--debug=exit` output line.
727
728  - Use usleep() for our msleep() function if it is available.
729
730  - Added a few extra long-option names to rrsync script, which will make
731    BackupPC happier.
732
733  - Made configure choose to use Linux xattrs on NetBSD (rather than not
734    supporting xattrs).
735
736  - Added `-wo` (write-only) option to rrsync support script.
737
738  - Misc. manpage tweaks.
739
740 ### DEVELOPER RELATED:
741
742  - Fixed a bug with the Makefile's use of `INSTALL_STRIP`.
743
744  - Improve a test in the suite that could get an erroneous timestamp error.
745
746  - Tweaks for newer versions of git in the packaging tools.
747
748  - Improved the m4 generation rules and some autoconf idioms.
749
750 ------------------------------------------------------------------------------
751 <a name="3.1.1"></a>
752
753 # NEWS for rsync 3.1.1 (22 Jun 2014)
754
755 ## Changes in this version:
756
757 ### BUG FIXES:
758
759  - If the receiver gets bogus filenames from the sender (an unexpected leading
760    slash or a `..` infix dir), exit with an error. This prevents a malicious
761    sender from trying to inject filenames that would affect an area outside the
762    destination directories.
763
764  - Fixed a failure to remove the partial-transfer temp file when interrupted
765    (and rsync is not saving the partial files).
766
767  - Changed the chown/group/xattr-set order to avoid losing some security-
768    related xattr info (that would get cleared by a chown).
769
770  - Fixed a bug in the xattr-finding code that could make a non-root-run
771    receiver not able to find some xattr numbers.
772
773  - Fixed a bug in the early daemon protocol where a timeout failed to be
774    honored (e.g. if the remote side fails to send us the initial protocol
775    greeting).
776
777  - Fixed unintended inclusion of commas in file numbers in the daemon log.
778
779  - We once again send the 'f' sub-flag (of `-e`) to the server side so it knows
780    that we can handle incremental-recursion directory errors properly in older
781    protocols.
782
783  - Fixed an issue with too-aggressive keep-alive messages causing a problem for
784    older rsync versions early in the transfer.
785
786  - Fixed an incorrect message about backup-directory-creation when using
787    `--dry-run` and the backup dir is not an absolute path.
788
789  - Fixed a bug where a failed deletion and/or a failed sender-side removal
790    would not affect the exit code.
791
792  - Fixed a bug that caused a failure when combining `--delete-missing-args`
793    with `--xattrs` and/or `--acls`.
794
795  - Fixed a strange `dir_depth` assertion error that was caused by empty-dir
796    removals and/or duplicate files in the transfer.
797
798  - Fixed a problem with `--info=progress2`'s output stats where rsync would
799    only update the stats at the end of each file's transfer. It now uses the
800    data that is flowing for the current file, making the stats more accurate
801    and less jumpy.
802
803  - Fixed an itemize bug that affected the combo of `--link-dest`, `-X`, and
804    `-n`.
805
806  - Fixed a problem with delete messages not appearing in the log file when the
807    user didn't use `--verbose`.
808
809  - Improve chunked xattr reading for OS X.
810
811  - Removed an attempted hard-link xattr optimization that was causing a
812    transfer failure. This removal is flagged in the compatibility code, so if a
813    better fix can be discovered, we have a way to flip it on again.
814
815  - Fixed a bug when the receiver is not configured to be able to hard link
816    symlimks/devices/special-file items but the sender sent some of these items
817    flagged as hard-linked.
818
819  - We now generate a better error if the buffer overflows in `do_mknod()`.
820
821  - Fixed a problem reading more than 16 ACLs on some OSes.
822
823  - Fixed the reading of the secrets file to avoid an infinite wait when the
824    username is missing.
825
826  - Fixed a parsing problem in the `--usermap`/`--groupmap` options when using
827    MIN-MAX numbers.
828
829  - Switched Cygwin back to using socketpair `pipes` to try to speed it up.
830
831  - Added knowledge of a few new options to rrsync.
832
833 ### ENHANCEMENTS:
834
835  - Tweaked the temp-file naming when `--temp-dir=DIR` is used: the temp-file
836    names will not get a '.' prepended.
837
838  - Added support for a new-compression idiom that does not compress all the
839    matching data in a transfer. This can help rsync to use less cpu when a
840    transfer has a lot of matching data, and also makes rsync compatible with a
841    non-bundled zlib. See the `--new-compress` and `--old-compress` options in
842    the manpage.
843
844  - Added the support/rsync-no-vanished wrapper script.
845
846  - Made configure more prominently mention when we failed to find yodl (in case
847    the user wants to be able to generate manpages from `*.yo` files).
848
849  - Have manpage mention how a daemon's max-verbosity setting affects info and
850    debug options. Also added more clarification on backslash removals for
851    excludes that contain wildcards.
852
853  - Have configure check if for the attr lib (for getxattr) for those systems
854    that need to link against it explicitly.
855
856  - Change the early dir-creation logic to only use that idiom in an
857    inc-recursive copy that is preserving directory times. e.g. using
858    `--omit-dir-times` will avoid these early directories being created.
859
860  - Fix a bug in `cmp_time()` that would return a wrong result if the 2 times
861    differed by an amount greater than what a `time_t` can hold.
862
863 ### DEVELOPER RELATED:
864
865  - We now include an example systemd file (in packaging/systemd).
866
867  - Tweaked configure to make sure that any intended use of the included popt
868    and/or zlib code is put early in the CFLAGS.
869
870 ------------------------------------------------------------------------------
871 <a name="3.1.0"></a>
872
873 # NEWS for rsync 3.1.0 (28 Sep 2013)
874
875 ## Changes in this version:
876
877 ### PROTOCOL NUMBER:
878
879  - The protocol number was changed to 31.
880
881 ### OUTPUT CHANGES:
882
883  - Output numbers in 3-digit groups by default (e.g. 1,234,567). See the
884    `--human-readable` option for a way to turn it off. See also the daemon's
885    `log format` parameter and related command-line options (including
886    `--out-format`) for a modifier that can be used to request digit-grouping or
887    human-readable output in log escapes. (Note that log output is unchanged by
888    default.)
889
890  - The `--list-only` option is now affected by the `--human-readable` setting.
891    It will display digit groupings by default, and unit suffixes if higher
892    levels of readability are requested. Also, the column width for the size
893    output has increased from 11 to 14 characters when human readability is
894    enabled. Use `--no-h` to get the old-style output and column size.
895
896  - The output of the `--progress` option has changed: the string `xfer` was
897    shortened to `xfr`, and the string `to-check` was shortened to `to-chk`,
898    both designed to make room for the (by default) wider display of file size
899    numbers without making the total line-length longer. Also, when incremental
900    recursion is enabled, the string `ir-chk` will be used instead of `to-chk`
901    up until the incremental-recursion scan is done, letting you know that the
902    value to check and the total value will still be increasing as new files are
903    found.
904
905  - Enhanced the `--stats` output: 1) to mention how many files were created
906    (protocol >= 28), 2) to mention how many files were deleted (a new line for
907    protocol 31, but only output when `--delete` is in effect), and 3) to follow
908    the file-count, created-count, and deleted-count with a subcount list that
909    shows the counts by type. The wording of the transferred count has also
910    changed so that it is clearer that it is only a count of regular files.
911
912 ### BUG FIXES:
913
914  - Fixed a bug in the iconv code when EINVAL or EILSEQ is returned with a full
915    output buffer.
916
917  - Fixed some rare bugs in `--iconv` processing that might cause a multi-byte
918    character to get translated incorrectly.
919
920  - Fixed a bogus `vanished file` error if some files were specified with `./`
921    prefixes and others were not.
922
923  - Fixed a bug in `--sparse` where an extra gap could get inserted after a
924    partial write.
925
926  - Changed the way `--progress` overwrites its prior output in order to make it
927    nearly impossible for the progress to get overwritten by an error.
928
929  - Improved the propagation of abnormal-exit error messages. This should help
930    the client side to receive errors from the server when it is exiting
931    abnormally, and should also avoid dying with an `connection unexpectedly
932    closed` exit when the closed connection is really expected.
933
934  - The sender now checks each file it plans to remove to ensure that it hasn't
935    changed from the first stat's info. This helps to avoid losing file data
936    when the user is not using the option in a safe manner.
937
938  - Fixed a data-duplication bug in the compress option that made compression
939    less efficient. This improves protocol 31 onward, while behaving in a
940    compatible (buggy) manner with older rsync protocols.
941
942  - When creating a temp-file, rsync is now a bit smarter about it dot-char
943    choices, which can fix a problem on OS X with names that start with `..`.
944
945  - Rsync now sets a cleanup flag for `--inplace` and `--append` transfers that
946    will flush the write buffer if the transfer aborts. This ensures that more
947    received data gets written out to the disk on an aborted transfer (which is
948    quite helpful on a slow, flaky connection).
949
950  - The reads that `map_ptr()` now does are aligned on 1K boundaries. This helps
951    some filesystems and/or files that don't like unaligned reads.
952
953  - Fix an issue in the msleep() function if time jumps backwards.
954
955  - Fix daemon-server module-name splitting bug where an arg would get split
956    even if `--protect-args` was used.
957
958 ### ENHANCEMENTS:
959
960  - Added the `--remote-option=OPT` (`-M OPT`) command-line option that is
961    useful for things like sending a remote `--log-file=FILE` or `--fake-super`
962    option.
963
964  - Added the `--info=FLAGS` and `--debug=FLAGS` options to allow finer-grained
965    control over what is output. Added an extra type of `--progress` output
966    using `--info=progress2`.
967
968  - The `--msgs2stderr` option can help with debugging rsync by allowing the
969    debug messages to get output to stderr rather than travel via the socket
970    protocol.
971
972  - Added the `--delete-missing-args` and `--ignore-missing-args` options to
973    either delete or ignore user-specified files on the receiver that are
974    missing on the sender (normally the absence of user-specified files
975    generates an error).
976
977  - Added a `T` (terabyte) category to the `--human-readable` size suffixes.
978
979  - Added the `--usermap`/`--groupmap`/`--chown` options for manipulating file
980    ownership during the copy.
981
982  - Added the `%C` escape to the log-output handling, which will output the MD5
983    checksum of any transferred file, or all files if `--checksum` was specified
984    (when protocol 30 or above is in effect).
985
986  - Added the `reverse lookup` parameter to the rsync daemon config file to
987    allow reverse-DNS lookups to be disabled.
988
989  - Added a forward-DNS lookup for the daemon's hosts allow/deny config. Can be
990    disabled via `forward lookup` parameter (defaults to enabled).
991
992  - Added a way for more than one group to be specified in the daemon's config
993    file, including a way to specify that you want all of the specified user's
994    groups without having to name them. Also changed the daemon to complain
995    about an inability to set explicitly-specified uid/gid values, even when not
996    run by a super-user.
997
998  - The daemon now tries to send the user the error messages from the pre-xfer
999    exec script when it fails.
1000
1001  - Improved the use of alt-dest options into an existing hierarchy of files: If
1002    a match is found in an alt-dir, it takes precedence over an existing file.
1003    (We'll need to wait for a future version before attribute-changes on
1004    otherwise unchanged files are safe when using an existing hierarchy.)
1005
1006  - Added per-user authorization options and group-authorization support to the
1007    daemon's `auth users` parameter.
1008
1009  - Added a way to reference environment variables in a daemon's config file
1010    (using %VAR% references).
1011
1012  - When replacing a non-dir with a symlink/hard-link/device/special-file, the
1013    update should now be done in an atomic manner.
1014
1015  - Avoid re-sending xattr info for hard-linked files w/the same xattrs
1016    (protocol 31).
1017
1018  - The backup code was improved to use better logic maintaining the backup
1019    directory hierarchy. Also, when a file is being backed up, rsync tries to
1020    hard-link it into place so that the upcoming replacement of the destination
1021    file will be atomic (for the normal, non-inplace logic).
1022
1023  - Added the ability to synchronize nanosecond modified times.
1024
1025  - Added a few more default suffixes for the `dont compress` settings.
1026
1027  - Added the checking of the `RSYNC_PROTECT_ARGS` environment variable to allow
1028    the default for the `--protect-args` command-line option to be overridden.
1029
1030  - Added the `--preallocate` command-line option.
1031
1032  - Allow `--password-file=-` to read the password from stdin (filename `-`).
1033
1034  - Rsync now comes packaged with an rsync-ssl helper script that can be used to
1035    contact a remote rsync daemon using a piped-stunnel command.  It also
1036    includes an stunnel config file to run the server side to support ssl daemon
1037    connections. See the packaging/lsb/rsync.spec file for one way to package
1038    the resulting files. (Suggestions for how to make this even easier to
1039    install & use are welcomed.)
1040
1041  - Improved the speed of some `--inplace` updates when there are lots of
1042    identical checksum blocks that end up being unusable.
1043
1044  - Added the `--outbuf=N|L|B` option for choosing the output buffering.
1045
1046  - Repeating the `--fuzzy` option now causes the code to look for fuzzy matches
1047    inside alt-dest directories too.
1048
1049  - The `--chmod` option now supports numeric modes, e.g. `--chmod=644,D755`
1050
1051  - Added some Solaris xattr code.
1052
1053  - Made an rsync daemon (the listening process) exit with a 0 status when it
1054    was signaled to die. This helps launchd.
1055
1056  - Improved the `RSYNC_*` environment variables for the pre-xfer exec script:
1057    when a daemon is sent multiple request args, they are now joined into a
1058    single return value (separated by spaces) so that the `RSYNC_REQUEST`
1059    environment variable is accurate for any `pre-xfer exec`. The values in
1060    `RSYNC_ARG#` vars are no longer truncated at the `.` arg (prior to the
1061    request dirs/files), so that all the requested values are also listed
1062    (separately) in `RSYNC_ARG#` variables.
1063
1064 ### EXTRAS:
1065
1066  - Added an `instant-rsyncd` script to the support directory, which makes it
1067    easy to configure a simple rsync daemon in the current directory.
1068
1069  - Added the `mapfrom` and `mapto` scripts to the support directory, which
1070    makes it easier to do user/group mapping in a local transfer based on
1071    passwd/group files from another machine.
1072
1073  - There's a new, improved version of the lsh script in the support dir: it's
1074    written in perl and supports `-u` without resorting to using sudo (when run
1075    as root). The old shell version is now named lsh.sh.
1076
1077  - There is a helper script named rsync-slash-strip in the support directory
1078    for anyone that wants to change the way rsync handles args with trailing
1079    slashes. (e.g. arg/ would get stripped to arg while arg/. would turn into
1080    arg/).
1081
1082 ### INTERNAL:
1083
1084  - The I/O code was rewritten to be simpler and do bigger buffered reads over
1085    the socket. The I/O between the receiver and the generator was changed to be
1086    standard multiplexed-I/O (like that over the socket).
1087
1088  - The sender tries to use any dead time while the generator is looking for
1089    files to transfer in order to do sender-side directory scanning in a more
1090    parallel manner.
1091
1092  - A daemon can now inform a client about a daemon-configured timeout value so
1093    that the client can assist in the keep-alive activity (protocol 31).
1094
1095  - The filter code received some refactoring to make it more extendable, to
1096    read better, and do better sanity checking.
1097
1098  - Really big numbers are now output using our own big-num routine rather than
1099    casting them to a double and using a %.0f conversion.
1100
1101  - The `pool_alloc` library has received some minor improvements in alignment
1102    handling.
1103
1104  - Added `init_stat_x()` function to avoid duplication of acl/xattr init code.
1105
1106  - The included zlib was upgraded from 1.2.3 to 1.2.8.
1107
1108  - Rsync can now be compiled to use an unmodified zlib library instead of the
1109    tweaked one that is included with rsync. This will eventually become the
1110    default, at which point we'll start the countdown to removing the included
1111    zlib. Until then, feel free to configure using:
1112
1113    ./configure `--with-included-zlib=no`
1114
1115 ### DEVELOPER RELATED:
1116
1117  - Added more conditional debug output.
1118
1119  - Fixed some build issues for Android and Minix.
1120
1121 ------------------------------------------------------------------------------
1122 <a name="3.0.9"></a>
1123
1124 # NEWS for rsync 3.0.9 (23 Sep 2011)
1125
1126 ## Changes in this version:
1127
1128 ### BUG FIXES:
1129
1130  - Fix a crash bug in checksum scanning when `--inplace` is used.
1131
1132  - Fix a hang if a hard-linked file cannot be opened by the sender (e.g.  if it
1133    has no read permission).
1134
1135  - Fix preservation of a symlink's system xattrs (e.g. selinux) on Linux.
1136
1137  - Fix a memory leak in the xattr code.
1138
1139  - Fixed a bug with `--delete-excluded` when a filter merge file has a rule
1140    that specifies a receiver-only side restriction.
1141
1142  - Fix a bug with the modifying of unwritable directories.
1143
1144  - Fix `--fake-super`'s interaction with `--link-dest` same-file comparisons.
1145
1146  - Fix the updating of the `curr_dir` buffer to avoid a duplicate slash.
1147
1148  - Fix the directory permissions on an implied dot-dir when using `--relative`
1149    (e.g. /outside/path/././send/path).
1150
1151  - Fixed some too-long sleeping instances when using `--bwlimit`.
1152
1153  - Fixed when symlink ownership difference-checking gets compiled into
1154    `unchanged_attrs()`.
1155
1156  - Improved the socket-error reporting when multiple protocols fail.
1157
1158  - Fixed a case where a socket error could reference just-freed memory.
1159
1160  - Failing to use a password file that was specified on the command-line is now
1161    a fatal error.
1162
1163  - Fix the non-root updating of directories that don't have the read and/or
1164    execute permission.
1165
1166  - Make daemon-excluded file errors more error-like.
1167
1168  - Fix a compilation issue on older C compilers (due to a misplaced var
1169    declaration).
1170
1171  - Make configure avoid finding socketpair on Cygwin.
1172
1173  - Avoid trying to reference `SO_BROADCAST` if the OS doesn't support it.
1174
1175  - Fix some issues with the post-processing of the man pages.
1176
1177  - Fixed the user home-dir handling in the support/lsh script.
1178
1179  - Some minor manpage improvements.
1180
1181 ------------------------------------------------------------------------------
1182 <a name="3.0.8"></a>
1183
1184 # NEWS for rsync 3.0.8 (26 Mar 2011)
1185
1186 ## Changes in this version:
1187
1188 ### BUG FIXES:
1189
1190  - Fixed two buffer-overflow issues: one where a directory path that is exactly
1191    MAXPATHLEN was not handled correctly, and one handling a `--backup-dir` that
1192    is extra extra large.
1193
1194  - Fixed a data-corruption issue when preserving hard-links without preserving
1195    file ownership, and doing deletions either before or during the transfer
1196    (CVE-2011-1097). This fixes some assert errors in the hard-linking code, and
1197    some potential failed checksums (via `-c`) that should have matched.
1198
1199  - Fixed a potential crash when an rsync daemon has a filter/exclude list and
1200    the transfer is using ACLs or xattrs.
1201
1202  - Fixed a hang if a really large file is being processed by an rsync that
1203    can't handle 64-bit numbers. Rsync will now complain about the file being
1204    too big and skip it.
1205
1206  - For devices and special files, we now avoid gathering useless ACL and/or
1207    xattr information for files that aren't being copied. (The un-copied files
1208    are still put into the file list, but there's no need to gather data that is
1209    not going to be used.) This ensures that if the user uses `--no-D`, that
1210    rsync can't possibly complain about being unable to gather extended
1211    information from special files that are in the file list (but not in the
1212    transfer).
1213
1214  - Properly handle requesting remote filenames that start with a dash. This
1215    avoids a potential error where a filename could be interpreted as a (usually
1216    invalid) option.
1217
1218  - Fixed a bug in the comparing of upper-case letters in file suffixes for
1219    `--skip-compress`.
1220
1221  - If an rsync daemon has a module configured without a path setting, rsync
1222    will now disallow access to that module.
1223
1224  - If the destination arg is an empty string, it will be treated as a reference
1225    to the current directory (as 2.x used to do).
1226
1227  - If rsync was compiled with a newer time-setting function (such as lutimes),
1228    rsync will fall-back to an older function (such as utimes) on a system where
1229    the newer function is not around. This helps to make the rsync binary more
1230    portable in mixed-OS-release situations.
1231
1232  - Fixed a batch-file writing bug that would not write out the full set of
1233    compatibility flags that the transfer was using. This fixes a potential
1234    protocol problem for a batch file that contains a sender-side I/O error: it
1235    would have been sent in a way that the batch-reader wasn't expecting.
1236
1237  - Some improvements to the hard-linking code to ensure that device-number
1238    hashing is working right, and to supply more information if the hard-link
1239    code fails.
1240
1241  - The `--inplace` code was improved to not search for an impossible checksum
1242    position. The quadruple-verbose chunk[N] message will now mention when an
1243    inplace chunk was handled by a seek rather than a read+write.
1244
1245  - Improved ACL mask handling, e.g. for Solaris.
1246
1247  - Fixed a bug that prevented `--numeric-ids` from disabling the translation of
1248    user/group IDs for ACLs.
1249
1250  - Fixed an issue where an xattr and/or ACL transfer that used an alt-dest
1251    option (e.g. `--link-dest`) could output an error trying to itemize the
1252    changes against the alt-dest directory's xattr/ACL info but was instead
1253    trying to access the not-yet-existing new destination directory.
1254
1255  - Improved xattr system-error messages to mention the full path to the file.
1256
1257  - The `--link-dest` checking for identical symlinks now avoids considering
1258    attribute differences that cannot be changed on the receiver.
1259
1260  - Avoid trying to read/write xattrs on certain file types for certain OSes.
1261    Improved configure to set `NO_SYMLINK_XATTRS`, `NO_DEVICE_XATTRS`, and/or
1262    `NO_SPECIAL_XATTRS` defines in config.h.
1263
1264  - Improved the unsafe-symlink errors messages.
1265
1266  - Fixed a bug setting xattrs on new files that aren't user writable.
1267
1268  - Avoid re-setting xattrs on a hard-linked file w/the same xattrs.
1269
1270  - Fixed a bug with `--fake-super` when copying files and dirs that aren't user
1271    writable.
1272
1273  - Fixed a bug where a sparse file could have its last sparse block turned into
1274    a real block when rsync sets the file size (requires ftruncate).
1275
1276  - If a temp-file name is too long, rsync now avoids truncating the name in the
1277    middle of adjacent high-bit characters. This prevents a potential filename
1278    error if the filesystem doesn't allow a name to contain an invalid
1279    multi-byte sequence.
1280
1281  - If a muli-protocol socket connection fails (i.e., when contacting a daemon),
1282    we now report all the failures, not just the last one. This avoids losing a
1283    relevant error (e.g. an IPv4 connection-refused error) that happened before
1284    the final error (e.g. an IPv6 protocol-not-supported error).
1285
1286  - Generate a transfer error if we try to call chown with a `-1` for a uid or a
1287    gid (which is not settable).
1288
1289  - Fixed the working of `--force` when used with `--one-file-system`.
1290
1291  - Fix the popt arg parsing so that an option that doesn't take an arg will
1292    reject an attempt to supply one (can configure `--with-included-popt` if
1293    your system's popt library doesn't yet have this fix).
1294
1295  - A couple minor option tweaks to the support/rrsync script, and also some
1296    regex changes that make vim highlighting happier.
1297
1298  - Fixed some issues in the support/mnt-excl script.
1299
1300  - Various manpage improvements.
1301
1302 ### ENHANCEMENTS:
1303
1304  - Added `.hg/` to the default cvs excludes (see `-C` & `--cvs-exclude`).
1305
1306 ### DEVELOPER RELATED:
1307
1308  - Use lchmod() whenever it is available (not just on symlinks).
1309
1310  - A couple fixes to the `socketpair_tcp()` routine.
1311
1312  - Updated the helper scripts in the packaging subdirectory.
1313
1314  - Renamed configure.in to configure.ac.
1315
1316  - Fixed configure's checking for iconv routines for newer OS X versions.
1317
1318  - Fixed the testsuite/xattrs.test script on OS X.
1319
1320 ------------------------------------------------------------------------------
1321 <a name="3.0.7"></a>
1322
1323 # NEWS for rsync 3.0.7 (31 Dec 2009)
1324
1325 ## Changes in this version:
1326
1327 ### BUG FIXES:
1328
1329  - Fixed a bogus free when using `--xattrs` with `--backup`.
1330
1331  - Avoid an error when `--dry-run` was trying to stat a prior hard-link file
1332    that hasn't really been created.
1333
1334  - Fixed a problem with `--compress` (`-z`) where the receiving side could
1335    return the error "`inflate (token) returned -5`".
1336
1337  - Fixed a bug where `--delete-during` could delete in a directory before it
1338    noticed that the sending side sent an I/O error for that directory (both
1339    sides of the transfer must be at least 3.0.7).
1340
1341  - Improved `--skip-compress`'s error handling of bad character-sets and got
1342    rid of a lingering debug fprintf().
1343
1344  - Fixed the daemon's conveyance of `io_error` value from the sender.
1345
1346  - An rsync daemon use seteuid() (when available) if it used setuid().
1347
1348  - Get the permissions right on a `--fake-super` transferred directory that
1349    needs more owner permissions to emulate root behavior.
1350
1351  - An absolute-path filter rule (i.e. with a '/' modifier) no longer loses its
1352    modifier when sending the filter rules to the remote rsync.
1353
1354  - Improved the "`--delete does not work without -r or -d`" message.
1355
1356  - Improved rsync's handling of `--timeout` to avoid a weird timeout case where
1357    the sender could timeout even though it has recently written data to the
1358    socket (but hasn't read data recently, due to the writing).
1359
1360  - Some misc manpage improvements.
1361
1362  - Fixed the chmod-temp-dir testsuite on a system without /var/tmp.
1363
1364  - Make sure that a timeout specified in the daemon's config is used as a
1365    maximum timeout value when the user also specifies a timeout.
1366
1367  - Improved the error-exit reporting when rsync gets an error trying to cleanup
1368    after an error: the initial error is reported.
1369
1370  - Improved configure's detection of IPv6 for Solaris and Cygwin.
1371
1372  - The AIX sysacls routines will now return ENOSYS if ENOTSUP is missing.
1373
1374  - Made our (only used if missing) getaddrinfo() routine use `inet_pton()`
1375    (which we also provide) instead of `inet_aton()`.
1376
1377  - The exit-related debug messages now mention the program's role so it is
1378    clear who output what message.
1379
1380 ### DEVELOPER RELATED:
1381
1382  - Got rid of type-punned compiler warnings output by newer gcc versions.
1383
1384  - The Makefile now ensures that proto.h will be rebuilt if config.h changes.
1385
1386  - The testsuite no longer uses `id -u`, so it works better on Solaris.
1387
1388 ------------------------------------------------------------------------------
1389 <a name="3.0.6"></a>
1390
1391 # NEWS for rsync 3.0.6 (8 May 2009)
1392
1393 ## Changes in this version:
1394
1395 ### BUG FIXES:
1396
1397  - Fixed a `--read-batch` hang when rsync is reading a batch file that was
1398    created from an incremental-recursion transfer.
1399
1400  - Fixed the daemon's socket code to handle the simultaneous arrival of
1401    multiple connections.
1402
1403  - Fix `--safe-links`/`--copy-unsafe-links` to properly handle symlinks that
1404    have consecutive slashes in the value.
1405
1406  - Fixed the parsing of an `[IPv6_LITERAL_ADDR]` when a USER@ is prefixed.
1407
1408  - The sender now skips a (bogus) symlink that has a 0-length value, which
1409    avoids a transfer error in the receiver.
1410
1411  - Fixed a case where the sender could die with a tag-0 error if there was an
1412    I/O during the sending of the file list.
1413
1414  - Fixed the rrsync script to avoid a server-side problem when `-e` is at the
1415    start of the short options.
1416
1417  - Fixed a problem where a vanished directory could turn into an exit code 23
1418    instead of the proper exit code 24.
1419
1420  - Fixed the `--iconv` conversion of symlinks when doing a local copy.
1421
1422  - Fixed a problem where `--one-file-system` was not stopping deletions on the
1423    receiving side when a mount-point directory did not match a directory in the
1424    transfer.
1425
1426  - Fixed the dropping of an ACL mask when no named ACL values were present.
1427
1428  - Fixed an ACL/xattr corruption issue where the `--backup` option could cause
1429    rsync to associate the wrong ACL/xattr information with received files.
1430
1431  - Fixed the use of `--xattrs` with `--only-write-batch`.
1432
1433  - Fixed the use of `--dry-run` with `--read-batch`.
1434
1435  - Fixed configure's erroneous use of target.
1436
1437  - Fixed configure's `--disable-debug` option.
1438
1439  - Fixed a run-time issue for systems that can't find `iconv_open()` by adding
1440    the `--disable-iconv-open` configure option.
1441
1442  - Complain and die if the user tries to combine `--remove-source-files` (or
1443    the deprecated `--remove-sent-files`) with `--read-batch`.
1444
1445  - Fixed an failure transferring special files from Solaris to Linux.
1446
1447 ------------------------------------------------------------------------------
1448 <a name="3.0.5"></a>
1449
1450 # NEWS for rsync 3.0.5 (28 Dec 2008)
1451
1452 ## Changes in this version:
1453
1454 ### BUG FIXES:
1455
1456  - Initialize xattr data in a couple spots in the hlink code, which avoids a
1457    crash when the xattr pointer's memory happens to start out non-zero.  Also
1458    fixed the itemizing of an alt-dest file's xattrs when hard-linking.
1459
1460  - Don't send a bogus `-` option to an older server if there were no short
1461    options specified.
1462
1463  - Fixed skipping of unneeded updates in a batch file when incremental
1464    recursion is active. Added a test for this. Made batch-mode handle `redo`
1465    files properly (and without hanging).
1466
1467  - Fix the %P logfile escape when the daemon logs from inside a chroot.
1468
1469  - Fixed the use of `-s` (`--protect-args`) when used with a remote source or
1470    destination that had an empty path (e.g. `host:`). Also fixed a problem when
1471    `-s` was used when accessing a daemon via a remote-shell.
1472
1473  - Fixed the use of a dot-dir path (e.g. foo/./bar) inside a `--files-from`
1474    file when the root of the transfer isn't the current directory.
1475
1476  - Fixed a bug with `-K --delete` removing symlinks to directories when
1477    incremental recursion is active.
1478
1479  - Fixed a hard to trigger hang when using `--remove-source-files`.
1480
1481  - Got rid of an annoying delay when accessing a daemon via a remote-shell.
1482
1483  - Properly ignore (superfluous) source args on a `--read-batch` command.
1484
1485  - Improved the manpage's description of the `*` wildcard to remove the
1486    confusing `non-empty` qualifier.
1487
1488  - Fixed reverse lookups in the compatibility-library version of getnameinfo().
1489
1490  - Fixed a bug when using `--sparse` on a sparse file that has over 2GB of
1491    consecutive sparse data.
1492
1493  - Avoid a hang when using at least 3 `--verbose` options on a transfer with a
1494    client sender (which includes local copying).
1495
1496  - Fixed a problem with `--delete-delay` reporting an error when it was ready
1497    to remove a directory that was now gone.
1498
1499  - Got rid of a bunch of `warn_unused_result` compiler warnings.
1500
1501  - If an ftruncate() on a received file fails, it now causes a partial-
1502    transfer warning.
1503
1504  - Allow a path with a leading `//` to be preserved (CYGWIN only).
1505
1506 ### ENHANCEMENTS:
1507
1508  - Made the support/atomic-rsync script able to perform a fully atomic update
1509    of the copied hierarchy when the destination is setup using a particular
1510    symlink idiom.
1511
1512 ------------------------------------------------------------------------------
1513 <a name="3.0.4"></a>
1514
1515 # NEWS for rsync 3.0.4 (6 Sep 2008)
1516
1517 ## Changes in this version:
1518
1519 ### BUG FIXES:
1520
1521  - Fixed a bug in the hard-linking code where it would sometimes try to
1522    allocate 0 bytes of memory (which fails on some OSes, such as AIX).
1523
1524  - Fixed the hard-linking of files from a device that has a device number of 0
1525    (which seems to be a common device number on NetBSD).
1526
1527  - Fixed the handling of a `--partial-dir` that cannot be created. This
1528    particularly impacts the `--delay-updates` option (since the files cannot be
1529    delayed without a partial-dir), and was potentially destructive if the
1530    `--remove-source-files` was also specified.
1531
1532  - Fixed a couple issues in the `--fake-super` handling of xattrs when the
1533    destination files have root-level attributes (e.g. selinux values) that a
1534    non-root copy can't affect.
1535
1536  - Improved the keep-alive check in the generator to fire consistently in
1537    incremental-recursion mode when `--timeout` is enabled.
1538
1539  - The `--iconv` option now converts the content of a symlink too, instead of
1540    leaving it in the wrong character-set (requires 3.0.4 on both sides of the
1541    transfer).
1542
1543  - When using `--iconv`, if a filename fails to convert on the receiving side,
1544    this no longer makes deletions in the root-dir of the transfer fail silently
1545    (the user now gets a warning about deletions being disabled due to IO error
1546    as long as `--ignore-errors` was not specified).
1547
1548  - When using `--iconv`, if a server-side receiver can't convert a filename,
1549    the error message sent back to the client no longer mangles the name with
1550    the wrong charset conversion.
1551
1552  - Fixed a potential alignment issue in the IRIX ACL code when allocating the
1553    initial `struct acl` object. Also, cast mallocs to avoid warnings.
1554
1555  - Changed some errors that were going to stdout to go to stderr.
1556
1557  - Made `human_num()` and `human_dnum()` able to output a negative number
1558    (rather than outputting a cryptic string of punctuation).
1559
1560 ### ENHANCEMENTS:
1561
1562  - Rsync will avoid sending an `-e` option to the server if an older protocol
1563    is requested (and thus the option would not be useful). This lets the user
1564    specify the `--protocol=29` option to access an overly-restrictive server
1565    that is rejecting the protocol-30 use of `-e` to the server.
1566
1567  - Improved the message output for an `RERR_PARTIAL` exit.
1568
1569 ### DEVELOPER RELATED:
1570
1571  - The Makefile will not halt for just a timestamp change on the Makefile or
1572    the configure files, only for actual changes in content.
1573
1574  - Changed some commands in the testsuite's xattrs.test that called `rsync`
1575    instead of `$RSYNC`.
1576
1577  - Enhanced the release scripts to be able to handle a branch release and to do
1578    even more consistency checks on the files.
1579
1580 ------------------------------------------------------------------------------
1581 <a name="3.0.3"></a>
1582
1583 # NEWS for rsync 3.0.3 (29 Jun 2008)
1584
1585 ## Changes in this version:
1586
1587 ### BUG FIXES:
1588
1589  - Fixed a wildcard matching problem in the daemon when a module has `use
1590    chroot` enabled.
1591
1592  - Fixed a crash bug in the hard-link code.
1593
1594  - Fixed the sending of xattr directory information when the code finds a
1595    `--link-dest` or `--copy-dest` directory with unchanged xattrs -- the
1596    destination directory now gets these unchanged xattrs properly applied.
1597
1598  - Fixed an xattr-sending glitch that could cause an `Internal abbrev` error.
1599
1600  - Fixed the combination of `--xattrs` and `--backup`.
1601
1602  - The generator no longer allows a '.' dir to be excluded by a daemon-exclude
1603    rule.
1604
1605  - Fixed deletion handling when copying a single, empty directory (with no
1606    files) to a differently named, non-existent directory.
1607
1608  - Fixed the conversion of spaces into dashes in the %M log escape.
1609
1610  - Fixed several places in the code that were not returning the right errno
1611    when a function failed.
1612
1613  - Fixed the backing up of a device or special file into a backup dir.
1614
1615  - Moved the setting of the socket options prior to the connect().
1616
1617  - If rsync exits in the middle of a `--progress` output, it now outputs a
1618    newline to help prevent the progress line from being overwritten.
1619
1620  - Fixed a problem with how a destination path with a trailing slash or a
1621    trailing dot-dir was compared against the daemon excludes.
1622
1623  - Fixed the sending of large (size > 16GB) files when talking to an older
1624    rsync (protocols < 30): we now use a compatible block size limit.
1625
1626  - If a file's length is so huge that we overflow a checksum buffer count (i.e.
1627    several hundred TB), warn the user and avoid sending an invalid checksum
1628    struct over the wire.
1629
1630  - If a source arg is excluded, `--relative` no longer adds the excluded arg's
1631    implied dirs to the transfer. This fix also made the exclude check happen in
1632    the better place in the sending code.
1633
1634  - Use the `overflow_exit()` function for overflows, not `out_of_memory()`.
1635
1636  - Improved the code to better handle a system that has only 32-bit file
1637    offsets.
1638
1639 ### ENHANCEMENTS:
1640
1641  - The rsyncd.conf manpage now consistently refers to the parameters in the
1642    daemon config file as `parameters`.
1643
1644  - The description of the `--inplace` option was improved.
1645
1646 ### EXTRAS:
1647
1648  - Added a new script in the support directory, deny-rsync, which allows an
1649    admin to (temporarily) replace the rsync command with a script that sends an
1650    error message to the remote client via the rsync protocol.
1651
1652 ### DEVELOPER RELATED:
1653
1654  - Fixed a testcase failure if the tests are run as root and made some
1655    compatibility improvements.
1656
1657  - Improved the daemon tests, including checking module comments, the listing
1658    of files, and the ensuring that daemon excludes can't affect a dot-dir arg.
1659
1660  - Improved some build rules for those that build in a separate directory from
1661    the source, including better install rules for the man pages, and the fixing
1662    of a proto.h-tstamp rule that could make the binaries get rebuild without
1663    cause.
1664
1665  - Improved the testsuite to work around a problem with some utilities (e.g.
1666    `cp -p` & `touch -r`) rounding sub-second timestamps.
1667
1668  - Ensure that the early patches don't cause any generated-file hunks to
1669    bleed-over into patches that follow.
1670
1671 ------------------------------------------------------------------------------
1672 <a name="3.0.2"></a>
1673
1674 # NEWS for rsync 3.0.2 (8 Apr 2008)
1675
1676 ## Changes in this version:
1677
1678 ### BUG FIXES:
1679
1680  - Fixed a potential buffer overflow in the xattr code.
1681
1682 ### ENHANCEMENTS:
1683
1684  - None.
1685
1686 ### DEVELOPER RELATED:
1687
1688  - The RPM spec file was improved to install more useful files.
1689
1690  - A few developer-oriented scripts were moved from the support dir to the
1691    packaging dir.
1692
1693 ------------------------------------------------------------------------------
1694 <a name="3.0.1"></a>
1695
1696 # NEWS for rsync 3.0.1 (3 Apr 2008)
1697
1698 ## Changes in this version:
1699
1700 ### NOTABLE CHANGES IN BEHAVIOR:
1701
1702  - Added the 'c'-flag to the itemizing of non-regular files so that the
1703    itemized output doesn't get hidden if there were no attribute changes, and
1704    also so that the itemizing of a `--copy-links` run will distinguish between
1705    copying an identical non-regular file and the creation of a revised version
1706    with a new value (e.g. a changed symlink referent, a new device number,
1707    etc.).
1708
1709 ### BUG FIXES:
1710
1711  - Fixed a crash bug when a single-use rsync daemon (via remote shell) was run
1712    without specifying a `--config=FILE` option.
1713
1714  - Fixed a crash when backing up a directory that has a default ACL.
1715
1716  - Fixed a bug in the handling of xattr values that could cause rsync to not
1717    think that a file's extended attributes are up-to-date.
1718
1719  - Fixed the working of `--fake-super` with `--link-dest` and `--xattrs`.
1720
1721  - Fixed a hang when combining `--dry-run` with `--remove-source-files`.
1722
1723  - Fixed a bug with `--iconv`'s handling of files that cannot be converted: a
1724    failed name can no longer cause a transfer failure.
1725
1726  - Fixed the building of the rounding.h file on systems that need custom
1727    CPPFLAGS to be used. Also improved the error reporting if the building of
1728    rounding.h fails.
1729
1730  - Fixed the use of the `--protect-args` (`-s`) option when talking to a
1731    daemon.
1732
1733  - Fixed the `--ignore-existing` option's protection of files on the receiver
1734    that are non-regular files on the sender (e.g. if a symlink or a dir on the
1735    sender is trying to replace a file on the receiver). The reverse protection
1736    (protecting a dir/symlink/device from being replaced by a file) was already
1737    working.
1738
1739  - Fixed an assert failure if `--hard-links` is combined with an option that
1740    can skip a file in a set of hard-linked files (i.e. `--ignore-existing`,
1741    `--append`, etc.), without skipping all the files in the set.
1742
1743  - Avoid setting the modify time on a directory that already has the right
1744    modify time set. This avoids tweaking the dir's ctime.
1745
1746  - Improved the daemon-exclude handling to do a better job of applying the
1747    exclude rules to path entries. It also sends the user an error just as if
1748    the files were actually missing (instead of silently ignoring the user's
1749    args), and avoids sending the user the filter-action messages for these
1750    non-user-initiated rules.
1751
1752  - Fixed some glitches with the dry-run code's missing-directory handling,
1753    including a problem when combined with `--fuzzy`.
1754
1755  - Fixed some glitches with the skipped-directory handling.
1756
1757  - Fixed the 'T'-flag itemizing of symlinks when `--time` isn't preserved.
1758
1759  - Fixed a glitch in the itemizing of permissions with the `-E` option.
1760
1761  - The `--append` option's restricting of transfers to those that add data no
1762    longer prevents the updating of non-content changes to otherwise up-to-date
1763    files (i.e. those with the same content but differing permissions,
1764    ownership, xattrs, etc.).
1765
1766  - Don't allow `--fake-super` to be specified with `-XX` (double `--xattrs`)
1767    because the options conflict. If a daemon has `fake super` enabled, it
1768    automatically downgrades a `-XX` request to `-X`.
1769
1770  - Fixed a couple bugs in the parsing of daemon-config excludes that could make
1771    a floating exclude rule get treated as matching an absolute path.
1772
1773  - A daemon doesn't try to auto-refuse the `iconv` option if iconv-support
1774    wasn't compiled in to the daemon (avoiding a warning in the logs).
1775
1776  - Fixed the inclusion of per-dir merge files from implied dirs.
1777
1778  - Fixed the support/rrsync script to work with the latest options that rsync
1779    sends (including its flag-specifying use of `-e` to the server).
1780
1781 ### ENHANCEMENTS:
1782
1783  - Added the `--old-dirs` (`--old-d`) option to make it easier for a user to
1784    ask for file-listings with older rsync versions (this is easier than having
1785    to type `-r --exclude='/*/*'` manually).
1786
1787  - When getting an error while asking an older rsync daemon for a file listing,
1788    rsync will try to notice if the error is a rejection of the `--dirs` (`-d`)
1789    option and let the user know how to work around the issue.
1790
1791  - Added a few more `--no-OPTION` overrides.
1792
1793  - Improved the documentation of the `--append` option.
1794
1795  - Improved the documentation of the filter/exclude/include daemon parameters.
1796
1797 ### INTERNAL:
1798
1799  - Fixed a couple minor bugs in the included popt library (ones which I sent to
1800    the official popt project for inclusion in the 1.14 release).
1801
1802  - Fixed a stat() call that should have been `do_stat()` so that the proper
1803    normal/64-bit stat() function gets called. (Was in an area that should not
1804    have caused problems, though.)
1805
1806  - Changed the file-glob code to do a directory scan without using the `glob`
1807    and `glob.h`. This lets us do the globbing with less memory churn, and also
1808    avoid adding daemon-excluded items to the returned args.
1809
1810 ### DEVELOPER RELATED:
1811
1812  - The configure script tries to get the user's compiler to not warn about
1813    unused function parameters if the build is not including one or more of the
1814    ACL/xattrs/iconv features.
1815
1816  - The configure script now has better checks for figuring out if the included
1817    popt code should be used or not.
1818
1819  - Fixed two testsuite glitches: avoid a failure if someone's `cd` command
1820    outputs the current directory when cd-ing to a relative path, and made the
1821    itemized test query how rsync was built to determine if it should expect
1822    hard-linked symlinks or not.
1823
1824  - Updated the testsuite to verify that various bug fixes remain fixed.
1825
1826  - The RPM spec file was updated to have: (1) comments for how to use the
1827    rsync-patch tar file, and (2) an /etc/xinetd.d/rsync file.
1828
1829  - Updated the build scripts to work with a revised FTP directory structure.
1830
1831 ------------------------------------------------------------------------------
1832 <a name="3.0.0"></a>
1833
1834 # NEWS for rsync 3.0.0 (1 Mar 2008)
1835
1836 ## Changes in this version:
1837
1838 ### PROTOCOL NUMBER:
1839
1840  - The protocol number was changed to 30.
1841
1842 ### NOTABLE CHANGES IN BEHAVIOR:
1843
1844  - The handling of implied directories when using `--relative` has changed to
1845    send them as directories (e.g. no implied dir is ever sent as a symlink).
1846    This avoids unexpected behavior and should not adversely affect most people.
1847    If you're one of those rare individuals who relied upon having an implied
1848    dir be duplicated as a symlink, you should specify the transfer of the
1849    symlink and the transfer of the referent directory as separate args. (See
1850    also `--keep-dirlinks` and `--no-implied-dirs`.) Also, exclude rules no
1851    longer have a partial effect on implied dirs.
1852
1853  - Requesting a remote file-listing without specifying `-r` (`--recursive`) now
1854    sends the `-d` (`--dirs`) option to the remote rsync rather than sending
1855    `-r` along with an extra exclude of `/*/*`. If the remote rsync does not
1856    understand the `-d` option (i.e. it is 2.6.3 or older), you will need to
1857    either turn off `-d` (`--no-d`), or specify `-r --exclude='/*/*'` manually.
1858
1859  - In `--dry-run` mode, the last line of the verbose summary text is output
1860    with a "(DRY RUN)" suffix to help remind you that no updates were made.
1861    Similarly, `--only-write-batch` outputs `(BATCH ONLY)`.
1862
1863  - A writable rsync daemon with `use chroot` disabled now defaults to a
1864    symlink-munging behavior designed to make symlinks safer while also allowing
1865    absolute symlinks to be stored and retrieved. This also has the effect of
1866    making symlinks unusable while they're in the daemon's hierarchy. See the
1867    daemon's `munge symlinks` parameter for details.
1868
1869  - Starting up an extra copy of an rsync daemon will not clobber the pidfile
1870    for the running daemon -- if the pidfile exists, the new daemon will exit
1871    with an error. This means that your wrapper script that starts the rsync
1872    daemon should be made to handle lock-breaking (if you want any automatic
1873    breaking of locks to be done).
1874
1875 ### BUG FIXES:
1876
1877  - A daemon with `use chroot = no` and excluded items listed in the daemon
1878    config file now properly checks an absolute-path arg specified for these
1879    options: `--compare-dest`, `--link-dest`, `--copy-dest`, `--partial-dir`,
1880    `--backup-dir`, `--temp-dir`, and `--files-from`.
1881
1882  - A daemon can now be told to disable all user- and group-name translation on
1883    a per-module basis. This avoids a potential problem with a writable daemon
1884    module that has `use chroot` enabled -- if precautions weren't taken, a user
1885    could try to add a missing library and get rsync to use it. This makes rsync
1886    safer by default, and more configurable when id-translation is not desired.
1887    See the daemon's `numeric ids` parameter for full details.
1888
1889  - A chroot daemon can now indicate which part of its path should affect the
1890    chroot call, and which part should become an inside-chroot path for the
1891    module. This allows you to have outside-the-transfer paths (such as for
1892    libraries) even when you enable chroot protection. The idiom used in the
1893    rsyncd.conf file is: `path = /chroot/dirs/./dirs/inside`
1894
1895  - If a file's data arrived successfully on the receiving side but the rename
1896    of the temporary file to the destination file failed AND the
1897    `--remove-source-files` (or the deprecated `--remove-sent-files`) option was
1898    specified, rsync no longer erroneously removes the associated source file.
1899
1900  - Fixed the output of `-ii` when combined with one of the `--*-dest` options:
1901    it now itemizes all the items, not just the changed ones.
1902
1903  - Made the output of all file types consistent when using a `--*-dest` option.
1904    Prior versions would output too many creation events for matching items.
1905
1906  - The code that waits for a child pid now handles being interrupted by a
1907    signal. This fixes a problem with the pre-xfer exec function not being able
1908    to get the exit status from the script.
1909
1910  - A negated filter rule (i.e. with a '!' modifier) no longer loses the
1911    negation when sending the filter rules to the remote rsync.
1912
1913  - Fixed a problem with the `--out-format` (aka `--log-format`) option %f: it
1914    no longer outputs superfluous directory info for a non-daemon rsync.
1915
1916  - Fixed a problem with `-vv` (double `--verbose`) and `--stats` when `pushing`
1917    files (which includes local copies). Version 2.6.9 would complete the copy,
1918    but exit with an error when the receiver output its memory stats.
1919
1920  - If `--password-file` is used on a non-daemon transfer, rsync now complains
1921    and exits. This should help users figure out that they can't use this option
1922    to control a remote shell's password prompt.
1923
1924  - Make sure that directory permissions of a newly-created destination
1925    directory are handled right when `--perms` is left off.
1926
1927  - The itemized output of a newly-created destination directory is now output
1928    as a creation event, not a change event.
1929
1930  - Improved `--hard-link` so that more corner cases are handled correctly when
1931    combined with options such as `--link-dest` and/or `--ignore-existing`.
1932
1933  - The `--append` option no longer updates a file that has the same size.
1934
1935  - Fixed a bug when combining `--backup` and `--backup-dir` with `--inplace`:
1936    any missing backup directories are now created.
1937
1938  - Fixed a bug when using `--backup` and `--inplace` with `--whole-file` or
1939    `--read-batch`: backup files are actually created now.
1940
1941  - The daemon pidfile is checked and created sooner in the startup sequence.
1942
1943  - If a daemon module's `path` value is not an absolute pathname, the code now
1944    makes it absolute internally (making it work properly).
1945
1946  - Ensure that a temporary file always has owner-write permission while we are
1947    writing to it. This avoids problems with some network filesystems when
1948    transferring read-only files.
1949
1950  - Any errors output about password-file reading no longer cause an error at
1951    the end of the run about a partial transfer.
1952
1953  - The `--read-batch` option for protocol 30 now ensures that several more
1954    options are set correctly for the current batch file: `--iconv`, `--acls`,
1955    `--xattrs`, `--inplace`, `--append`, and `--append-verify`.
1956
1957  - Using `--only-write-batch` to a daemon receiver now works properly (older
1958    versions would update some files while writing the batch).
1959
1960  - Avoid outputting a "file has vanished" message when the file is a broken
1961    symlink and `--copy-unsafe-links` or `--copy-dirlinks` is used (the code
1962    already handled this for `--copy-links`).
1963
1964  - Fixed the combination of `--only-write-batch` and `--dry-run`.
1965
1966  - Fixed rsync's ability to remove files that are not writable by the file's
1967    owner when rsync is running as the same user.
1968
1969  - When transferring large files, the sender's hashtable of checksums is kept
1970    at a more reasonable state of fullness (no more than 80% full) so that the
1971    scanning of the hashtable will not bog down as the number of blocks
1972    increases.
1973
1974 ### ENHANCEMENTS:
1975
1976  - A new incremental-recursion algorithm is now used when rsync is talking to
1977    another 3.x version. This starts the transfer going more quickly (before all
1978    the files have been found), and requires much less memory.  See the
1979    `--recursive` option in the manpage for some restrictions.
1980
1981  - Lowered memory use in the non-incremental-recursion algorithm for typical
1982    option values (usually saving from 21-29 bytes per file).
1983
1984  - The default `--delete` algorithm is now `--delete-during` when talking to a
1985    3.x rsync. This is a faster scan than using `--delete-before` (which is the
1986    default when talking to older rsync versions), and is compatible with the
1987    new incremental recursion mode.
1988
1989  - Rsync now allows multiple remote-source args to be specified rather than
1990    having to rely on a special space-splitting side-effect of the remote-
1991    shell. Additional remote args must specify the same host or an empty one
1992    (e.g. empty: `:file1` or `::module/file2`). For example, this means that
1993    local use of brace expansion now works: `rsync -av host:dir/{f1,f2} .`
1994
1995  - Added the `--protect-args` (`-s`) option, that tells rsync to send most of
1996    the command-line args at the start of the transfer rather than as args to
1997    the remote-shell command. This protects them from space-splitting, and only
1998    interprets basic wildcard special shell characters (`*?[`).
1999
2000  - Added the `--delete-delay` option, which is a more efficient way to delete
2001    files at the end of the transfer without needing a separate delete pass.
2002
2003  - Added the `--acls` (`-A`) option to preserve Access Control Lists. This is
2004    an improved version of the prior patch that was available, and it even
2005    supports OS X ACLs. If you need to have backward compatibility with old,
2006    ACL-patched versions of rsync, apply the acls.diff file from the patches
2007    dir.
2008
2009  - Added the `--xattrs` (`-X`) option to preserve extended attributes. This is
2010    an improved version of the prior patch that was available, and it even
2011    supports OS X xattrs (which includes their resource fork data). If you need
2012    to have backward compatibility with old, xattr-patched versions of rsync,
2013    apply the xattrs.diff file from the patches dir.
2014
2015  - Added the `--fake-super` option that allows a non-super user to preserve all
2016    attributes of a file by using a special extended-attribute idiom.  It even
2017    supports the storing of foreign ACL data on your backup server.  There is
2018    also an analogous `fake super` parameter for an rsync daemon.
2019
2020  - Added the `--iconv` option, which allows rsync to convert filenames from one
2021    character-set to another during the transfer. The default is to make this
2022    feature available as long as your system has `iconv_open()`.  If compilation
2023    fails, specify `--disable-iconv` to configure, and then rebuild. If you want
2024    rsync to perform character-set conversions by default, you can specify
2025    `--enable-iconv=CONVERT_STRING` with the default value for the `--iconv`
2026    option that you wish to use. For example, `--enable-iconv=.` is a good
2027    choice. See the rsync manpage for an explanation of the `--iconv` option's
2028    settings.
2029
2030  - A new daemon config parameter, `charset`, lets you control the character-
2031    set that is used during an `--iconv` transfer to/from a daemon module. You
2032    can also set your daemon to refuse `no-iconv` if you want to force the
2033    client to use an `--iconv` transfer (requiring an rsync 3.x client).
2034
2035  - Added the `--skip-compress=LIST` option to override the default list of file
2036    suffixes that will not be compressed when using `--compress` (`-z`).
2037
2038  - The daemon's default for `dont compress` was extended to include: `*.7z`
2039    `*.mp[34]` `*.mov` `*.avi` `*.ogg` `*.jpg` `*.jpeg` and the name-matching routine was also
2040    optimized to run more quickly.
2041
2042  - The `--max-delete` option now outputs a warning if it skipped any file
2043    deletions, including a count of how many deletions were skipped. (Older
2044    versions just silently stopped deleting things.)
2045
2046  - You may specify `--max-delete=0` to a 3.0.0 client to request that it warn
2047    about extraneous files without deleting anything. If you're not sure what
2048    version the client is, you can use the less-obvious `--max-delete=-1`, as
2049    both old and new versions will treat that as the same request (though older
2050    versions don't warn).
2051
2052  - The `--hard-link` option now uses less memory on both the sending and
2053    receiving side for all protocol versions. For protocol 30, the use of a
2054    hashtable on the sending side allows us to more efficiently convey to the
2055    receiver what files are linked together. This reduces the amount of data
2056    sent over the socket by a considerable margin (rather than adding more
2057    data), and limits the in-memory storage of the device+inode information to
2058    just the sending side for the new protocol 30, or to the receiving side when
2059    speaking an older protocol (note that older rsync versions kept the
2060    device+inode information on both sides).
2061
2062  - The filter rules now support a perishable (`p`) modifier that marks rules
2063    that should not have an effect in a directory that is being deleted. e.g.
2064    `-f '-p .svn/'` would only affect `live` .svn directories.
2065
2066  - Rsync checks all the alternate-destination args for validity (e.g.
2067    `--link-dest`). This lets the user know when they specified a directory that
2068    does not exist.
2069
2070  - If we get an ENOSYS error setting the time on a symlink, we don't complain
2071    about it anymore (for those systems that even support the setting of the
2072    modify-time on a symlink).
2073
2074  - Protocol 30 now uses MD5 checksums instead of MD4.
2075
2076  - Changed the `--append` option to not checksum the existing data in the
2077    destination file, which speeds up file appending.
2078
2079  - Added the `--append-verify` option, which works like the older `--append`
2080    option (verifying the existing data in the destination file). For
2081    compatibility with older rsync versions, any use of `--append` that is
2082    talking protocol 29 or older will revert to the `--append-verify` method.
2083
2084  - Added the `--contimeout=SECONDS` option that lets the user specify a
2085    connection timeout for rsync daemon access.
2086
2087  - Documented and extended the support for the `RSYNC_CONNECT_PROG` variable
2088    that can be used to enhance the client side of a daemon connection.
2089
2090  - Improved the dashes and double-quotes in the nroff manpage output.
2091
2092  - Rsync now supports a lot more `--no-OPTION` override options.
2093
2094 ### INTERNAL:
2095
2096  - The file-list sorting algorithm now uses a sort that keeps any same-named
2097    items in the same order as they were specified. This allows rsync to always
2098    ensure that the first of the duplicates is the one that will be included in
2099    the copy. The new sort is also faster than the glibc version of qsort() and
2100    mergesort().
2101
2102  - Rsync now supports the transfer of 64-bit timestamps (`time_t` values).
2103
2104  - Made the file-deletion code use a little less stack when recursing through a
2105    directory hierarchy of extraneous files.
2106
2107  - Fixed a build problem with older (2.x) versions of gcc.
2108
2109  - Added some isType() functions that make dealing with signed characters
2110    easier without forcing variables via casts.
2111
2112  - Changed strcat/strcpy/sprintf function calls to use safer versions.
2113
2114  - Upgraded the included popt version to 1.10.2 and improved its use of
2115    string-handling functions.
2116
2117  - Added missing prototypes for compatibility functions from the lib dir.
2118
2119  - Configure determines if iconv() has a const arg, allowing us to avoid a
2120    compiler warning.
2121
2122  - Made the sending of some numbers more efficient for protocol 30.
2123
2124  - Make sure that a daemon process doesn't mind if the client was weird and
2125    omitted the `--server` option.
2126
2127  - There are more internal logging categories available in protocol 30 than the
2128    age-old FINFO and FERROR, including `FERROR_XFER` and FWARN. These new
2129    categories allow some errors and warnings to go to stderr without causing an
2130    erroneous end-of-run warning about some files not being able to be
2131    transferred.
2132
2133  - Improved the use of `const` on pointers.
2134
2135  - Improved J.W.'s `pool_alloc` routines to add a way of incrementally freeing
2136    older sections of a pool's memory.
2137
2138  - The getaddrinfo.c compatibility code in the `lib` dir was replaced with some
2139    new code (derived from samba, derived from PostgreSQL) that has a better
2140    license than the old code.
2141
2142 ### DEVELOPER RELATED:
2143
2144  - Rsync is now licensed under the GPLv3 or later.
2145
2146  - Rsync is now being maintained in a `git` repository instead of CVS (though
2147    the old CVS repository still exists for historical access).  Several
2148    maintenance scripts were updated to work with git.
2149
2150  - Generated files are no longer committed into the source repository. The
2151    autoconf and autoheader commands are now automatically run during the normal
2152    use of `configure` and `make`. The latest dev versions of all generated
2153    files can also be copied from the samba.org web site (see the prepare-source
2154    script's fetch option).
2155
2156  - The `patches` directory of diff files is now built from branches in the
2157    rsync git repository (branch patch/FOO creates file patches/FOO.diff).  This
2158    directory is now distributed in a separate separate tar file named
2159    rsync-patches-VERSION.tar.gz instead of the main rsync-VERSION.tar.gz.
2160
2161  - The proto.h file is now built using a simple perl script rather than a
2162    complex awk script, which proved to be more widely compatible.
2163
2164  - When running the tests, we now put our per-test temp dirs into a sub-
2165    directory named testtmp (which is created, if missing). This allows someone
2166    to symlink the testtmp directory to another filesystem (which is useful if
2167    the build dir's filesystem does not support ACLs and xattrs, but another
2168    filesystem does).
2169
2170  - Rsync now has a way of handling protocol-version changes during the
2171    development of a new protocol version. This causes any out-of-sync versions
2172    to speak an older protocol rather than fail in a cryptic manner.  This
2173    addition makes it safer to deploy a pre-release version that may interact
2174    with the public. This new exchange of sub-version info does not interfere
2175    with the `{MIN,MAX}_PROTOCOL_VERSION` checking algorithm (which does not
2176    have enough range to allow the main protocol number to be incremented for
2177    every minor tweak in that happens during development).
2178
2179  - The csprotocol.txt file was updated to mention the daemon protocol change in
2180    the 3.0.0 release.
2181
2182 ------------------------------------------------------------------------------
2183 <a name="2.6.9"></a>
2184
2185 # NEWS for rsync 2.6.9 (6 Nov 2006)
2186
2187 ## Changes in this version:
2188
2189 ### BUG FIXES:
2190
2191  - If rsync is interrupted via a handled signal (such as SIGINT), it will once
2192    again clean-up its temp file from the destination dir.
2193
2194  - Fixed an overzealous sanitizing bug in the handling of the `--link-dest`,
2195    `--copy-dest`, and `--compare-dest` options to a daemon without chroot: if
2196    the copy's destination dir is deeper than the top of the module's path,
2197    these options now accept a safe number of parent-dir (../) references (since
2198    these options are relative to the destination dir). The old code incorrectly
2199    chopped off all `../` prefixes for these options, no matter how deep the
2200    destination directory was in the module's hierarchy.
2201
2202  - Fixed a bug where a deferred info/error/log message could get sent directly
2203    to the sender instead of being handled by rwrite() in the generator. This
2204    fixes an `unexpected tag 3` fatal error, and should also fix a potential
2205    problem where a deferred info/error message from the receiver might bypass
2206    the log file and get sent only to the client process. (These problems could
2207    only affect an rsync daemon that was receiving files.)
2208
2209  - Fixed a bug when `--inplace` was combined with a `--*-dest` option and we
2210    update a file's data using an alternate basis file. The code now notices
2211    that it needs to copy the matching data from the basis file instead of
2212    (wrongly) assuming that it was already present in the file.
2213
2214  - Fixed a bug where using `--dry-run` with a `--*-dest` option with a path
2215    relative to a directory that does not yet exist: the affected option gets
2216    its proper path value so that the output of the dry-run is right.
2217
2218  - Fixed a bug in the %f logfile escape when receiving files: the destination
2219    path is now included in the output (e.g. you can now tell when a user
2220    specifies a subdir inside a module).
2221
2222  - If the receiving side fails to create a directory, it will now skip trying
2223    to update everything that is inside that directory.
2224
2225  - If `--link-dest` is specified with `--checksum` but without `--times`, rsync
2226    will now allow a hard-link to be created to a matching link-dest file even
2227    when the file's modify-time doesn't match the server's file.
2228
2229  - The daemon now calls more timezone-using functions prior to doing a chroot.
2230    This should help some C libraries to generate proper timestamps from inside
2231    a chrooted daemon (and to not try to access /etc/timezone over and over
2232    again).
2233
2234  - Fixed a bug in the handling of an absolute `--partial-dir=ABS_PATH` option:
2235    it now deletes an alternate basis file from the partial-dir that was used to
2236    successfully update a destination file.
2237
2238  - Fixed a bug in the handling of `--delete-excluded` when using a per-dir
2239    merge file: the merge file is now honored on the receiving side, and only
2240    its unqualified include/exclude commands are ignored (just as is done for
2241    global include/excludes).
2242
2243  - Fixed a recent bug where `--delete` was not working when transferring from
2244    the root (/) of the filesystem with `--relative` enabled.
2245
2246  - Fixed a recent bug where an `--exclude='*'` could affect the root (/) of the
2247    filesystem with `--relative` enabled.
2248
2249  - When `--inplace` creates a file, it is now created with owner read/write
2250    permissions (0600) instead of no permissions at all. This avoids a problem
2251    continuing a transfer that was interrupted (since `--inplace` will not
2252    update a file that has no write permissions).
2253
2254  - If either `--remove-source-files` or `--remove-sent-files` is enabled and we
2255    are unable to remove the source file, rsync now outputs an error.
2256
2257  - Fixed a bug in the daemon's `incoming chmod` rule: newly-created directories
2258    no longer get the 'F' (file) rules applied to them.
2259
2260  - Fixed an infinite loop bug when a filter rule was rejected due to being
2261    overly long.
2262
2263  - When the server receives a `--partial-dir` option from the client, it no
2264    longer runs the client-side code that adds an assumed filter rule (since the
2265    client will be sending us the rules in the usual manner, and they may have
2266    chosen to override the auto-added rule).
2267
2268 ### ENHANCEMENTS:
2269
2270  - Added the `--log-file=FILE` and `--log-file-format=FORMAT` options. These
2271    can be used to tell any rsync to output what it is doing to a log file.
2272    They work with a client rsync, a non-daemon server rsync (see the man page
2273    for instructions), and also allows the overriding of rsyncd.conf settings
2274    when starting a daemon.
2275
2276  - The `--log-format` option was renamed to be `--out-format` to avoid
2277    confusing it with affecting the log-file output. (The old option remains as
2278    an alias for the new to preserve backward compatibility.)
2279
2280  - Made `log file` and `syslog facility` settable on a per-module basis in the
2281    daemon's config file.
2282
2283  - Added the `--remove-source-files` option as a replacement for the (now
2284    deprecated) `--remove-sent-files` option. This new option removes all
2285    non-dirs from the source directories, even if the file was already
2286    up-to-date. This fixes a problem where interrupting an rsync that was using
2287    `--remove-sent-files` and restarting it could leave behind a file that the
2288    earlier rsync synchronized, but didn't get to remove.  (The deprecated
2289    `--remove-sent-files` is still understood for now, and still behaves in the
2290    same way as before.)
2291
2292  - Added the option `--no-motd` to suppress the message-of-the-day output from
2293    a daemon when doing a copy. (See the manpage for a caveat.)
2294
2295  - Added a new environment variable to the pre-/post-xfer exec commands (in the
2296    daemon's config file): `RSYNC_PID`. This value will be the same in both the
2297    pre- and post-xfer commands, so it can be used as a unique ID if the
2298    pre-xfer command wants to cache some arg/request info for the post-xfer
2299    command.
2300
2301 ### INTERNAL:
2302
2303  - Did a code audit using IBM's code-checker program and made several changes,
2304    including: replacing most of the strcpy() and sprintf() calls with
2305    strlcpy(), snprintf(), and memcpy(), adding a 0-value to an enum that had
2306    been intermingling a literal 0 with the defined enum values, silencing some
2307    uninitialized memory checks, marking some functions with a `noreturn`
2308    attribute, and changing an `if` that could never succeed on some platforms
2309    into a pre-processor directive that conditionally compiles the code.
2310
2311  - Fixed a potential bug in `f_name_cmp()` when both the args are a top-level
2312    `.` dir (which doesn't happen in normal operations).
2313
2314  - Changed `exit_cleanup()` so that it can never return instead of exit.  The
2315    old code might return if it found the `exit_cleanup()` function was being
2316    called recursively. The new code is segmented so that any recursive calls
2317    move on to the next step of the exit-processing.
2318
2319  - The macro WIFEXITED(stat) will now be defined if the OS didn't already
2320    define it.
2321
2322 ### DEVELOPER RELATED:
2323
2324  - The acls.diff and xattrs.diff patches have received a bunch of work to make
2325    them much closer to being acceptable in the main distribution.  The xattrs
2326    patch also has some preliminary Mac OS X and FreeBSD compatibility code that
2327    various system types to exchange extended file-attributes.
2328
2329  - A new diff in the patches dir, fake-root.diff, allows rsync to maintain a
2330    backup hierarchy with full owner, group, and device info without actually
2331    running as root. It does this using a special extended attribute, so it
2332    depends on xattrs.diff (which depends on acls.diff).
2333
2334  - The rsync.yo and rsyncd.conf.yo files have been updated to work better with
2335    the latest yodl 2.x releases.
2336
2337  - Updated config.guess and config.sub to their 2006-07-02 versions.
2338
2339  - Updated various files to include the latest FSF address and to have
2340    consistent opening comments.
2341
2342 ------------------------------------------------------------------------------
2343 <a name="2.6.8"></a>
2344
2345 # NEWS for rsync 2.6.8 (22 Apr 2006)
2346
2347 ## Changes in this version:
2348
2349 ### BUG FIXES:
2350
2351  - Fixed a bug in the exclude code where an anchored exclude without any
2352    wildcards fails to match an absolute source arg, but only when `--relative`
2353    is in effect.
2354
2355  - Improved the I/O code for the generator to fix a potential hang when the
2356    receiver gets an EOF on the socket but the generator's select() call never
2357    indicates that the socket is writable for it to be notified about the EOF.
2358    (This can happen when using stunnel).
2359
2360  - Fixed a problem with the file-reading code where a failed read (such as that
2361    caused by a bad sector) would not advance the file's read-position beyond
2362    the failed read's data.
2363
2364  - Fixed a logging bug where the `log file` directive was not being honored in
2365    a single-use daemon (one spawned by a remote-shell connection or by init).
2366
2367  - If rsync cannot honor the `--delete` option, we output an error and exit
2368    instead of silently ignoring the option.
2369
2370  - Fixed a bug in the `--link-dest` code that prevented special files (such as
2371    fifos) from being linked.
2372
2373  - The ability to hard-link symlinks and special files is now determined at
2374    configure time instead of at runtime. This fixes a bug with `--link-dest`
2375    creating a hard-link to a symlink's referent on a BSD system.
2376
2377 ### ENHANCEMENTS:
2378
2379  - In daemon mode, if rsync fails to bind to the requested port, the error(s)
2380    returned by socket() and/or bind() are now logged.
2381
2382  - When we output a fatal error, we now output the version of rsync in the
2383    message.
2384
2385  - Improved the documentation for the `--owner` and `--group` options.
2386
2387  - The rsyncstats script in `support` has an improved line-parsing regex that
2388    is easier to read and also makes it to parse syslog-generated lines.
2389
2390  - A new script in `support`: file-attr-restore, can be used to restore the
2391    attributes of a file-set (the permissions, ownership, and group info) taken
2392    from the cached output of a `find ARG... -ls` command.
2393
2394 ### DEVELOPER RELATED:
2395
2396  - Removed the unused function `write_int_named()`, the unused variable
2397    `io_read_phase`, and the rarely used variable `io_write_phase`. This also
2398    elides the confusing 'phase "unknown"' part of one error message.
2399
2400  - Removed two unused configure checks and two related (also unused)
2401    compatibility functions.
2402
2403  - The xattrs.diff patch received a security fix that prevents a potential
2404    buffer overflow in the `receive_xattr()` code.
2405
2406  - The acls.diff patch has been improved quite a bit, with more to come.
2407
2408  - A new patch was added: log-file.diff. This contains an early version of a
2409    future option, `--log-file=FILE`, that will allow any rsync to log its
2410    actions to a file (something that only a daemon supports at present).
2411
2412 ------------------------------------------------------------------------------
2413 <a name="2.6.7"></a>
2414
2415 # NEWS for rsync 2.6.7 (11 Mar 2006)
2416
2417 ## Changes in this version:
2418
2419 ### OUTPUT CHANGES:
2420
2421  - The letter 'D' in the itemized output was being used for both devices
2422    (character or block) as well as other special files (such as fifos and named
2423    sockets). This has changed to separate non-device special files under the
2424    'S' designation (e.g. `cS+++++++ path/fifo`). See also the `--specials`
2425    option, below.
2426
2427  - The way rsync escapes unreadable characters has changed. First, rsync now
2428    has support for recognizing valid multi-byte character sequences in your
2429    current locale, allowing it to escape fewer characters than before for a
2430    locale such as UTF-8. Second, it now uses an escape idiom of `\#123`, which
2431    is the literal string `\#` followed by exactly 3 octal digits. Rsync no
2432    longer doubles a backslash character in a filename (e.g. it used to output
2433    `foo\\bar` when copying `foo\bar`) -- now it only escapes a backslash that
2434    is followed by a hash-sign and 3 digits (0-9) (e.g. it will output
2435    `foo\#134#789` when copying `foo\#789`). See also the `--8-bit-output`
2436    (`-8`) option, mentioned below.
2437
2438    Script writers: the local rsync is the one that outputs escaped names, so if
2439    you need to support unescaping of filenames for older rsyncs, I'd suggest
2440    that you parse the output of `rsync --version` and only use the old
2441    unescaping rules for 2.6.5 and 2.6.6.
2442
2443 ### BUG FIXES:
2444
2445  - Fixed a really old bug that caused `--checksum` (`-c`) to checksum all the
2446    files encountered during the delete scan (ouch).
2447
2448  - Fixed a potential hang in a remote generator: when the receiver gets a
2449    read-error on the socket, it now signals the generator about this so that
2450    the generator does not try to send any of the terminating error messages to
2451    the client (avoiding a potential hang in some setups).
2452
2453  - Made hard-links work with symlinks and devices again.
2454
2455  - If the sender gets an early EOF reading a source file, we propagate this
2456    error to the receiver so that it can discard the file and try requesting it
2457    again (which is the existing behavior for other kinds of read errors).
2458
2459  - If a device-file/special-file changes permissions, rsync now updates the
2460    permissions without recreating the file.
2461
2462  - If the user specifies a remote-host for both the source and destination, we
2463    now output a syntax error rather than trying to open the destination
2464    hostspec as a filename.
2465
2466  - When `--inplace` creates a new destination file, rsync now creates it with
2467    permissions 0600 instead of 0000 -- this makes restarting possible when the
2468    transfer gets interrupted in the middle of sending a new file.
2469
2470  - Reject the combination of `--inplace` and `--sparse` since the sparse-output
2471    algorithm doesn't work when overwriting existing data.
2472
2473  - Fixed the directory name in the error that is output when `pop_dir()` fails.
2474
2475  - Really fixed the parsing of a `!` entry in .cvsignore files this time.
2476
2477  - If the generator gets a stat() error on a file, output it (this used to
2478    require at least `-vv` for the error to be seen).
2479
2480  - If waitpid() fails or the child rsync didn't exit cleanly, we now handle the
2481    exit status properly and generate a better error.
2482
2483  - Fixed some glitches in the double-verbose output when using `--copy-dest`,
2484    `--link-dest`, or `--compare-dest`. Also improved how the verbose output
2485    handles hard-links (within the transfer) that had an up-to-date alternate
2486    `dest` file, and copied files (via `--copy-dest`).
2487
2488  - Fixed the matching of the dont-compress items (e.g. `*.gz`) against files
2489    that have a path component containing a slash.
2490
2491  - If the code reading a filter/exclude file gets an EINTR error, rsync now
2492    clears the error flag on the file handle so it can keep on reading.
2493
2494  - If `--relative` is active, the sending side cleans up trailing `/` or `/.`
2495    suffixes to avoid triggering a bug in older rsync versions. Also, we now
2496    reject a `..` dir if it would be sent as a relative dir.
2497
2498  - If a non-directory is in the way of a directory and rsync is run with
2499    `--dry-run` and `--delete`, rsync no longer complains about not being able
2500    to opendir() the not-yet present directory.
2501
2502  - When `--list-only` is used and a non-existent local destination dir was also
2503    specified as a destination, rsync no longer generates a warning about being
2504    unable to create the missing directory.
2505
2506  - Fixed some problems with `--relative --no-implied-dirs` when the destination
2507    directory did not yet exist: we can now create a symlink or device when it
2508    is the first thing in the missing dir, and `--fuzzy` no longer complains
2509    about being unable to open the missing dir.
2510
2511  - Fixed a bug where the `--copy-links` option would not affect implied
2512    directories without `--copy-unsafe-links` (see `--relative`).
2513
2514  - Got rid of the need for `--force` to be used in some circumstances with
2515    `--delete-after` (making it consistent with
2516    `--delete-before`/`--delete-during`).
2517
2518  - Rsync now ignores the SIGXFSZ signal, just in case your OS sends this when a
2519    file is too large (rsync handles the write error).
2520
2521  - Fixed a bug in the Proxy-Authorization header's base64-encoded value: it was
2522    not properly padded with trailing '=' chars. This only affects a user that
2523    need to use a password-authenticated proxy for an outgoing daemon-rsync
2524    connection.
2525
2526  - If we're transferring an empty directory to a new name, rsync no longer
2527    forces `S_IWUSR` if it wasn't already set, nor does it accidentally leave it
2528    set.
2529
2530  - Fixed a bug in the debug output (`-vvvvv`) that could mention the wrong
2531    checksum for the current file offset.
2532
2533  - Rsync no longer allows a single directory to be copied over a non-directory
2534    destination arg.
2535
2536 ### ENHANCEMENTS:
2537
2538  - Added the `--append` option that makes rsync append data onto files that are
2539    longer on the source than the destination (this includes new files).
2540
2541  - Added the `--min-size=SIZE` option to exclude small files from the transfer.
2542
2543  - Added the `--compress-level` option to allow you to set how aggressive
2544    rsync's compression should be (this option implies `--compress`).
2545
2546  - Enhanced the parsing of the SIZE value for `--min-size` and `--max-size` to
2547    allow easy entry of multiples of 1000 (instead of just multiples of 1024)
2548    and off-by-one values too (e.g. `--max-size=8mb-1`).
2549
2550  - Added the `--8-bit-output` (`-8`) option, which tells rsync to avoid
2551    escaping high-bit characters that it thinks are unreadable in the current
2552    locale.
2553
2554  - The new option `--human-readable` (`-h`) changes the output of `--progress`,
2555    `--stats`, and the end-of-run summary to be easier to read. If repeated, the
2556    units become powers of 1024 instead of powers of 1000. (The old meaning of
2557    `-h`, as a shorthand for `--help`, still works as long as you just use it on
2558    its own, as in `rsync -h`.)
2559
2560  - If lutimes() and/or lchmod() are around, use them to allow the preservation
2561    of attributes on symlinks.
2562
2563  - The `--link-dest` option now affects symlinks and devices (when possible).
2564
2565  - Added two config items to the rsyncd.conf parsing: `pre-xfer exec` and
2566    `post-xfer exec`. These allow a command to be specified on a per-module
2567    basis that will be run before and/or after a daemon-mode transfer. (See the
2568    man page for a list of the environment variables that are set with
2569    information about the transfer.)
2570
2571  - When using the `--relative` option, you can now insert a dot dir in the
2572    source path to indicate where the replication of the source dirs should
2573    start. For example, if you specify a source path of
2574    rsync://host/module/foo/bar/./baz/dir with `-R`, rsync will now only
2575    replicate the `baz/dir` part of the source path (note: a trailing dot dir is
2576    unaffected unless it also has a trailing slash).
2577
2578  - Added some new `--no-FOO` options that make it easier to override unwanted
2579    implied or default options. For example, `-a --no-o` (aka `--archive
2580    --no-owner`) can be used to turn off the preservation of file ownership that
2581    is implied by `-a`.
2582
2583  - Added the `--chmod=MODE` option that allows the destination permissions to
2584    be changed from the source permissions. E.g. `--chmod=g+w,o-rwx`
2585
2586  - Added the `incoming chmod` and `outgoing chmod` daemon options that allow a
2587    module to specify what permissions changes should be applied to all files
2588    copied to and from the daemon.
2589
2590  - Allow the `--temp-dir` option to be specified when starting a daemon, which
2591    sets the default temporary directory for incoming files.
2592
2593  - If `--delete` is combined with `--dirs` without `--recursive`, rsync will
2594    now delete in any directory whose content is being synchronized.
2595
2596  - If `--backup` is combined with `--delete` without `--backup-dir` (and
2597    without `--delete-excluded`), we add a `protect` filter-rule to ensure that
2598    files with the backup suffix are not deleted.
2599
2600  - The file-count stats that are output by `--progress` were improved to better
2601    indicate what the numbers mean. For instance, the output: `(xfer#5,
2602    to-check=8383/9999)` indicates that this was the fifth file to be
2603    transferred, and we still need to check 8383 more files out of a total of
2604    9999.
2605
2606  - The include/exclude code now allows a `dir/***` directive (with 3 trailing
2607    stars) to match both the dir itself as well as all the content below the dir
2608    (`dir/**` would not match the dir).
2609
2610  - Added the `--prune-empty-dirs` (`-m`) option that makes the receiving rsync
2611    discard empty chains of directories from the file-list. This makes it easier
2612    to selectively copy files from a source hierarchy and end up with just the
2613    directories needed to hold the resulting files.
2614
2615  - If the `--itemize-changes` (`-i`) option is repeated, rsync now includes
2616    unchanged files in the itemized output (similar to `-vv`, but without all
2617    the other verbose messages that can get in the way). Of course, the client
2618    must be version 2.6.7 for this to work, but the remote rsync only needs to
2619    be 2.6.7 if you're pushing files.
2620
2621  - Added the `--specials` option to tell rsync to copy non-device special files
2622    (which rsync now attempts even as a normal user). The `--devices` option now
2623    requests the copying of just devices (character and block).  The `-D` option
2624    still requests both (e.g. `--devices` and `--specials`), `-a` still implies
2625    `-D`, and non-root users still get a silent downgrade that omits device
2626    copying.
2627
2628  - Added the `--super` option to make the receiver always attempt super-user
2629    activities. This is useful for systems that allow things such as devices to
2630    be created or ownership to be set without being UID 0, and is also useful
2631    for someone who wants to ensure that errors will be output if the receiving
2632    rsync isn't being run as root.
2633
2634  - Added the `--sockopts` option for those few who want to customize the TCP
2635    options used to contact a daemon rsync.
2636
2637  - Added a way for the `--temp-dir` option to be combined with a partial-dir
2638    setting that lets rsync avoid non-atomic updates (for those times when
2639    `--temp-dir` is not being used because space is tight).
2640
2641  - A new support script, files-to-excludes, will transform a list of files into
2642    a set of include/exclude directives that will copy those files.
2643
2644  - A new option, `--executability` (`-E`) can be used to preserve just the
2645    execute bit on files, for those times when using the `--perms` option is not
2646    desired.
2647
2648  - The daemon now logs each connection and also each module-list request that
2649    it receives.
2650
2651  - New log-format options: %M (modtime), %U (uid), %G (gid), and %B (permission
2652    bits, e.g. `rwxr-xrwt`).
2653
2654  - The `--dry-run` option no longer forces the enabling of `--verbose`.
2655
2656  - The `--remove-sent-files` option now does a better job of incrementally
2657    removing the sent files on the sending side (older versions tended to clump
2658    up all the removals at the end).
2659
2660  - A daemon now supersedes its minimal SIGCHLD handler with the standard
2661    PID-remembering version after forking. This ensures that the generator can
2662    get the child-exit status from the receiver.
2663
2664  - Use of the `--bwlimit` option no longer interferes with the remote rsync
2665    sending error messages about invalid/refused options.
2666
2667  - Rsync no longer returns a usage error when used with one local source arg
2668    and no destination: this now implies the `--list-only` option, just like the
2669    comparable situation with a remote source arg.
2670
2671  - Added the `--copy-dirlinks` option, a more limited version of
2672    `--copy-links`.
2673
2674  - Various documentation improvements, including: a better synopsis, some
2675    improved examples, a better discussion of the presence and absence of
2676    `--perms` (including how it interacts with the new `--executability` and
2677    `--chmod` options), an extended discussion of `--temp-dir`, an improved
2678    discussion of `--partial-dir`, a better description of rsync's pattern
2679    matching characters, an improved `--no-implied-dirs` section, and the
2680    documenting of what the `--stats` option outputs.
2681
2682  - Various new and updated diffs in the patches dir, including: acls.diff,
2683    xattrs.diff, atimes.diff, detect-renamed.diff, and slp.diff.
2684
2685 ### INTERNAL:
2686
2687  - We now use sigaction() and sigprocmask() if possible, and fall back on
2688    signal() if not. Using sigprocmask() ensures that rsync enables all the
2689    signals that it needs, just in case it was started in a masked state.
2690
2691  - Some buffer sizes were expanded a bit, particularly on systems where
2692    MAXPATHLEN is overly small (e.g. Cygwin).
2693
2694  - If `io_printf()` tries to format more data than fits in the buffer, exit
2695    with an error instead of transmitting a truncated buffer.
2696
2697  - If a `va_copy` macro is defined, lib/snprintf.c will use it when defining
2698    the `VA_COPY` macro.
2699
2700  - Reduced the amount of stack memory needed for each level of directory
2701    recursion by nearly MAXPATHLEN bytes.
2702
2703  - The wildmatch function was extended to allow an array of strings to be
2704    supplied as the string to match. This allows the exclude code to do less
2705    string copying.
2706
2707  - Got rid of the `safe_fname()` function (and all the myriad calls) and
2708    replaced it with a new function in the log.c code that filters all the
2709    output going to the terminal.
2710
2711  - Unified the `f_name()` and the `f_name_to()` functions.
2712
2713  - Improved the hash-table code the sender uses to handle checksums to make it
2714    use slightly less memory and run just a little faster.
2715
2716 ### DEVELOPER RELATED:
2717
2718  - The diffs in the patches dir now require `patch -p1 <DIFF` instead of the
2719    previous `-p0`. Also, the version included in the release tar now affect
2720    generated files (e.g. configure, rsync.1, proto.h, etc.), so it is no longer
2721    necessary to run autoconf and/or yodl unless you're applying a patch that
2722    was checked out from CVS.
2723
2724  - Several diffs in the patches dir now use the proper `--enable-FOO` configure
2725    option instead of `--with-FOO` to turn on the inclusion of the newly patched
2726    feature.
2727
2728  - There is a new script, `prepare-source` than can be used to update the
2729    various generated files (proto.h, configure, etc.) even before configure has
2730    created the Makefile (this is mainly useful when patching the source with a
2731    patch that doesn't affect generated files).
2732
2733  - The testsuite now sets HOME so that it won't be affected by a file such as
2734    ~/.popt.
2735
2736 ------------------------------------------------------------------------------
2737 <a name="2.6.6"></a>
2738
2739 # NEWS for rsync 2.6.6 (28 Jul 2005)
2740
2741 ## Changes in this version:
2742
2743 ### SECURITY FIXES:
2744
2745  - The zlib code was upgraded to version 1.2.3 in order to make it more secure.
2746    While the widely-publicized security problem in zlib 1.2.2 did not affect
2747    rsync, another security problem surfaced that affects rsync's zlib 1.1.4.
2748
2749 ### BUG FIXES:
2750
2751  - The setting of `flist->high` in `clean_flist()` was wrong for an empty list.
2752    This could cause `flist_find()` to crash in certain rare circumstances (e.g.
2753    if just the right directory setup was around when `--fuzzy` was combined
2754    with `--link-dest`).
2755
2756  - The outputting of hard-linked files when verbosity was > 1 was not right:
2757    (1) Without `-i` it would output the name of each hard-linked file as though
2758    it had been changed; it now outputs a `is hard linked` message for the file.
2759    (2) With `-i` it would output all dots for the unchanged attributes of a
2760    hard-link; it now changes those dots to spaces, as is done for other totally
2761    unchanged items.
2762
2763  - When backing up a changed symlink or device, get rid of any old backup item
2764    so that we don't get an `already exists` error.
2765
2766  - A couple places that were comparing a local and a remote modification-time
2767    were not honoring the `--modify-window` option.
2768
2769  - Fixed a bug where the 'p' (permissions) itemized-changes flag might get set
2770    too often (if some non-significant mode bits differed).
2771
2772  - Fixed a really old, minor bug that could cause rsync to warn about being
2773    unable to mkdir() a path that ends in `/.` because it just created the
2774    directory (required `--relative`, `--no-implied-dirs`, a source path that
2775    ended in either a trailing slash or a trailing `/.`, and a non-existing
2776    destination dir to tickle the bug in a recent version).
2777
2778 ### ENHANCEMENTS:
2779
2780  - Made the `max verbosity` setting in the rsyncd.conf file settable on a
2781    per-module basis (which now matches the documentation).
2782
2783  - The support/rrsync script has been upgraded to verify the args of options
2784    that take args (instead of rejecting any such options). The script was also
2785    changed to try to be more secure and to fix a problem in the parsing of a
2786    pull operation that has multiple sources.
2787
2788  - Improved the documentation that explains the difference between a normal
2789    daemon transfer and a daemon-over remote-shell transfer.
2790
2791  - Some of the diffs supplied in the patches dir were fixed and/or improved.
2792
2793 ### BUILD CHANGES:
2794
2795  - Made configure define `NOBODY_USER` (currently hard-wired to `nobody`) and
2796    `NOBODY_GROUP` (set to either `nobody` or `nogroup` depending on what we
2797    find in the /etc/group file).
2798
2799  - Added a test to the test suite, itemized.test, that tests the output of `-i`
2800    (log-format w/%i) and some double-verbose messages.
2801
2802 ------------------------------------------------------------------------------
2803 <a name="2.6.5"></a>
2804
2805 # NEWS for rsync 2.6.5 (1 Jun 2005)
2806
2807 ## Changes in this version:
2808
2809 ### OUTPUT CHANGES:
2810
2811  - Non-printable chars in filenames are now output using backslash-escaped
2812    characters rather than '?'s. Any non-printable character is output using 3
2813    digits of octal (e.g. `\n` -> `\012`), and a backslash is now output as
2814    `\\`. Rsync also uses your locale setting, which can make it treat fewer
2815    high-bit characters as non-printable.
2816
2817  - If rsync received an empty file-list when pulling files, it would output a
2818    `nothing to do` message and exit with a 0 (success) exit status, even if the
2819    remote rsync returned an error (it did not do this under the same conditions
2820    when pushing files). This was changed to make the pulling behavior the same
2821    as the pushing behavior: we now do the normal end-of-run outputting
2822    (depending on options) and exit with the appropriate exit status.
2823
2824 ### BUG FIXES:
2825
2826  - A crash bug was fixed when a daemon had its `path` set to `/`, did not have
2827    chroot enabled, and used some anchored excludes in the rsyncd.conf file.
2828
2829  - Fixed a bug in the transfer of a single file when `-H` is specified (rsync
2830    would either infinite loop or perhaps crash).
2831
2832  - Fixed a case where the generator might try (and fail) to tweak the
2833    write-permissions of a read-only directory in list-only mode (this only
2834    caused an annoying warning message).
2835
2836  - If `--compare-dest` or `--link-dest` uses a locally-copied file as the basis
2837    for an updated version, log this better when `--verbose` or `-i` is in
2838    effect.
2839
2840  - Fixed the accidental disabling of `--backup` during the `--delete-after`
2841    processing.
2842
2843  - Restored the ability to use the `--address` option in client mode (in
2844    addition to its use in daemon mode).
2845
2846  - Make sure that some temporary progress information from the delete
2847    processing does not get left on the screen when it is followed by a newline.
2848
2849  - When `--existing` skips a directory with extra verbosity, refer to it as a
2850    `directory`, not a `file`.
2851
2852  - When transferring a single file to a different-named file, any generator
2853    messages that are source-file related no longer refer to the file by the
2854    destination filename.
2855
2856  - Fixed a bug where hard-linking a group of files might fail if the generator
2857    hasn't created a needed destination directory yet.
2858
2859  - Fixed a bug where a hard-linked group of files that is newly-linked to a
2860    file in a `--link-dest` dir doesn't link the files from the rest of the
2861    cluster.
2862
2863  - When deleting files with the `--one-file-system` (`-x`) option set, rsync no
2864    longer tries to remove files from inside a mount-point on the receiving
2865    side. Also, we don't complain about being unable to remove the mount-point
2866    dir.
2867
2868  - Fixed a compatibility problem when using `--cvs-ignore` (`-C`) and sending
2869    files to an older rsync without using `--delete`.
2870
2871  - Make sure that a `- !` or `+ !` include/exclude pattern does not trigger the
2872    list-clearing action that is reserved for `!`.
2873
2874  - Avoid a timeout in the generator when the sender/receiver aren't handling
2875    the generator's checksum output quickly enough.
2876
2877  - Fixed the omission of some directories in the delete processing when
2878    `--relative` (`-R`) was combined with a source path that had a trailing
2879    slash.
2880
2881  - Fixed a case where rsync would erroneously delete some files and then
2882    re-transfer them when the options `--relative` (`-R`) and `--recursive`
2883    (`-r`) were both enabled (along with `--delete`) and a source path had a
2884    trailing slash.
2885
2886  - Make sure that `--max-size` doesn't affect a device or a symlink.
2887
2888  - Make sure that a system with a really small MAXPATHLEN does not cause the
2889    buffers in `readfd_unbuffered()` to be too small to receive normal messages.
2890    (This mainly affected Cygwin.)
2891
2892  - If a source pathname ends with a filename of `..`, treat it as if `../` had
2893    been specified (so that we don't copy files to the parent dir of the
2894    destination).
2895
2896  - If `--delete` is combined with a file-listing rsync command (i.e. no
2897    transfer is happening), avoid outputting a warning that we couldn't delete
2898    anything.
2899
2900  - If `--stats` is specified with `--delete-after`, ensure that all the
2901    `deleting` messages are output before the statistics.
2902
2903  - Improved one `if` in the deletion code that was only checking errno for
2904    ENOTEMPTY when it should have also been checking for EEXIST (for
2905    compatibility with OS variations).
2906
2907 ### ENHANCEMENTS:
2908
2909  - Added the `--only-write-batch=FILE` option that may be used (instead of
2910    `--write-batch=FILE`) to create a batch file without doing any actual
2911    updating of the destination. This allows you to divert all the file-updating
2912    data away from a slow data link (as long as you are pushing the data to the
2913    remote server when creating the batch).
2914
2915  - When the generator is taking a long time to fill up its output buffer (e.g.
2916    if the transferred files are few, small, or missing), it now periodically
2917    flushes the output buffer so that the sender/receiver can get started on the
2918    files sooner rather than later.
2919
2920  - Improved the keep-alive code to handle a long silence between the sender and
2921    the receiver that can occur when the sender is receiving the checksum data
2922    for a large file.
2923
2924  - Improved the auth-errors that are logged by the daemon to include some
2925    information on why the authorization failed: wrong user, password mismatch,
2926    etc. (The client-visible message is unchanged!)
2927
2928  - Improved the client's handling of an `@ERROR` from a daemon so that it does
2929    not complain about an unexpectedly closed socket (since we really did expect
2930    the socket to close).
2931
2932  - If the daemon can't open the log-file specified in rsyncd.conf, fall back to
2933    using syslog and log an appropriate warning. This is better than what was
2934    typically a totally silent (and fatal) failure (since a daemon is not
2935    usually run with the `--no-detach` option that was necessary to see the
2936    error on stderr).
2937
2938  - The man pages now consistently refer to an rsync daemon as a `daemon`
2939    instead of a `server` (to distinguish it from the server process in a
2940    non-daemon transfer).
2941
2942  - Made a small change to the rrsync script (restricted rsync -- in the support
2943    dir) to make a read-only server reject all `--remove-*` options when sending
2944    files (to future-proof it against the possibility of other similar options
2945    being added at some point).
2946
2947 ### INTERNAL:
2948
2949  - Rsync now calls `setlocale(LC_CTYPE, "")`. This enables isprint() to better
2950    discern which filename characters need to be escaped in messages (which
2951    should result in fewer escaped characters in some locales).
2952
2953  - Improved the naming of the log-file open/reopen/close functions.
2954
2955  - Removed some protocol-compatibility code that was only needed to help
2956    someone running a pre-release of 2.6.4.
2957
2958 ### BUILD CHANGES:
2959
2960  - Added configure option `--disable-locale` to disable any use of setlocale()
2961    in the binary.
2962
2963  - Fixed a bug in the `SUPPORT{,_HARD}_LINKS` #defines which prevented rsync
2964    from being built without symlink or hard-link support.
2965
2966  - Only #define `HAVE_REMSH` if it is going to be set to 1.
2967
2968  - Configure now disables the use of mkstemp() under HP-UX (since they refuse
2969    to fix its broken handling of large files).
2970
2971  - Configure now explicitly checks for the lseek64() function so that the code
2972    can use `HAVE_LSEEK64` instead of inferring lseek64()'s presence based on
2973    the presence of the `off64_t` type.
2974
2975  - Configure no longer mentions the change in the default remote-shell (from
2976    rsh to ssh) that occurred for the 2.6.0 release.
2977
2978  - Some minor enhancements to the test scripts.
2979
2980  - Added a few new `*.diff` files to the patches dir, including a patch that
2981    enables the optional copying of extended attributes.
2982
2983 ------------------------------------------------------------------------------
2984 <a name="2.6.4"></a>
2985
2986 # NEWS for rsync 2.6.4 (30 March 2005)
2987
2988 ## Changes in this version:
2989
2990 ### PROTOCOL NUMBER:
2991
2992  - The protocol number was changed to 29.
2993
2994 ### OUTPUT CHANGES:
2995
2996  - When rsync deletes a directory and outputs a verbose message about it, it
2997    now appends a trailing slash to the name instead of (only sometimes)
2998    outputting a preceding "directory " string.
2999
3000  - The `--stats` output will contain file-list time-statistics if both sides
3001    are 2.6.4, or if the local side is 2.6.4 and the files are being pushed
3002    (since the stats come from the sending side).  (Requires protocol 29 for a
3003    pull.)
3004
3005  - The `%o` (operation) log-format escape now has a third value (besides `send`
3006    and `recv`): `del.` (with trailing dot to make it 4 chars).  This changes
3007    the way deletions are logged in the daemon's log file.
3008
3009  - When the `--log-format` option is combined with `--verbose`, rsync now
3010    avoids outputting the name of the file twice in most circumstances.  As long
3011    as the `--log-format` item does not refer to any post-transfer items (such
3012    as %b or %c), the `--log-format` message is output prior to the transfer, so
3013    `--verbose` is now the equivalent of a `--log-format` of '%n%L' (which
3014    outputs the name and any link info). If the log output must occur after the
3015    transfer to be complete, the only time the name is also output prior to the
3016    transfer is when `--progress` was specified (so that the name will precede
3017    the progress stats, and the full `--log-format` output will come after).
3018
3019  - Non-printable characters in filenames are replaced with a '?' to avoid
3020    corrupting the screen or generating empty lines in the output.
3021
3022 ### BUG FIXES:
3023
3024  - Restore the list-clearing behavior of `!` in a .cvsignore file (2.6.3 was
3025    only treating it as a special token in an rsync include/exclude file).
3026
3027  - The combination of `--verbose` and `--dry-run` now mentions the full list of
3028    changes that would be output without `--dry-run`.
3029
3030  - Avoid a mkdir warning when removing a directory in the destination that
3031    already exists in the `--backup-dir`.
3032
3033  - An OS that has a binary mode for its files (such as Cygwin) needed
3034    `setmode(fd, O_BINARY)` called on the temp-file we opened with mkstemp().
3035    (Fix derived from Cygwin's 2.6.3 rsync package.)
3036
3037  - Fixed a potential hang when verbosity is high, the client side is the
3038    sender, and the file-list is large.
3039
3040  - Fixed a potential protocol-corrupting bug where the generator could merge a
3041    message from the receiver into the middle of a multiplexed packet of data if
3042    only part of that data had been written out to the socket when the message
3043    from the generator arrived.
3044
3045  - We now check if the OS doesn't support using mknod() for creating FIFOs and
3046    sockets, and compile-in some compatibility code using mkfifo() and socket()
3047    when necessary.
3048
3049  - Fixed an off-by-one error in the handling of `--max-delete=N`. Also, if the
3050    `--max-delete` limit is exceeded during a run, we now output a warning about
3051    this at the end of the run and exit with a new error code (25).
3052
3053  - One place in the code wasn't checking if fork() failed.
3054
3055  - The `ignore nonreadable` daemon parameter used to erroneously affect
3056    readable symlinks that pointed to a non-existent file.
3057
3058  - If the OS does not have lchown() and a chown() of a symlink will affect the
3059    referent of a symlink (as it should), we no longer try to set the user and
3060    group of a symlink.
3061
3062  - The generator now properly runs the hard-link loop and the dir-time
3063    rewriting loop after we're sure that the redo phase is complete.
3064
3065  - When `--backup` was specified with `--partial-dir=DIR`, where DIR is a
3066    relative path, the backup code was erroneously trying to backup a file that
3067    was put into the partial-dir.
3068
3069  - If a file gets resent in a single transfer and the `--backup` option is
3070    enabled along with `--inplace`, rsync no longer performs a duplicate backup
3071    (it used to overwrite the first backup with the failed file).
3072
3073  - One call to `flush_write_file()` was not being checked for an error.
3074
3075  - The `--no-relative` option was not being sent from the client to a server
3076    sender.
3077
3078  - If an rsync daemon specified `dont compress = ...` for a file and the client
3079    tried to specify `--compress`, the libz code was not handling a compression
3080    level of 0 properly. This could cause a transfer failure if the block-size
3081    for a file was large enough (e.g. rsync might have exited with an error for
3082    large files).
3083
3084  - Fixed a bug that would sometimes surface when using `--compress` and sending
3085    a file with a block-size larger than 64K (either manually specified, or
3086    computed due to the file being really large). Prior versions of rsync would
3087    sometimes fail to decompress the data properly, and thus the transferred
3088    file would fail its verification.
3089
3090  - If a daemon can't open the specified log file (i.e. syslog is not being
3091    used), die without crashing. We also output an error about the failure on
3092    stderr (which will only be seen if `--no-detach` was specified) and exit
3093    with a new error code (6).
3094
3095  - A local transfer no longer duplicates all its include/exclude options (since
3096    the forked process already has a copy of the exclude list, there's no need
3097    to send them a set of duplicates).
3098
3099  - The output of the items that are being updated by the generator (dirs,
3100    symlinks, devices) is now intermingled in the proper order with the output
3101    from the items that the receiver is updating (regular files) when pulling.
3102    This misordering was particularly bad when `--progress` was specified.
3103    (Requires protocol 29.)
3104
3105  - When `--timeout` is specified, lulls that occur in the transfer while the
3106    generator is doing work that does not generate socket traffic (looking for
3107    changed files, deleting files, doing directory-time touch-ups, etc.) will
3108    cause a new keep-alive packet to be sent that should keep the transfer going
3109    as long as the generator continues to make progress. (Requires protocol 29.)
3110
3111  - The stat size of a device is not added to the total file size of the items
3112    in the transfer (the size might be undefined on some OSes).
3113
3114  - Fixed a problem with refused-option messages sometimes not making it back to
3115    the client side when a remote `--files-from` was in effect and the daemon
3116    was the receiver.
3117
3118  - The `--compare-dest` option was not updating a file that differed in (the
3119    preserved) attributes from the version in the compare-dest DIR.
3120
3121  - When rsync is copying files into a write-protected directory, fixed the
3122    change-report output for the directory so that we don't report an identical
3123    directory as changed.
3124
3125 ### ENHANCEMENTS:
3126
3127  - Rsync now supports popt's option aliases, which means that you can use
3128    /etc/popt and/or ~/.popt to create your own option aliases.
3129
3130  - Added the `--delete-during` (`--del`) option which will delete files from
3131    the receiving side incrementally as each directory in the transfer is being
3132    processed. This makes it more efficient than the default,
3133    before-the-transfer behavior, which is now also available as
3134    `--delete-before` (and is still the default `--delete-WHEN` option that will
3135    be chosen if `--delete` or `--delete-excluded` is specified without a
3136    `--delete-WHEN` choice). All the `--del*` options infer `--delete`, so an
3137    rsync daemon that refuses `delete` will still refuse to allow any
3138    file-deleting options (including the new `--remove-sent-files` option).
3139
3140  - All the `--delete-WHEN` options are now more memory efficient: Previously an
3141    duplicate set of file-list objects was created on the receiving side for the
3142    entire destination hierarchy. The new algorithm only creates one directory
3143    of objects at a time (for files inside the transfer).
3144
3145  - Added the `--copy-dest` option, which works like `--link-dest` except that
3146    it locally copies identical files instead of hard-linking them.
3147
3148  - Added support for specifying multiple `--compare-dest`, `--copy-dest`, or
3149    `--link-dest` options, but only of a single type. (Promoted from the patches
3150    dir and enhanced.) (Requires protocol 29.)
3151
3152  - Added the `--max-size` option. (Promoted from the patches dir.)
3153
3154  - The daemon-mode options are now separated from the normal rsync options so
3155    that they can't be mixed together. This makes it impossible to start a
3156    daemon that has improper default option values (which could cause problems
3157    when a client connects, such as hanging or crashing).
3158
3159  - The `--bwlimit` option may now be used in combination with `--daemon` to
3160    specify both a default value for the daemon side and a value that cannot be
3161    exceeded by a user-specified `--bwlimit` option.
3162
3163  - Added the `port` parameter to the rsyncd.conf file. (Promoted from the
3164    patches dir.) Also added `address`. The command-line options take precedence
3165    over a config-file option, as expected.
3166
3167  - In `_exit_cleanup()`: when we are exiting with a partially-received file, we
3168    now flush any data in the write-cache before closing the partial file.
3169
3170  - The `--inplace` support was enhanced to work with `--compare-dest`,
3171    `--link-dest`, and (the new) `--copy-dest` options. (Requires protocol 29.)
3172
3173  - Added the `--dirs` (`-d`) option for an easier way to copy directories
3174    without recursion. Any directories that are encountered are created on the
3175    destination. Specifying a directory with a trailing slash copies its
3176    immediate contents to the destination.
3177
3178  - The `--files-from` option now implies `--dirs` (`-d`).
3179
3180  - Added the `--list-only` option, which is mainly a way for the client to put
3181    the server into listing mode without needing to resort to any internal
3182    option kluges (e.g. the age-old use of `-r --exclude='/*/*'` for a
3183    non-recursive listing). This option is used automatically (behind the
3184    scenes) when a modern rsync speaks to a modern daemon, but may also be
3185    specified manually if you want to force the use of the `--list-only` option
3186    over a remote-shell connection.
3187
3188  - Added the `--omit-dir-times` (`-O`) option, which will avoid updating the
3189    modified time for directories when `--times` was specified. This option will
3190    avoid an extra pass through the file-list at the end of the transfer (to
3191    tweak all the directory times), which may provide an appreciable speedup for
3192    a really large transfer. (Promoted from the patches dir.)
3193
3194  - Added the `--filter` (`-f`) option and its helper option, `-F`. Filter rules
3195    are an extension to the existing include/exclude handling that also supports
3196    nested filter files as well as per-directory filter files (like .cvsignore,
3197    but with full filter-rule parsing).  This new option was chosen in order to
3198    ensure that all existing include/exclude processing remained 100% compatible
3199    with older versions. Protocol 29 is needed for full filter-rule support, but
3200    backward-compatible rules work with earlier protocol versions.  (Promoted
3201    from the patches dir and enhanced.)
3202
3203  - Added the `--delay-updates` option that puts all updated files into a
3204    temporary directory (by default `.~tmp~`, but settable via the
3205    `--partial-dir=DIR` option) until the end of the transfer. This makes the
3206    updates a little more atomic for a large transfer.
3207
3208  - If rsync is put into the background, any output from `--progress` is
3209    reduced.
3210
3211  - Documented the `max verbosity` setting for rsyncd.conf. (This setting was
3212    added a couple releases ago, but left undocumented.)
3213
3214  - The sender and the generator now double-check the file-list index they are
3215    given, and refuse to try to do a file transfer on a non-file index (since
3216    that would indicate that something had gone very wrong).
3217
3218  - Added the `--itemize-changes` (`-i`) option, which is a way to output a more
3219    detailed list of what files changed and in what way. The effect is the same
3220    as specifying a `--log-format` of `%i %n%L` (see both the rsync and
3221    rsyncd.conf manpages). Works with `--dry-run` too.
3222
3223  - Added the `--fuzzy` (`-y`) option, which attempts to find a basis file for a
3224    file that is being created from scratch. The current algorithm only looks in
3225    the destination directory for the created file, but it does attempt to find
3226    a match based on size/mod-time (in case the file was renamed with no other
3227    changes) as well as based on a fuzzy name-matching algorithm. This option
3228    requires protocol 29 because it needs the new file-sorting order. (Promoted
3229    from patches dir and enhanced.) (Requires protocol 29.)
3230
3231  - Added the `--remove-sent-files` option, which lets you move files between
3232    systems.
3233
3234  - The hostname in HOST:PATH or HOST::PATH may now be an IPv6 literal enclosed
3235    in '[' and ']' (e.g. `[::1]`). (We already allowed IPv6 literals in the
3236    rsync://HOST:PORT/PATH format.)
3237
3238  - When rsync recurses to build the file list, it no longer keeps open one or
3239    more directory handles from the dir's parent dirs.
3240
3241  - When building under windows, the default for `--daemon` is now to avoid
3242    detaching, requiring the new `--detach` option to force rsync to detach.
3243
3244  - The `--dry-run` option can now be combined with either `--write-batch` or
3245    `--read-batch`, allowing you to run a do-nothing test command to see what
3246    would happen without `--dry-run`.
3247
3248  - The daemon's `read only` config item now sets an internal `read_only`
3249    variable that makes extra sure that no write/delete calls on the read-only
3250    side can succeed.
3251
3252  - The log-format % escapes can now have a numeric field width in between the %
3253    and the escape letter (e.g. `%-40n %08p`).
3254
3255  - Improved the option descriptions in the `--help` text.
3256
3257 ### SUPPORT FILES:
3258
3259  - Added atomic-rsync to the support dir: a perl script that will transfer some
3260    files using rsync, and then move the updated files into place all at once at
3261    the end of the transfer. Only works when pulling, and uses `--link-dest` and
3262    a parallel hierarchy of files to effect its update.
3263
3264  - Added mnt-excl to the support dir: a perl script that takes the /proc/mounts
3265    file and translates it into a set of excludes that will exclude all mount
3266    points (even mapped mounts to the same disk). The excludes are made relative
3267    to the specified source dir and properly anchored.
3268
3269  - Added savetransfer.c to the support dir: a C program that can make a copy of
3270    all the data that flows over the wire. This lets you test for data
3271    corruption (by saving the data on both the sending side and the receiving
3272    side) and provides one way to debug a protocol error.
3273
3274  - Added rrsync to the support dir: this is an updated version of Joe Smith's
3275    restricted rsync perl script. This helps to ensure that only certain rsync
3276    commands can be run by an ssh invocation.
3277
3278 ### INTERNAL:
3279
3280  - Added better checking of the checksum-header values that come over the
3281    socket.
3282
3283  - Merged a variety of file-deleting functions into a single function so that
3284    it is easier to maintain.
3285
3286  - Improved the type of some variables (particularly blocksize vars) for
3287    consistency and proper size.
3288
3289  - Got rid of the uint64 type (which we didn't need).
3290
3291  - Use a slightly more compatible set of core #include directives.
3292
3293  - Defined int32 in a way that ensures that the build dies if we can't find a
3294    variable with at least 32 bits.
3295
3296 ### PROTOCOL DIFFERENCES FOR VERSION 29:
3297
3298  - A 16-bit flag-word is transmitted after every file-list index. This
3299    indicates what is changing between the sender and the receiver. The
3300    generator now transmits an index and a flag-word to indicate when dirs and
3301    symlinks have changed (instead of producing a message), which makes the
3302    outputting of the information more consistent and less prone to screen
3303    corruption (because the local receiver/sender is now outputting all the
3304    file-change info messages).
3305
3306  - If a file is being hard-linked, the `ITEM_XNAME_FOLLOWS` bit is enabled in
3307    the flag-word and the name of the file that was linked immediately follows
3308    in vstring format (see below).
3309
3310  - If a file is being transferred with an alternate-basis file, the
3311    `ITEM_BASIS_TYPE_FOLLOWS` bit is enabled in the flag-word and a single byte
3312    follows, indicating what type of basis file was chosen. If that indicates
3313    that a fuzzy-match was selected, the `ITEM_XNAME_FOLLOWS` bit is set in the
3314    flag-word and the name of the match in vstring format follows the basis
3315    byte. A vstring is a variable length string that has its size written prior
3316    to the string, and no terminating null.  If the string is from 1-127 bytes,
3317    the length is a single byte. If it is from 128-32767 bytes, the length is
3318    written as ((len >> 8) | 0x80) followed by (len % 0x100).
3319
3320  - The sending of exclude names is done using filter-rule syntax. This means
3321    that all names have a prefixed rule indicator, even excludes (which used to
3322    be sent as a bare pattern, when possible). The `-C` option will include the
3323    per-dir .cvsignore merge file in the list of filter rules so it is
3324    positioned correctly (unlike in some older transfer scenarios).
3325
3326  - Rsync sorts the filename list in a different way: it sorts the subdir names
3327    after the non-subdir names for each dir's contents, and it always puts a
3328    dir's contents immediately after the dir's name in the list. (Previously an
3329    item named `foo.txt` would sort in between directory `foo/` and `foo/bar`.)
3330
3331  - When talking to a protocol 29 rsync daemon, a list-only request is able to
3332    note this before the options are sent over the wire and the new
3333    `--list-only` option is included in the options.
3334
3335  - When the `--stats` bytes are sent over the wire (or stored in a batch), they
3336    now include two elapsed-time values: one for how long it took to build the
3337    file-list, and one for how long it took to send it over the wire (each
3338    expressed in thousandths of a second).
3339
3340  - When `--delete-excluded` is specified with some filter rules (AKA excludes),
3341    a client sender will now initiate a send of the rules to the receiver (older
3342    protocols used to omit the sending of excludes in this situation since there
3343    were no receiver-specific rules that survived `--delete-excluded` back
3344    then). Note that, as with all the filter-list sending, only items that are
3345    significant to the other side will actually be sent over the wire, so the
3346    filter-rule list that is sent in this scenario is often empty.
3347
3348  - An index equal to the file-list count is sent as a keep-alive packet from
3349    the generator to the sender, which then forwards it on to the receiver. This
3350    normally invalid index is only a valid keep-alive packet if the 16-bit
3351    flag-word that follows it contains a single bit (`ITEM_IS_NEW`, which is
3352    normally an illegal flag to appear alone).
3353
3354  - A protocol-29 batch file includes a bit for the setting of the `--dirs`
3355    option and for the setting of the `--compress` option. Also, the shell
3356    script created by `--write-batch` will use the `--filter` option instead of
3357    `--exclude-from` to capture any filter rules.
3358
3359 ### BUILD CHANGES:
3360
3361  - Handle an operating system that use mkdev() in place of makedev().
3362
3363  - Improved configure to better handle cross-compiling.
3364
3365 ------------------------------------------------------------------------------
3366 <a name="2.6.3"></a>
3367
3368 # NEWS for rsync 2.6.3 (30 Sep 2004)
3369
3370 ## Changes in this version:
3371
3372 ### SECURITY FIXES:
3373
3374  - A bug in the `sanitize_path` routine (which affects a non-chrooted rsync
3375    daemon) could allow a user to craft a pathname that would get transformed
3376    into an absolute path for certain options (but not for file-transfer names).
3377    If you're running an rsync daemon with chroot disabled, **please upgrade**,
3378    ESPECIALLY if the user privs you run rsync under is anything above `nobody`.
3379
3380    OUTPUT CHANGES (ATTN: those using a script to parse the verbose output):
3381
3382  - Please note that the 2-line footer (output when verbose) now uses the term
3383    `sent` instead of `wrote` and `received` instead of `read`. If you are not
3384    parsing the numeric values out of this footer, a script would be better off
3385    using the empty line prior to the footer as the indicator that the verbose
3386    output is over.
3387
3388  - The output from the `--stats` option was similarly affected to change
3389    `written` to `sent` and `read` to `received`.
3390
3391  - Rsync ensures that a filename that contains a newline gets mentioned with
3392    each newline transformed into a question mark (which prevents a filename
3393    from causing an empty line to be output).
3394
3395  - The `backed up ...` message that is output when at least 2 `--verbose`
3396    options are specified is now the same both with and without the
3397    `--backup-dir` option.
3398
3399 ### BUG FIXES:
3400
3401  - Fixed a crash bug that might appear when `--delete` was used and multiple
3402    source directories were specified.
3403
3404  - Fixed a 32-bit truncation of the file length when generating the checksums.
3405
3406  - The `--backup` code no longer attempts to create some directories over and
3407    over again (generating warnings along the way).
3408
3409  - Fixed a bug in the reading of the secrets file (by the daemon) and the
3410    password file (by the client): the files no longer need to be terminated by
3411    a newline for their content to be read in.
3412
3413  - If a file has a read error on the sending side or the reconstructed data
3414    doesn't match the expected checksum (perhaps due to the basis file changing
3415    during the transfer), the receiver will no longer retain the resulting file
3416    unless the `--partial` option was specified.  (Note: for the read-error
3417    detection to work, neither side can be older than 2.6.3 -- older receivers
3418    will always retain the file, and older senders don't tell the receiver that
3419    the file had a read error.)
3420
3421  - If a file gets resent in a single transfer and the `--backup` option is
3422    enabled, rsync no longer performs a duplicate backup (it used to overwrite
3423    the original file in the backup area).
3424
3425  - Files specified in the daemon's `exclude` or `exclude from` config items are
3426    now excluded from being uploaded (assuming that the module allows uploading
3427    at all) in addition to the old download exclusion.
3428
3429  - Got rid of a potential hang in the receiver when near the end of a phase.
3430
3431  - When using `--backup` without a `--backup-dir`, rsync no longer preserves
3432    the modify time on directories. This avoids confusing NFS.
3433
3434  - When `--copy-links` (`-L`) is specified, we now output a separate error for
3435    a symlink that has no referent instead of claiming that a file `vanished`.
3436
3437  - The `--copy-links` (`-L`) option no longer has the side-effect of telling
3438    the receiving side to follow symlinks. See the `--keep-dirlinks` option
3439    (mentioned below) for a way to specify that behavior.
3440
3441  - Error messages from the daemon server's option-parsing (such as refused
3442    options) are now successfully transferred back to the client (the server
3443    used to fail to send the message because the socket wasn't in the right
3444    state for the message to get through).
3445
3446  - Most transfer errors that occur during a daemon transfer are now returned to
3447    the user in addition to being logged (some messages are intended to be
3448    daemon-only and are not affected by this).
3449
3450  - Fixed a bug in the daemon authentication code when using one of the
3451    batch-processing options.
3452
3453  - We try to work around some buggy IPv6 implementations that fail to implement
3454    `IPV6_V6ONLY`. This should fix the `address in use` error that some daemons
3455    get when running on an OS with a buggy IPv6 implementation. Also, if the new
3456    code gets this error, we might suggest that the user specify `--ipv4` or
3457    `--ipv6` (if we think it will help).
3458
3459  - When the remote rsync dies, make a better effort to recover any error
3460    messages it may have sent before dying (the local rsync used to just die
3461    with a socket-write error).
3462
3463  - When using `--delete` and a `--backup-dir` that contains files that are
3464    hard-linked to their destination equivalents, rsync now makes sure that
3465    removed files really get removed (avoids a really weird rename() behavior).
3466
3467  - Avoid a bogus run-time complaint about a lack of 64-bit integers when the
3468    int64 type is defined as an `off_t` and it actually has 64-bits.
3469
3470  - Added a configure check for open64() without mkstemp64() so that we can
3471    avoid using mkstemp() when such a combination is encountered.  This bypasses
3472    a problem writing out large temp files on OSes such as AIX and HP-UX.
3473
3474  - Fixed an age-old crash problem with `--read-batch` on a local copy (rsync
3475    was improperly assuming `--whole-file` for the local copy).
3476
3477  - When `--dry-run` (`-n`) is used and the destination directory does not
3478    exist, rsync now produces a correct report of files that would be sent
3479    instead of dying with a chdir() error.
3480
3481  - Fixed a bug that could cause a slow-to-connect rsync daemon to die with an
3482    error instead of waiting for the connection to finish.
3483
3484  - Fixed an ssh interaction that could cause output to be lost when the user
3485    chose to combine the output of rsync's stdout and stderr (e.g.  using the
3486    `2>&1`).
3487
3488  - Fixed an option-parsing bug when `--files-from` got passed to a daemon.
3489
3490 ### ENHANCEMENTS:
3491
3492  - Added the `--partial-dir=DIR` option that lets you specify where to
3493    (temporarily) put a partially transferred file (instead of overwriting the
3494    destination file). E.g. `--partial-dir=.rsync-partial` Also added support
3495    for the `RSYNC_PARTIAL_DIR` environment variable that, when found,
3496    transforms a regular `--partial` option (such as the convenient `-P` option)
3497    into one that also specifies a directory.
3498
3499  - Added `--keep-dirlinks` (`-K`), which allows you to symlink a directory onto
3500    another partition on the receiving side and have rsync treat it as matching
3501    a normal directory from the sender.
3502
3503  - Added the `--inplace` option that tells rsync to write each destination file
3504    without using a temporary file. The matching of existing data in the
3505    destination file can be severely limited by this, but there are also cases
3506    where this is more efficient (such as appending data).  Use only when needed
3507    (see the man page for more details).
3508
3509  - Added the `write only` option for the daemon's config file.
3510
3511  - Added long-option names for `-4` and `-6` (namely `--ipv4` and `--ipv6`) and
3512    documented all these options in the man page.
3513
3514  - Improved the handling of the `--bwlimit` option so that it's less bursty,
3515    more accurate, and works properly over a larger range of values.
3516
3517  - The rsync daemon-over-ssh code now looks for `SSH_CONNECTION` and
3518    `SSH2_CLIENT` in addition to `SSH_CLIENT` to figure out the IP address.
3519
3520  - Added the `--checksum-seed=N` option for advanced users.
3521
3522  - Batch writing/reading has a brand-new implementation that is simpler, fixes
3523    a few weird problems with the old code (such as no longer sprinkling the
3524    batch files into different dirs or even onto different systems), and is much
3525    less intrusive into the code (making it easier to maintain for the future).
3526    The new code generates just one data file instead of three, which makes it
3527    possible to read the batch on stdin via a remote shell. Also, the old
3528    requirement of forcing the same fixed checksum-seed for all batch processing
3529    has been removed.
3530
3531  - If an rsync daemon has a module set with `list = no` (which hides its
3532    presence in the list of available modules), a user that fails to
3533    authenticate gets the same `unknown module` error that they would get if the
3534    module were actually unknown (while still logging the real error to the
3535    daemon's log file). This prevents fishing for module names.
3536
3537  - The daemon's `refuse options` config item now allows you to match option
3538    names using wildcards and/or the single-letter option names.
3539
3540  - Each transferred file now gets its permissions and modified-time updated
3541    before the temp-file gets moved into place. Previously, the finished file
3542    would have a very brief window where its permissions disallowed all group
3543    and world access.
3544
3545  - Added the ability to parse a literal IPv6 address in an `rsync:` URL (e.g.
3546    rsync://[2001:638:500:101::21]:873/module/dir).
3547
3548  - The daemon's wildcard expanding code can now handle more than 1000 filenames
3549    (it's now limited by memory instead of having a hard-wired limit).
3550
3551 ### INTERNAL:
3552
3553  - Some cleanup in the exclude code has saved some per-exclude memory and made
3554    the code easier to maintain.
3555
3556  - Improved the argv-overflow checking for a remote command that has a lot of
3557    args.
3558
3559  - Use rsyserr() in the various places that were still calling rprintf() with
3560    strerror() as an arg.
3561
3562  - If an rsync daemon is listening on multiple sockets (to handle both IPv4 and
3563    IPv6 to a single port), we now close all the unneeded file handles after we
3564    accept a connection (we used to close just one of them).
3565
3566  - Optimized the handling of larger block sizes (rsync used to slow to a crawl
3567    if the block size got too large).
3568
3569  - Optimized away a loop in `hash_search()`.
3570
3571  - Some improvements to the `sanitize_path()` and `clean_fname()` functions
3572    makes them more efficient and produce better results (while still being
3573    compatible with the file-name cleaning that gets done on both sides when
3574    sending the file-list).
3575
3576  - Got rid of `alloc_sanitize_path()` after adding a destination-buffer arg to
3577    `sanitize_path()` made it possible to put all the former's functionality
3578    into the latter.
3579
3580  - The file-list that is output when at least 4 verbose options are specified
3581    reports the uid value on the sender even when rsync is not running as root
3582    (since we might be sending to a root receiver).
3583
3584 ### BUILD CHANGES:
3585
3586  - Added a `gen` target to rebuild most of the generated files, including
3587    configure, config.h.in, the man pages, and proto.h.
3588
3589  - If `make proto` doesn't find some changes in the prototypes, the proto.h
3590    file is left untouched (its time-stamp used to always be updated).
3591
3592  - The variable `$STRIP` (that is optionally set by the install-strip target's
3593    rule) was changed to `$INSTALL_STRIP` because some systems have `$STRIP`
3594    already set in the environment.
3595
3596  - Fixed a build problem when `SUPPORT_HARD_LINKS` isn't defined.
3597
3598  - When cross-compiling, the gettimeofday() function is now assumed to be a
3599    modern version that takes two-args (since we can't test it).
3600
3601 ### DEVELOPER RELATED:
3602
3603  - The scripts in the testsuite dir were cleaned up a bit and a few new tests
3604    added.
3605
3606  - Some new diffs were added to the patches dir, and some accepted ones were
3607    removed.
3608
3609 ------------------------------------------------------------------------------
3610 <a name="2.6.2"></a>
3611
3612 # NEWS for rsync 2.6.2 (30 Apr 2004)
3613
3614 ## Changes in this version:
3615
3616 ### BUG FIXES:
3617
3618  - Fixed a major bug in the sorting of the filenames when `--relative` is used
3619    for some sources (just sources such as `/` and `/*` were affected). This fix
3620    ensures that we ask for the right file-list item when requesting changes
3621    from the sender.
3622
3623  - Rsync now checks the return value of the close() function to better report
3624    disk-full problems on an NFS file system.
3625
3626  - Restored the old daemon-server behavior of logging error messages rather
3627    than returning them to the user. (A better long-term fix will be sought in
3628    the future.)
3629
3630  - An obscure uninitialized-variable bug was fixed in the uid/gid code. (This
3631    bug probably had no ill effects.)
3632
3633 ### BUILD CHANGES:
3634
3635  - Got rid of the configure check for sys/sysctl.h (it wasn't used and was
3636    causing a problem on some systems). Also improved the
3637    broken-largefile-locking test to try to avoid failure due to an NFS
3638    build-dir.
3639
3640  - Fixed a compile problem on systems that don't define `AI_NUMERICHOST`.
3641
3642  - Fixed a compile problem in the popt source for compilers that don't support
3643    `__attribute__`.
3644
3645 ### DEVELOPER RELATED:
3646
3647  - Improved the testsuite's `merge` test to work on OSF1.
3648
3649  - Two new diffs were added to the patches dir.
3650
3651 ------------------------------------------------------------------------------
3652 <a name="2.6.1"></a>
3653
3654 # NEWS for rsync 2.6.1 (26 Apr 2004)
3655
3656 ## Changes in this version:
3657
3658 ### PROTOCOL NUMBER:
3659
3660  - The protocol number was changed to 28.
3661
3662 ### SECURITY FIXES:
3663
3664  - Paths sent to an rsync daemon are more thoroughly sanitized when chroot is
3665    not used. If you're running a non-read-only rsync daemon with chroot
3666    disabled, **please upgrade**, ESPECIALLY if the user privs you run rsync
3667    under is anything above `nobody`.
3668
3669 ### ENHANCEMENTS:
3670
3671  - Lower memory use, more optimal transfer of data over the socket, and lower
3672    CPU usage (see the INTERNAL section for details).
3673
3674  - The `RSYNC_PROXY` environment variable can now contain a `USER:PASS@` prefix
3675    before the `HOST:PORT` information.  (Bardur Arantsson)
3676
3677  - The `--progress` output now mentions how far along in the transfer we are,
3678    including both a count of files transferred and a percentage of the total
3679    file-count that we've processed. It also shows better
3680    current-rate-of-transfer and remaining-transfer-time values.
3681
3682  - Documentation changes now attempt to describe some often misunderstood
3683    features more clearly.
3684
3685 ### BUG FIXES:
3686
3687  - When `-x` (`--one-file-system`) is combined with `-L` (`--copy-links`) or
3688    `--copy-unsafe-links,` no symlinked files are skipped, even if the referent
3689    file is on a different filesystem.
3690
3691  - The `--link-dest` code now works properly for a non-root user when (1) the
3692    UIDs of the source and destination differ and `-o` was specified, or (2)
3693    when the group of the source can't be used on the destination and `-g` was
3694    specified.
3695
3696  - Fixed a bug in the handling of `-H` (hard-links) that might cause the
3697    expanded PATH/NAME value of the current item to get overwritten (due to an
3698    expanded-name caching bug).
3699
3700  - We now reset the `new data has been sent` flag at the start of each file we
3701    send. This makes sure that an interrupted transfer with the `--partial`
3702    option set doesn't keep a shorter temp file than the current basis file when
3703    no new data has been transferred over the wire for that file.
3704
3705  - Fixed a byte-order problem in `--batch-mode` on big-endian machines.  (Jay
3706    Fenlason)
3707
3708  - When using `--cvs-exclude`, the exclude items we get from a per-directory's
3709    .cvsignore file once again only affect that one directory (not all following
3710    directories too). The items are also now properly word-split and parsed
3711    without any +/- prefix parsing.
3712
3713  - When specifying the USER@HOST: prefix for a file, the USER part can now
3714    contain an '@', if needed (i.e. the last '@' is used to find the HOST, not
3715    the first).
3716
3717  - Fixed some bugs in the handling of group IDs for non-root users: (1) It
3718    properly handles a group that the sender didn't have a name for (it would
3719    previously skip changing the group on any files in that group). (2) If
3720    `--numeric-ids` is used, rsync no longer attempts to set groups that the
3721    user doesn't have the permission to set.
3722
3723  - Fixed the `refuse options` setting in the rsyncd.conf file.
3724
3725  - Improved the `-x` (`--one-file-system`) flag's handling of any mount-point
3726    directories we encounter. It is both more optimal (in that it no longer does
3727    a useless scan of the contents of the mount-point dirs) and also fixes a
3728    bug where a remapped mount of the original filesystem could get discovered
3729    in a subdir we should be ignoring.
3730
3731  - Rsync no longer discards a double-slash at the start of a filename when
3732    trying to open the file. It also no longer constructs names that start with
3733    a double slash (unless the user supplied them).
3734
3735  - Path-specifying options to a daemon should now work the same with or without
3736    chroot turned on. Previously, such a option (such as `--link-dest`) would
3737    get its absolute path munged into a relative one if chroot was not on,
3738    making that setting fairly useless.  Rsync now transforms the path into one
3739    that is based on the module's base dir when chroot is not enabled.
3740
3741  - Fixed a compatibility problem interacting with older rsync versions that
3742    might send us an empty `--suffix` value without telling us that
3743    `--backup-dir` was specified.
3744
3745  - The `hosts allow` option for a daemon-over-remote-shell process now has
3746    improved support for IPv6 addresses and a fix for systems that have a length
3747    field in their socket structs.
3748
3749  - Fixed the ability to request an empty backup `--suffix` when sending files
3750    to an rsync daemon.
3751
3752  - Fixed an option-parsing bug when `--files-from` was sent to a server sender.
3753
3754 ### INTERNAL:
3755
3756  - Most of the I/O is now buffered, which results in a pretty large speedup
3757    when running under MS Windows. (Craig Barratt)
3758
3759  - Optimizations to the name-handling/comparing code have made some significant
3760    reductions in user-CPU time for large file sets.
3761
3762  - Some cleanup of the variable types make the code more consistent.
3763
3764  - Reduced memory requirements of hard link preservation.  (J.W. Schultz)
3765
3766  - Implemented a new algorithm for hard-link handling that speeds up the code
3767    significantly. (J.W. Schultz and Wayne Davison)
3768
3769  - The `--hard-link` option now uses the first existing file in the group of
3770    linked files as the basis for the transfer. This prevents the sub-optimal
3771    transfer of a file's data when a new hardlink is added on the sending side
3772    and it sorts alphabetically earlier in the list than the files that are
3773    already present on the receiving side.
3774
3775  - Dropped support for protocol versions less than 20 (2.3.0 released 15 Mar
3776    1999) and activated warnings for protocols less than 25 (2.5.0 released 23
3777    Aug 2001). (Wayne Davison and J.W. Schultz, severally)
3778
3779  - More optimal data transmission for `--hard-links` (protocol 28).
3780
3781  - More optimal data transmission for `--checksum` (protocol 28).
3782
3783  - Less memory is used when `--checksum` is specified.
3784
3785  - Less memory is used in the file list (a per-file savings).
3786
3787  - The generator is now better about not modifying the file list during the
3788    transfer in order to avoid a copy-on-write memory bifurcation (on systems
3789    where fork() uses shared memory).  Previously, rsync's shared memory would
3790    slowly become unshared, resulting in real memory usage nearly doubling on
3791    the receiving side by the end of the transfer. Now, as long as permissions
3792    are being preserved, the shared memory should remain that way for the entire
3793    transfer.
3794
3795  - Changed hardlink info and `file_struct` + strings to use allocation pools.
3796    This reduces memory use for large file-sets and permits freeing memory to
3797    the OS. (J.W. Schultz)
3798
3799  - The 2 pipes used between the receiver and generator processes (which are
3800    forked on the same machine) were reduced to 1 pipe and the protocol improved
3801    so that (1) it is now impossible to have the `redo` pipe fill up and hang
3802    rsync, and (2) trailing messages from the receiver don't get lost on their
3803    way through the generator over to the sender (which mainly affected
3804    hard-link messages and verbose `--stats` output).
3805
3806  - Improved the internal uid/gid code to be more portable and a little more
3807    optimized.
3808
3809  - The device numbers sent when using `--devices` are now sent as separate
3810    major/minor values with 32-bit accuracy (protocol 28).  Previously, the
3811    copied devices were sent as a single 32-bit number. This will make
3812    inter-operation of 64-bit binaries more compatible with their 32-bit
3813    brethren (with both ends of the connection are using protocol 28). Note that
3814    optimizations in the binary protocol for sending the device numbers often
3815    results in fewer bytes being used than before, even though more precision is
3816    now available.
3817
3818  - Some cleanup of the exclude/include structures and its code made things
3819    clearer (internally), simpler, and more efficient.
3820
3821  - The reading & writing of the file-list in batch-mode is now handled by the
3822    same code that sends & receives the list over the wire. This makes it much
3823    easier to maintain. (Note that the batch code is still considered to be
3824    experimental.)
3825
3826 ### BUILD CHANGES:
3827
3828  - The configure script now accepts `--with-rsyncd-conf=PATH` to override the
3829    default value of the /etc/rsyncd.conf file.
3830
3831  - Fixed configure bug when running `./configure --disable-ipv6`.
3832
3833  - Fixed compilation problem on Tru64 Unix (having to do with `sockaddr.sa_len`
3834    and `sockaddr.sin_len`).
3835
3836 ### DEVELOPER RELATED:
3837
3838  - Fixed `make test` bug when build dir is not the source dir.
3839
3840  - Added a couple extra diffs in the `patches` dir, removed the ones that got
3841    applied, and rebuilt the rest.
3842
3843 ------------------------------------------------------------------------------
3844 <a name="2.6.0"></a>
3845
3846 # NEWS for rsync 2.6.0 (1 Jan 2004)
3847
3848 ## Changes in this version:
3849
3850 ### PROTOCOL NUMBER:
3851
3852  - The protocol number was changed to 27.  The maximum accepted protocol number
3853    was increased from 30 to 40.
3854
3855 ### ENHANCEMENTS:
3856
3857  - `ssh` is now the default remote shell for rsync. If you want to change this,
3858    configure like this: `./configure --with-rsh=rsh`.
3859
3860  - Added `--files-from`, `--no-relative`, `--no-implied-dirs`, and `--from0`.
3861    Note that `--from0` affects the line-ending character for all the files read
3862    by the `--*-from` options. (Wayne Davison)
3863
3864  - Length of csum2 is now per-file starting with protocol version
3865    27. (J.W. Schultz)
3866
3867  - Per-file dynamic block size is now sqrt(file length). The per-file checksum
3868    size is determined according to an algorithm provided by Donovan Baarda
3869    which reduces the probability of rsync algorithm corrupting data and falling
3870    back using the whole md4 checksums. (J.W. Schultz, Donovan Baarda)
3871
3872  - The `--stats` option no longer includes the (debug) malloc summary unless
3873    the verbose option was specified at least twice.
3874
3875  - Added a new error/warning code for when files vanish from the sending side.
3876    Made vanished source files not interfere with the file-deletion pass when
3877    `--delete-after` was specified.
3878
3879  - Various trailing-info sections are now preceded by a newline.
3880
3881 ### BUG FIXES:
3882
3883  - Fixed several exclude/include matching bugs when using wild-cards.  This has
3884    a several user-visible effects, all of which make the matching more
3885    consistent and intuitive. This should hopefully not cause anyone problems
3886    since it makes the matching work more like what people are expecting. (Wayne
3887    Davison)
3888
3889  - A pattern with a `**` no longer causes a `*` to match slashes.  For example,
3890    with `/*/foo/**`, `foo` must be 2 levels deep.  [If your string has BOTH `*`
3891    and `**` wildcards, changing the `*` wildcards to `**` will provide the old
3892    behavior in all versions.]
3893
3894  - `**/foo` now matches at the base of the transfer (like /foo does). [Use
3895    `/**/foo` to get the old behavior in all versions.]
3896
3897  - A non-anchored wildcard term floats to match beyond the base of the
3898    transfer. E.g. `CVS/R*` matches at the end of the path, just like the
3899    non-wildcard term `CVS/Root` does. [Use `/CVS/R*` to get the old behavior in
3900    all versions.]
3901
3902  - Including a `**` in the match term causes it to be matched against the
3903    entire path, not just the name portion, even if there aren't any interior
3904    slashes in the term. E.g. `foo**bar` would exclude `/path/foo-bar` (just
3905    like before) as well as `/foo-path/baz-bar` (unlike before). [Use `foo*bar`
3906    to get the old behavior in all versions.]
3907
3908  - The exclude list specified in the daemon's config file is now properly
3909    applied to the pulled items no matter how deep the user's file-args are in
3910    the source tree. (Wayne Davison)
3911
3912  - For protocol version >= 27, `mdfour_tail()` is called when the block size
3913    (including `checksum_seed`) is a multiple of 64.  Previously it was not
3914    called, giving the wrong MD4 checksum.  (Craig Barratt)
3915
3916  - For protocol version >= 27, a 64 bit bit counter is used in mdfour.c as
3917    required by the RFC. Previously only a 32 bit bit counter was used, causing
3918    incorrect MD4 file checksums for file sizes >= 512MB - 4. (Craig Barratt)
3919
3920  - Fixed a crash bug when interacting with older rsync versions and multiple
3921    files of the same name are destined for the same dir.  (Wayne Davison)
3922
3923  - Keep tmp names from overflowing MAXPATHLEN.
3924
3925  - Make `--link-dest` honor the absence of `-p`, `-o`, and `-g`.
3926
3927  - Made rsync treat a trailing slash in the destination in a more consistent
3928    manner.
3929
3930  - Fixed file I/O error detection. (John Van Essen)
3931
3932  - Fixed bogus `malformed address {hostname}` message in rsyncd log when
3933    checking IP address against hostnames from `hosts allow` and `hosts deny`
3934    parameters in config file.
3935
3936  - Print heap statistics when verbose >= 2 instead of when >= 1.
3937
3938  - Fixed a compression (`-z`) bug when syncing a mostly-matching file that
3939    contains already-compressed data. (Yasuoka Masahiko and Wayne Davison)
3940
3941  - Fixed a bug in the `--backup` code that could cause deleted files to not get
3942    backed up.
3943
3944  - When the backup code makes new directories, create them with mode 0700
3945    instead of 0755 (since the directory permissions in the backup tree are not
3946    yet copied from the main tree).
3947
3948  - Call setgroups() in a more portable manner.
3949
3950  - Improved file-related error messages to better indicate exactly what
3951    pathname failed. (Wayne Davison)
3952
3953  - Fixed some bugs in the handling of `--delete` and `--exclude` when using the
3954    `--relative` (`-R`) option. (Wayne Davison)
3955
3956  - Fixed bug that prevented regular files from replacing special files and
3957    caused a directory in `--link-dest` or `--compare-dest` to block the
3958    creation of a file with the same path. A directory still cannot be replaced
3959    by a regular file unless `--delete` specified. (J.W. Schultz)
3960
3961  - Detect and report when open or opendir succeed but read and readdir fail
3962    caused by network filesystem issues and truncated files. (David Norwood,
3963    Michael Brown, J.W. Schultz)
3964
3965  - Added a fix that should give ssh time to restore the tty settings if the
3966    user presses Ctrl-C at an ssh password prompt.
3967
3968 ### INTERNAL:
3969
3970  - Eliminated vestigial support for old versions that we stopped supporting.
3971    (J.W. Schultz)
3972
3973  - Simplified some of the option-parsing code. (Wayne Davison)
3974
3975  - Some cleanup made to the exclude code, as well as some new defines added to
3976    enhance readability. (Wayne Davison)
3977
3978  - Changed the protocol-version code so that it can interact at a lower
3979    protocol level than the maximum supported by both sides.  Added an
3980    undocumented option, `--protocol=N`, to force the value we advertise to the
3981    other side (primarily for testing purposes).  (Wayne Davison)
3982
3983 ------------------------------------------------------------------------------
3984 <a name="2.5.7"></a>
3985
3986 # NEWS for rsync 2.5.7 (4 Dec 2003)
3987
3988 ## Changes in this version:
3989
3990 ### SECURITY FIXES:
3991
3992  - Fix buffer handling bugs. (Andrew Tridgell, Martin Pool, Paul Russell,
3993    Andrea Barisani)
3994
3995 ------------------------------------------------------------------------------
3996 <a name="2.5.6"></a>
3997
3998 # NEWS for rsync 2.5.6, aka "the dwd-between-jobs release" (26 Jan 2003)
3999
4000 ## Changes in this version:
4001
4002 ### ENHANCEMENTS:
4003
4004  - The `--delete-after` option now implies `--delete`. (Wayne Davison)
4005
4006  - The `--suffix` option can now be used with `--backup-dir`. (Michael
4007    Zimmerman)
4008
4009  - Combining `::` syntax with the `--rsh`/`-e` option now uses the specified
4010    remote-shell as a transport to talk to a (newly-spawned) server-daemon. This
4011    allows someone to use daemon features, such as modules, over a secure
4012    protocol, such as ssh. (JD Paul)
4013
4014  - The rsync:// syntax for daemon connections is now accepted in the
4015    destination field.
4016
4017  - If the file name given to `--include-from` or `--exclude-from` is `-`, rsync
4018    will read from standard input. (J.W. Schultz)
4019
4020  - New option `--link-dest` which is like `--compare-dest` except that
4021    unchanged files are hard-linked in to the destination directory.  (J.W.
4022    Schultz)
4023
4024  - Don't report an error if an excluded file disappears during an rsync run.
4025    (Eugene Chupriyanov and Bo Kersey)
4026
4027  - Added .svn to `--cvs-exclude` list to support subversion. (Jon Middleton)
4028
4029  - Properly support IPv6 addresses in the rsyncd.conf `hosts allow` and `hosts
4030    deny` fields. (Hideaki Yoshifuji)
4031
4032  - Changed exclude file handling to permit DOS or MAC style line terminations.
4033    (J.W. Schultz)
4034
4035  - Ignore errors from chmod when `-p`/`-a`/`--preserve-perms` is not set.
4036    (Dave Dykstra)
4037
4038 ### BUG FIXES:
4039
4040  - Fix `forward name lookup failed` errors on AIX 4.3.3. (John L. Allen, Martin
4041    Pool)
4042
4043  - Generate each file's rolling-checksum data as we send it, not in a separate
4044    (memory-eating) pass before hand. This prevents timeout errors on really
4045    large files. (Stefan Nehlsen)
4046
4047  - Fix compilation on Tru64. (Albert Chin, Zoong Pham)
4048
4049  - Better handling of some client-server errors. (Martin Pool)
4050
4051  - Fixed a crash that would occur when sending a list of files that contains a
4052    duplicate name (if it sorts to the end of the file list) and using
4053    `--delete`. (Wayne Davison)
4054
4055  - Fixed the file-name duplicate-removal code when dealing with multiple dups
4056    in a row. (Wayne Davison)
4057
4058  - Fixed a bug that caused rsync to lose the exit status of its child processes
4059    and sometimes return an exit code of 0 instead of showing an error. (David
4060    R. Staples, Dave Dykstra)
4061
4062  - Fixed bug in `--copy-unsafe-links` that caused it to be completely broken.
4063    (Dave Dykstra)
4064
4065  - Prevent infinite recursion in cleanup code under certain circumstances.
4066    (Sviatoslav Sviridov and Marc Espie)
4067
4068  - Fixed a bug that prevented rsync from creating intervening directories when
4069    `--relative-paths`/`-R` is set. (Craig Barratt)
4070
4071  - Prevent `Connection reset by peer` messages from Cygwin. (Randy O'Meara)
4072
4073 ### INTERNAL:
4074
4075  - Many code cleanups and improved internal documentation. (Martin Pool, Nelson
4076    Beebe)
4077
4078  - Portability fixes. (Dave Dykstra and Wayne Davison)
4079
4080  - More test cases. (Martin Pool)
4081
4082  - Some test-case fixes. (Brian Poole, Wayne Davison)
4083
4084  - Updated included popt to the latest vendor drop, version 1.6.4.  (Jos
4085    Backus)
4086
4087  - Updated config.guess and config.sub to latest versions; this means rsync
4088    should build on more platforms. (Paul Green)
4089
4090 ------------------------------------------------------------------------------
4091 <a name="2.5.5"></a>
4092
4093 # NEWS for rsync 2.5.5, aka Snowy River (2 Apr 2002)
4094
4095 ## Changes in this version:
4096
4097 ### ENHANCEMENTS:
4098
4099  - With `--progress`, when a transfer is complete show the time taken;
4100    otherwise show expected time to complete. (Cameron Simpson)
4101
4102  - Make `make install-strip` works properly, and `make install` accepts a
4103    DESTDIR variable for help in building binary packages.  (Peter
4104    Breitenlohner, Greg Louis)
4105
4106  - If configured with `--enable-maintainer-mode`, then on receipt of a fatal
4107    signal rsync will try to open an xterm running gdb, similarly to Samba's
4108    `panic action` or GNOME's bug-buddy.  (Martin Pool)
4109
4110 ### BUG FIXES:
4111
4112  - Fix situation where failure to fork (e.g. because out of process slots)
4113    would cause rsync to kill all processes owned by the current user. Yes,
4114    really! (Paul Haas, Martin Pool)
4115
4116  - Fix test suite on Solaris. (Jos Backus, Martin Pool)
4117
4118  - Fix minor memory leak in socket code. (Dave Dykstra, Martin Pool.)
4119
4120  - Fix `--whole-file` problem that caused it to be the default even for remote
4121    connections. (Martin Pool, Frank Schulz)
4122
4123  - Work around bug in Mac OS X mkdir(2), which cannot handle trailing slashes.
4124    <http://www.opensource.apple.com/bugs/X/BSD%20Kernel/2734739.html> (Martin
4125    Pool)
4126
4127  - Improved network error handling. (Greg A. Woods)
4128
4129 ------------------------------------------------------------------------------
4130 <a name="2.5.4"></a>
4131
4132 # NEWS for rsync 2.5.4, aka "Imitation lizard skin" (13 Mar 2002)
4133
4134 ## Changes in this version:
4135
4136 ### BUG FIXES:
4137
4138  - Additional fix for zlib double-free bug. (Martin Pool, Andrew Tridgell) (CVE
4139    CAN-2002-0059)
4140
4141 ### ENHANCEMENTS:
4142
4143  - Merge in changes from zlib 1.1.3 to zlib 1.1.4. (Jos Backus) (Note that
4144    rsync still uses a custom version of zlib; you can not just link against a
4145    system library. See zlib/README.rsync)
4146
4147  - Additional test cases for `--compress`. (Martin Pool)
4148
4149 ------------------------------------------------------------------------------
4150 <a name="2.5.3"></a>
4151
4152 # NEWS for rsync 2.5.3, aka "Happy 26" (11 Mar 2002)
4153
4154 ## Changes in this version:
4155
4156 ### SECURITY FIXES:
4157
4158  - Make sure that supplementary groups are removed from a server
4159    process after changing uid and gid. (Ethan Benson) (Debian bug
4160    #132272, CVE CAN-2002-0080)
4161
4162 ### BUG FIXES:
4163
4164  - Fix zlib double-free bug. (Owen Taylor, Mark J Cox) (CVE CAN-2002-0059)
4165
4166  - Fixed problem that in many cases caused the error message unexpected read
4167    size of 0 in `map_ptr` and resulted in the wrong data being copied.
4168
4169  - Fixed compilation errors on some systems caused by the use of `unsigned
4170    int64` in rsync.h.
4171
4172  - Fixed problem on systems such as Sunos4 that do not support realloc on a
4173    NULL pointer; error was 'out of memory in "flist_expand"'.
4174
4175  - Fix for rsync server processes hanging around after the client unexpectedly
4176    disconnects. (Colin Walters) (Debian bug #128632)
4177
4178  - Cope with BSD systems on which mkdir() will not accept a trailing slash.
4179
4180 ### ENHANCEMENTS:
4181
4182  - Merge in changes from zlib 1.1.2 to zlib 1.1.3. (Note that rsync still uses
4183    a custom version of zlib; you can not just link against a system library.
4184    See zlib/README.rsync)
4185
4186  - Command to initiate connections is only shown with `-vv`, rather than `-v`
4187    as in 2.5.2. Output from plain `-v` is more similar to what was historically
4188    used so as not to break scripts that try to parse the output.
4189
4190  - Added `--no-whole-file` and `--no-blocking-io` options (Dave Dykstra)
4191
4192  - Made the `--write-batch` and `--read-batch` options actually work and added
4193    documentation in the man page (Jos Backus)
4194
4195  - If the daemon is unable to fork a child to accept a connection, print an
4196    error message. (Colin Walters)
4197
4198 ------------------------------------------------------------------------------
4199 <a name="2.5.2"></a>
4200
4201 # NEWS for rsync 2.5.2 (26 Jan 2002)
4202
4203 ## Changes in this version:
4204
4205 ### SECURITY FIXES:
4206
4207  - Signedness security patch from Sebastian Krahmer <krahmer@suse.de> -- in
4208    some cases we were not sufficiently careful about reading integers from the
4209    network.
4210
4211 ### PROTOCOL NUMBER:
4212
4213  - The protocol number was changed to 26.
4214
4215 ### BUG FIXES:
4216
4217  - Fix possible string mangling in log files.
4218
4219  - Fix for setting local address of outgoing sockets.
4220
4221  - Better handling of hardlinks and devices on platforms with 64-bit `dev_t` or
4222    `ino_t`.
4223
4224  - Name resolution on machines supporting IPv6 is improved.
4225
4226  - Fix for device nodes. (dann frazier) (Debian #129135)
4227
4228 ### ENHANCEMENTS:
4229
4230  - With `-v`, rsync now shows the command used to initiate an ssh/rsh
4231    connection.
4232
4233  - `--statistics` now shows memory heap usage on platforms that support
4234    mallinfo().
4235
4236  - "The Ted T'so school of program optimization": make progress visible and
4237    people will think it's faster. (With `--progress`, rsync will show you how
4238    many files it has seen as it builds the `file_list`, giving some indication
4239    that it has not hung.)
4240
4241  - Improvements to batch mode support. This is still experimental but testing
4242    would be welcome. (Jos Backus)
4243
4244  - New `--ignore-existing` option, patch previously distributed with Vipul's
4245    Razor. (Debian #124286)
4246
4247 ------------------------------------------------------------------------------
4248 <a name="2.5.1"></a>
4249
4250 # NEWS for rsync 2.5.1 (3 Jan 2002)
4251
4252 ## Changes in this version:
4253
4254 ### BUG FIXES:
4255
4256  - Fix for segfault in `--daemon` mode configuration parser. (Paul Mackerras)
4257
4258  - Correct `string<->address` parsing for both IPv4 and 6.  (YOSHIFUJI Hideaki,
4259    SUMIKAWA Munechika and Jun-ichiro `itojun` Hagino)
4260
4261  - Various fixes for IPv6 support. (Dave Dykstra)
4262
4263  - rsync.1 typo fix. (Matt Kraai)
4264
4265  - Test suite typo fixes. (Tom Schmidt)
4266
4267  - rsync.1 grammar and clarity improvements. (Edward Welbourne)
4268
4269  - Correction to ./configure tests for `inet_ntop`. (Jeff Garzik)
4270
4271 ### ENHANCEMENTS:
4272
4273  - `--progress` and `-P` now show estimated data transfer rate (in a multiple
4274    of bytes/s) and estimated time to completion. (Rik Faith)
4275
4276  - `--no-detach` option, required to run as a W32 service and also useful when
4277    running on Unix under daemontools, AIX's SRC, or a debugger. (Max Bowsher,
4278    Jos Backus)
4279
4280  - Clearer error messages for some conditions.
4281
4282 ------------------------------------------------------------------------------
4283 <a name="2.5.0"></a>
4284
4285 # NEWS for rsync 2.5.0 (30 Nov 2001)
4286
4287 ## Changes in this version:
4288
4289 ### PROTOCOL NUMBER:
4290
4291  - The protocol number was changed to 25.
4292
4293 ### ANNOUNCEMENTS:
4294
4295  - Martin Pool <mbp@samba.org> is now a co-maintainer.
4296
4297 ### NEW FEATURES:
4298
4299  - Support for LSB-compliant packaging <http://www.linuxbase.org/>
4300
4301  - Shell wildcards are allowed in `auth users` lines.
4302
4303  - Merged UNC rsync+ patch to support creation of standalone patch sets. By
4304    Bert J. Dempsey and Debra Weiss, updated by Jos Backus.
4305    <http://www.ils.unc.edu/i2dsi/unc_rsync+.html>
4306
4307  - IPv6 support based on a patch from KAME.net, on systems including modern
4308    versions of Linux, Solaris, and HP-UX. Also includes IPv6 compatibility
4309    functions for old OSs by the Internet Software Consortium, Paul Vixie, the
4310    OpenSSH portability project, and OpenBSD.
4311
4312 ### ENHANCEMENTS:
4313
4314  - Include/exclude cluestick: with `-vv`, print out whether files are included
4315    or excluded and why.
4316
4317  - Many error messages have more friendly explanations and more details.
4318
4319  - Manual page improvements plus scanty protocol documentation.
4320
4321  - When running as `--daemon` in the background and using a `log file`
4322    rsyncd.conf directive, close the log file every time it is open when going
4323    to sleep on the socket. This allows the log file to get cleaned out by
4324    another process.
4325
4326  - Change to using libpopt rather than getopt for processing options. This
4327    makes the code cleaner and the behaviour more consistent across platforms.
4328    popt is included and built if not installed on the platform.
4329
4330  - More details in `--version`, including note about whether 64-bit files,
4331    symlinks and hardlinks are supported.
4332
4333  - MD4 code may use less CPU cycles.
4334
4335  - Use mkstemp on systems where it is secure. If we use mktemp, explain that we
4336    do it in a secure way.
4337
4338  - `--whole-file` is the default when source and target are on the local
4339    machine.
4340
4341 ### BUG FIXES:
4342
4343  - Fix for various bugs causing rsync to hang.
4344
4345  - Attempt to fix Large File Summit support on AIX.
4346
4347  - Attempt to fix error handling lockup bug.
4348
4349  - Give a non-0 exit code if **any** of the files we have been asked to
4350    transfer fail to transfer.
4351
4352  - For log messages containing ridiculously long strings that might overflow a
4353    buffer rsync no longer aborts, but rather prints an ellipsis at the end of
4354    the string. (Patch from Ed Santiago.)
4355
4356 ### PLATFORMS:
4357
4358  - Improved support for UNICOS (tested on Cray T3E and Cray SV1)
4359
4360  - autoconf2.52 (or later) is now required to rebuild the autoconf scripts. It
4361    is not required to simply build rsync.
4362
4363  - Platforms thought to work in this release:
4364
4365    - Cray SV1 UNICOS 10.0.0.8 cc
4366    - Debian Linux 2.2 UltraSparc gcc
4367    - Debian Linux testing/unstable ARM gcc
4368    - FreeBSD 3.3-RELEASE i386 cc
4369    - FreeBSD 4.1.1-RELEASE i386 cc
4370    - FreeBSD 4.3-STABLE i386 cc
4371    - HP PA-RISC HP-UX 10.20 gcc
4372    - HP PA-RISC HP-UX 11.11 cc
4373    - IRIX 6.5 MIPS cc
4374    - IRIX 6.5 MIPS gcc
4375    - Mac OS X PPC (`--disable-ipv6`) cc
4376    - NetBSD 1.5 i386 gcc
4377    - NetBSD Current i386 cc
4378    - OpenBSD 2.5 Sparc gcc
4379    - OpenBSD 2.9 i386 cc
4380    - OpenBSD Current i386 cc
4381    - RedHat 6.2 i386 gcc
4382    - RedHat 6.2 i386 insure++
4383    - RedHat 7.0 i386 gcc
4384    - RedHat 7.1 i386 (Kernel 2.4.10) gcc
4385    - Slackware 8.0 i686 (Kernel 2.4.10)
4386    - Solaris 8 UltraSparc cc
4387    - Solaris 8 UltraSparc gcc
4388    - Solaris 8 i386 gcc
4389    - SuSE 7.1 i386 gcc2.95.2
4390    - SuSE 7.1 ppc gcc2.95.2
4391    - i386-pc-sco3.2v5.0.5 cc
4392    - i386-pc-sco3.2v5.0.5 gcc
4393    - powerpc-ibm-aix4.3.3.0 cc
4394    - i686-unknown-sysv5UnixWare7.1.0 gcc
4395    - i686-unknown-sysv5UnixWare7.1.0 cc
4396
4397 ### TESTING:
4398
4399  - The existing test.sh script by Phil Hands has been merged into a
4400    test framework that works from both `make check` and the Samba
4401    build farm.
4402
4403 ------------------------------------------------------------------------------
4404
4405 ## Partial Protocol History
4406
4407 | RELEASE DATE | VER.   | DATE OF COMMIT\* | PROTOCOL    |
4408 |--------------|--------|------------------|-------------|
4409 | ?? Sep 2020  | 3.2.4  |                  | 31          |
4410 | 06 Aug 2020  | 3.2.3  |                  | 31          |
4411 | 04 Jul 2020  | 3.2.2  |                  | 31          |
4412 | 22 Jun 2020  | 3.2.1  |                  | 31          |
4413 | 19 Jun 2020  | 3.2.0  |                  | 31          |
4414 | 28 Jan 2018  | 3.1.3  |                  | 31          |
4415 | 21 Dec 2015  | 3.1.2  |                  | 31          |
4416 | 22 Jun 2014  | 3.1.1  |                  | 31          |
4417 | 28 Sep 2013  | 3.1.0  | 31 Aug 2008      | 31          |
4418 | 23 Sep 2011  | 3.0.9  |                  | 30          |
4419 | 26 Mar 2011  | 3.0.8  |                  | 30          |
4420 | 31 Dec 2009  | 3.0.7  |                  | 30          |
4421 | 08 May 2009  | 3.0.6  |                  | 30          |
4422 | 28 Dec 2008  | 3.0.5  |                  | 30          |
4423 | 06 Sep 2008  | 3.0.4  |                  | 30          |
4424 | 29 Jun 2008  | 3.0.3  |                  | 30          |
4425 | 08 Apr 2008  | 3.0.2  |                  | 30          |
4426 | 03 Apr 2008  | 3.0.1  |                  | 30          |
4427 | 01 Mar 2008  | 3.0.0  | 11 Nov 2006      | 30          |
4428 | 06 Nov 2006  | 2.6.9  |                  | 29          |
4429 | 22 Apr 2006  | 2.6.8  |                  | 29          |
4430 | 11 Mar 2006  | 2.6.7  |                  | 29          |
4431 | 28 Jul 2005  | 2.6.6  |                  | 29          |
4432 | 01 Jun 2005  | 2.6.5  |                  | 29          |
4433 | 30 Mar 2005  | 2.6.4  | 17 Jan 2005      | 29          |
4434 | 30 Sep 2004  | 2.6.3  |                  | 28          |
4435 | 30 Apr 2004  | 2.6.2  |                  | 28          |
4436 | 26 Apr 2004  | 2.6.1  | 08 Jan 2004      | 28          |
4437 | 01 Jan 2004  | 2.6.0  | 10 Apr 2003      | 27 (MAX=40) |
4438 | 04 Dec 2003  | 2.5.7  |                  | 26          |
4439 | 26 Jan 2003  | 2.5.6  |                  | 26          |
4440 | 02 Apr 2002  | 2.5.5  |                  | 26          |
4441 | 13 Mar 2002  | 2.5.4  |                  | 26          |
4442 | 11 Mar 2002  | 2.5.3  |                  | 26          |
4443 | 26 Jan 2002  | 2.5.2  | 11 Jan 2002      | 26          |
4444 | 03 Jan 2002  | 2.5.1  |                  | 25          |
4445 | 30 Nov 2001  | 2.5.0  | 23 Aug 2001      | 25          |
4446 | 06 Sep 2000  | 2.4.6  |                  | 24          |
4447 | 19 Aug 2000  | 2.4.5  |                  | 24          |
4448 | 29 Jul 2000  | 2.4.4  |                  | 24          |
4449 | 09 Apr 2000  | 2.4.3  |                  | 24          |
4450 | 30 Mar 2000  | 2.4.2  |                  | 24          |
4451 | 30 Jan 2000  | 2.4.1  | 29 Jan 2000      | 24          |
4452 | 29 Jan 2000  | 2.4.0  | 28 Jan 2000      | 23          |
4453 | 25 Jan 2000  | 2.3.3  | 23 Jan 2000      | 22          |
4454 | 08 Nov 1999  | 2.3.2  | 26 Jun 1999      | 21          |
4455 | 06 Apr 1999  | 2.3.1  |                  | 20          |
4456 | 15 Mar 1999  | 2.3.0  | 15 Mar 1999      | 20          |
4457 | 25 Nov 1998  | 2.2.1  |                  | 19          |
4458 | 03 Nov 1998  | 2.2.0  |                  | 19          |
4459 | 09 Sep 1998  | 2.1.1  |                  | 19          |
4460 | 20 Jul 1998  | 2.1.0  |                  | 19          |
4461 | 17 Jul 1998  | 2.0.19 |                  | 19          |
4462 | 18 Jun 1998  | 2.0.17 |                  | 19          |
4463 | 01 Jun 1998  | 2.0.16 |                  | 19          |
4464 | 27 May 1998  | 2.0.13 | 27 May 1998      | 19          |
4465 | 26 May 1998  | 2.0.12 |                  | 18          |
4466 | 22 May 1998  | 2.0.11 |                  | 18          |
4467 | 18 May 1998  | 2.0.9  | 18 May 1998      | 18          |
4468 | 17 May 1998  | 2.0.8  |                  | 17          |
4469 | 15 May 1998  | 2.0.1  |                  | 17          |
4470 | 14 May 1998  | 2.0.0  |                  | 17          |
4471 | 17 Apr 1998  | 1.7.4  |                  | 17          |
4472 | 13 Apr 1998  | 1.7.3  |                  | 17          |
4473 | 05 Apr 1998  | 1.7.2  |                  | 17          |
4474 | 26 Mar 1998  | 1.7.1  |                  | 17          |
4475 | 26 Mar 1998  | 1.7.0  | 26 Mar 1998      | 17 (MAX=30) |
4476 | 13 Jan 1998  | 1.6.9  | 13 Jan 1998      | 15 (MAX=20) |
4477
4478 \* DATE OF COMMIT is the date the protocol change was committed to version
4479 control.
4480
4481 @USE_GFM_PARSER@