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