Fixed several issues with preserving xattrs when using --backup.
[rsync/rsync.git] / OLDNEWS
1 NEWS for rsync 3.0.2 (8 Apr 2008)
2 Protocol: 30 (unchanged)
3 Changes since 3.0.1:
4
5   BUG FIXES:
6
7     - Fixed a potential buffer overflow in the xattr code.
8
9   ENHANCEMENTS:
10
11     - None.
12
13   DEVELOPER RELATED:
14
15     - The RPM spec file was improved to install more useful files.
16
17     - A few developer-oriented scripts were moved from the support dir
18       to the packaging dir.
19
20 \f
21 NEWS for rsync 3.0.1 (3 Apr 2008)
22 Protocol: 30 (unchanged)
23 Changes since 3.0.0:
24
25   NOTABLE CHANGES IN BEHAVIOR:
26
27     - Added the 'c'-flag to the itemizing of non-regular files so that the
28       itemized output doesn't get hidden if there were no attribute changes,
29       and also so that the itemizing of a --copy-links run will distinguish
30       between copying an identical non-regular file and the creation of a
31       revised version with a new value (e.g. a changed symlink referent, a
32       new device number, etc.).
33
34   BUG FIXES:
35
36     - Fixed a crash bug when a single-use rsync daemon (via remote shell) was
37       run without specifying a --config=FILE option.
38
39     - Fixed a crash when backing up a directory that has a default ACL.
40
41     - Fixed a bug in the handling of xattr values that could cause rsync to
42       not think that a file's extended attributes are up-to-date.
43
44     - Fixed the working of --fake-super with --link-dest and --xattrs.
45
46     - Fixed a hang when combining --dry-run with --remove-source-files.
47
48     - Fixed a bug with --iconv's handling of files that cannot be converted:
49       a failed name can no longer cause a transfer failure.
50
51     - Fixed the building of the rounding.h file on systems that need custom
52       CPPFLAGS to be used.  Also improved the error reporting if the building
53       of rounding.h fails.
54
55     - Fixed the use of the --protect-args (-s) option when talking to a daemon.
56
57     - Fixed the --ignore-existing option's protection of files on the receiver
58       that are non-regular files on the sender (e.g. if a symlink or a dir on
59       the sender is trying to replace a file on the receiver).  The reverse
60       protection (protecting a dir/symlink/device from being replaced by a
61       file) was already working.
62
63     - Fixed an assert failure if --hard-links is combined with an option that
64       can skip a file in a set of hard-linked files (i.e. --ignore-existing,
65       --append, etc.), without skipping all the files in the set.
66
67     - Avoid setting the modify time on a directory that already has the right
68       modify time set.  This avoids tweaking the dir's ctime.
69
70     - Improved the daemon-exclude handling to do a better job of applying the
71       exclude rules to path entries.  It also sends the user an error just as
72       if the files were actually missing (instead of silently ignoring the
73       user's args), and avoids sending the user the filter-action messages
74       for these non-user-initiated rules.
75
76     - Fixed some glitches with the dry-run code's missing-directory
77       handling, including a problem when combined with --fuzzy.
78
79     - Fixed some glitches with the skipped-directory handling.
80
81     - Fixed the 'T'-flag itemizing of symlinks when --time isn't preserved.
82
83     - Fixed a glitch in the itemizing of permissions with the -E option.
84
85     - The --append option's restricting of transfers to those that add data no
86       longer prevents the updating of non-content changes to otherwise up-to-
87       date files (i.e. those with the same content but differing permissions,
88       ownership, xattrs, etc.).
89
90     - Don't allow --fake-super to be specified with -XX (double --xattrs)
91       because the options conflict.  If a daemon has "fake super" enabled,
92       it automatically downgrades a -XX request to -X.
93
94     - Fixed a couple bugs in the parsing of daemon-config excludes that could
95       make a floating exclude rule get treated as matching an absolute path.
96
97     - A daemon doesn't try to auto-refuse the "iconv" option if iconv-support
98       wasn't compiled in to the daemon (avoiding a warning in the logs).
99
100     - Fixed the inclusion of per-dir merge files from implied dirs.
101
102     - Fixed the support/rrsync script to work with the latest options that
103       rsync sends (including its flag-specifying use of -e to the server).
104
105   ENHANCEMENTS:
106
107     - Added the --old-dirs (--old-d) option to make it easier for a user to
108       ask for file-listings with older rsync versions (this is easier than
109       having to type "-r --exclude='/*/*'" manually).
110
111     - When getting an error while asking an older rsync daemon for a file
112       listing, rsync will try to notice if the error is a rejection of the
113       --dirs (-d) option and let the user know how to work around the issue.
114
115     - Added a few more --no-OPTION overrides.
116
117     - Improved the documentation of the --append option.
118
119     - Improved the documentation of the filter/exclude/include daemon
120       parameters.
121
122   INTERNAL:
123
124     - Fixed a couple minor bugs in the included popt library (ones which I
125       sent to the official popt project for inclusion in the 1.14 release).
126
127     - Fixed a stat() call that should have been do_stat() so that the proper
128       normal/64-bit stat() function gets called.  (Was in an area that should
129       not have caused problems, though.)
130
131     - Changed the file-glob code to do a directory scan without using the
132       "glob" and "glob.h".  This lets us do the globbing with less memory
133       churn, and also avoid adding daemon-excluded items to the returned
134       args.
135
136   DEVELOPER RELATED:
137
138     - The configure script tries to get the user's compiler to not warn about
139       unused function parameters if the build is not including one or more of
140       the ACL/xattrs/iconv features.
141
142     - The configure script now has better checks for figuring out if the
143       included popt code should be used or not.
144
145     - Fixed two testsuite glitches: avoid a failure if someone's "cd" command
146       outputs the current directory when cd-ing to a relative path, and made
147       the itemized test query how rsync was built to determine if it should
148       expect hard-linked symlinks or not.
149
150     - Updated the testsuite to verify that various bug fixes remain fixed.
151
152     - The RPM spec file was updated to have: (1) comments for how to use the
153       rsync-patch tar file, and (2) an /etc/xinetd.d/rsync file.
154
155     - Updated the build scripts to work with a revised FTP directory
156       structure.
157
158 \f
159 NEWS for rsync 3.0.0 (1 Mar 2008)
160 Protocol: 30 (changed)
161 Changes since 2.6.9:
162
163   NOTABLE CHANGES IN BEHAVIOR:
164
165     - The handling of implied directories when using --relative has changed to
166       send them as directories (e.g. no implied dir is ever sent as a symlink).
167       This avoids unexpected behavior and should not adversely affect most
168       people.  If you're one of those rare individuals who relied upon having
169       an implied dir be duplicated as a symlink, you should specify the
170       transfer of the symlink and the transfer of the referent directory as
171       separate args.  (See also --keep-dirlinks and --no-implied-dirs.)
172       Also, exclude rules no longer have a partial effect on implied dirs.
173
174     - Requesting a remote file-listing without specifying -r (--recursive) now
175       sends the -d (--dirs) option to the remote rsync rather than sending -r
176       along with an extra exclude of /*/*.  If the remote rsync does not
177       understand the -d option (i.e. it is 2.6.3 or older), you will need to
178       either turn off -d (--no-d), or specify  -r --exclude='/*/*'  manually.
179
180     - In --dry-run mode, the last line of the verbose summary text is output
181       with a "(DRY RUN)" suffix to help remind you that no updates were made.
182       Similarly, --only-write-batch outputs "(BATCH ONLY)".
183
184     - A writable rsync daemon with "use chroot" disabled now defaults to a
185       symlink-munging behavior designed to make symlinks safer while also
186       allowing absolute symlinks to be stored and retrieved.  This also has
187       the effect of making symlinks unusable while they're in the daemon's
188       hierarchy.  See the daemon's "munge symlinks" parameter for details.
189
190     - Starting up an extra copy of an rsync daemon will not clobber the pidfile
191       for the running daemon -- if the pidfile exists, the new daemon will exit
192       with an error.  This means that your wrapper script that starts the rsync
193       daemon should be made to handle lock-breaking (if you want any automatic
194       breaking of locks to be done).
195
196   BUG FIXES:
197
198     - A daemon with "use chroot = no" and excluded items listed in the daemon
199       config file now properly checks an absolute-path arg specified for these
200       options:  --compare-dest, --link-dest, --copy-dest, --partial-dir,
201       --backup-dir, --temp-dir, and --files-from.
202
203     - A daemon can now be told to disable all user- and group-name translation
204       on a per-module basis.  This avoids a potential problem with a writable
205       daemon module that has "use chroot" enabled -- if precautions weren't
206       taken, a user could try to add a missing library and get rsync to use
207       it.  This makes rsync safer by default, and more configurable when id-
208       translation is not desired.  See the daemon's "numeric ids" parameter
209       for full details.
210
211     - A chroot daemon can now indicate which part of its path should affect the
212       chroot call, and which part should become an inside-chroot path for the
213       module.  This allows you to have outside-the-transfer paths (such as for
214       libraries) even when you enable chroot protection.  The idiom used in the
215       rsyncd.conf file is:  path = /chroot/dirs/./dirs/inside
216
217     - If a file's data arrived successfully on the receiving side but the
218       rename of the temporary file to the destination file failed AND the
219       --remove-source-files (or the deprecated --remove-sent-files) option
220       was specified, rsync no longer erroneously removes the associated
221       source file.
222
223     - Fixed the output of -ii when combined with one of the --*-dest options:
224       it now itemizes all the items, not just the changed ones.
225
226     - Made the output of all file types consistent when using a --*-dest
227       option.  Prior versions would output too many creation events for
228       matching items.
229
230     - The code that waits for a child pid now handles being interrupted by a
231       signal.  This fixes a problem with the pre-xfer exec function not being
232       able to get the exit status from the script.
233
234     - A negated filter rule (i.e. with a '!' modifier) no longer loses the
235       negation when sending the filter rules to the remote rsync.
236
237     - Fixed a problem with the --out-format (aka --log-format) option %f:  it
238       no longer outputs superfluous directory info for a non-daemon rsync.
239
240     - Fixed a problem with -vv (double --verbose) and --stats when "pushing"
241       files (which includes local copies).  Version 2.6.9 would complete the
242       copy, but exit with an error when the receiver output its memory stats.
243
244     - If --password-file is used on a non-daemon transfer, rsync now complains
245       and exits.  This should help users figure out that they can't use this
246       option to control a remote shell's password prompt.
247
248     - Make sure that directory permissions of a newly-created destination
249       directory are handled right when --perms is left off.
250
251     - The itemized output of a newly-created destination directory is now
252       output as a creation event, not a change event.
253
254     - Improved --hard-link so that more corner cases are handled correctly
255       when combined with options such as --link-dest and/or --ignore-existing.
256
257     - The --append option no longer updates a file that has the same size.
258
259     - Fixed a bug when combining --backup and --backup-dir with --inplace:
260       any missing backup directories are now created.
261
262     - Fixed a bug when using --backup and --inplace with --whole-file or
263       --read-batch: backup files are actually created now.
264
265     - The daemon pidfile is checked and created sooner in the startup sequence.
266
267     - If a daemon module's "path" value is not an absolute pathname, the code
268       now makes it absolute internally (making it work properly).
269
270     - Ensure that a temporary file always has owner-write permission while we
271       are writing to it.  This avoids problems with some network filesystems
272       when transfering read-only files.
273
274     - Any errors output about password-file reading no longer cause an error at
275       the end of the run about a partial transfer.
276
277     - The --read-batch option for protocol 30 now ensures that several more
278       options are set correctly for the current batch file:  --iconv, --acls,
279       --xattrs, --inplace, --append, and --append-verify.
280
281     - Using --only-write-batch to a daemon receiver now works properly (older
282       versions would update some files while writing the batch).
283
284     - Avoid outputting a "file has vanished" message when the file is a broken
285       symlink and --copy-unsafe-links or --copy-dirlinks is used (the code
286       already handled this for --copy-links).
287
288     - Fixed the combination of --only-write-batch and --dry-run.
289
290     - Fixed rsync's ability to remove files that are not writable by the file's
291       owner when rsync is running as the same user.
292
293   ENHANCEMENTS:
294
295     - A new incremental-recursion algorithm is now used when rsync is talking
296       to another 3.x version.  This starts the transfer going more quickly
297       (before all the files have been found), and requires much less memory.
298       See the --recursive option in the manpage for some restrictions.
299
300     - Lowered memory use in the non-incremental-recursion algorithm for typical
301       option values (usually saving from 21-29 bytes per file).
302
303     - The default --delete algorithm is now --delete-during when talking to a
304       3.x rsync.  This is a faster scan than using --delete-before (which is
305       the default when talking to older rsync versions), and is compatible with
306       the new incremental recursion mode.
307
308     - Rsync now allows multiple remote-source args to be specified rather than
309       having to rely on a special space-splitting side-effect of the remote-
310       shell.  Additional remote args must specify the same host or an empty one
311       (e.g. empty:  :file1  or  ::module/file2).  For example, this means that
312       local use of brace expansion now works:  rsync -av host:dir/{f1,f2} .
313
314     - Added the --protect-args (-s) option, that tells rsync to send most of
315       the command-line args at the start of the transfer rather than as args
316       to the remote-shell command.  This protects them from space-splitting,
317       and only interprets basic wildcard special shell characters (*?[).
318
319     - Added the --delete-delay option, which is a more efficient way to delete
320       files at the end of the transfer without needing a separate delete pass.
321
322     - Added the --acls (-A) option to preserve Access Control Lists.  This is
323       an improved version of the prior patch that was available, and it even
324       supports OS X ACLs.  If you need to have backward compatibility with old,
325       ACL-patched versions of rsync, apply the acls.diff file from the patches
326       dir.
327
328     - Added the --xattrs (-X) option to preserve extended attributes.  This is
329       an improved version of the prior patch that was available, and it even
330       supports OS X xattrs (which includes their resource fork data).  If you
331       need to have backward compatibility with old, xattr-patched versions of
332       rsync, apply the xattrs.diff file from the patches dir.
333
334     - Added the --fake-super option that allows a non-super user to preserve
335       all attributes of a file by using a special extended-attribute idiom.
336       It even supports the storing of foreign ACL data on your backup server.
337       There is also an analogous "fake super" parameter for an rsync daemon.
338
339     - Added the --iconv option, which allows rsync to convert filenames from
340       one character-set to another during the transfer.  The default is to
341       make this feature available as long as your system has iconv_open().
342       If compilation fails, specify --disable-iconv to configure, and then
343       rebuild.  If you want rsync to perform character-set conversions by
344       default, you can specify --enable-iconv=CONVERT_STRING with the default
345       value for the --iconv option that you wish to use.  For example,
346       "--enable-iconv=." is a good choice.  See the rsync manpage for an
347       explanation of the --iconv option's settings.
348
349     - A new daemon config parameter, "charset", lets you control the character-
350       set that is used during an --iconv transfer to/from a daemon module.  You
351       can also set your daemon to refuse "no-iconv" if you want to force the
352       client to use an --iconv transfer (requiring an rsync 3.x client).
353
354     - Added the --skip-compress=LIST option to override the default list of
355       file suffixes that will not be compressed when using --compress (-z).
356
357     - The daemon's default for "dont compress" was extended to include:
358           *.7z *.mp[34] *.mov *.avi *.ogg *.jpg *.jpeg
359       The name-matching routine was also optimized to run more quickly.
360
361     - The --max-delete option now outputs a warning if it skipped any file
362       deletions, including a count of how many deletions were skipped.  (Older
363       versions just silently stopped deleting things.)
364
365     - You may specify --max-delete=0 to a 3.0.0 client to request that it warn
366       about extraneous files without deleting anything.  If you're not sure
367       what version the client is, you can use the less-obvious --max-delete=-1,
368       as both old and new versions will treat that as the same request (though
369       older versions don't warn).
370
371     - The --hard-link option now uses less memory on both the sending and
372       receiving side for all protocol versions.  For protocol 30, the use of a
373       hashtable on the sending side allows us to more efficiently convey to the
374       receiver what files are linked together.  This reduces the amount of data
375       sent over the socket by a considerable margin (rather than adding more
376       data), and limits the in-memory storage of the device+inode information
377       to just the sending side for the new protocol 30, or to the receiving
378       side when speaking an older protocol (note that older rsync versions kept
379       the device+inode information on both sides).
380
381     - The filter rules now support a perishable ("p") modifier that marks rules
382       that should not have an effect in a directory that is being deleted.  e.g.
383       -f '-p .svn/' would only affect "live" .svn directories.
384
385     - Rsync checks all the alternate-destination args for validity (e.g.
386       --link-dest).  This lets the user know when they specified a directory
387       that does not exist.
388
389     - If we get an ENOSYS error setting the time on a symlink, we don't
390       complain about it anymore (for those systems that even support the
391       setting of the modify-time on a symlink).
392
393     - Protocol 30 now uses MD5 checksums instead of MD4.
394
395     - Changed the --append option to not checksum the existing data in the
396       destination file, which speeds up file appending.
397
398     - Added the --append-verify option, which works like the older --append
399       option (verifying the existing data in the destination file).  For
400       compatibility with older rsync versions, any use of --append that is
401       talking protocol 29 or older will revert to the --append-verify method.
402
403     - Added the --contimeout=SECONDS option that lets the user specify a
404       connection timeout for rsync daemon access.
405
406     - Documented and extended the support for the RSYNC_CONNECT_PROG variable
407       that can be used to enhance the client side of a daemon connection.
408
409     - Improved the dashes and double-quotes in the nroff manpage output.
410
411     - Rsync now supports a lot more --no-OPTION override options.
412
413   INTERNAL:
414
415     - The file-list sorting algorithm now uses a sort that keeps any same-
416       named items in the same order as they were specified.  This allows
417       rsync to always ensure that the first of the duplicates is the one
418       that will be included in the copy.  The new sort is also faster
419       than the glibc version of qsort() and mergesort().
420
421     - Rsync now supports the transfer of 64-bit timestamps (time_t values).
422
423     - Made the file-deletion code use a little less stack when recursing
424       through a directory hierarchy of extraneous files.
425
426     - Fixed a build problem with older (2.x) versions of gcc.
427
428     - Added some isType() functions that make dealing with signed characters
429       easier without forcing variables via casts.
430
431     - Changed strcat/strcpy/sprintf function calls to use safer versions.
432
433     - Upgraded the included popt version to 1.10.2 and improved its use of
434       string-handling functions.
435
436     - Added missing prototypes for compatibility functions from the lib dir.
437
438     - Configure determines if iconv() has a const arg, allowing us to avoid a
439       compiler warning.
440
441     - Made the sending of some numbers more efficient for protocol 30.
442
443     - Make sure that a daemon process doesn't mind if the client was weird and
444       omitted the --server option.
445
446     - There are more internal logging categories available in protocol 30 than
447       the age-old FINFO and FERROR, including FERROR_XFER and FWARN.  These new
448       categories allow some errors and warnings to go to stderr without causing
449       an erroneous end-of-run warning about some files not being able to be
450       transferred.
451
452     - Improved the use of "const" on pointers.
453
454     - Improved J.W.'s pool_alloc routines to add a way of incrementally freeing
455       older sections of a pool's memory.
456
457     - The getaddrinfo.c compatibility code in the "lib" dir was replaced with
458       some new code (derived from samba, derived from PostgreSQL) that has a
459       better license than the old code.
460
461   DEVELOPER RELATED:
462
463     - Rsync is now licensed under the GPLv3 or later.
464
465     - Rsync is now being maintained in a "git" repository instead of CVS
466       (though the old CVS repository still exists for historical access).
467       Several maintenance scripts were updated to work with git.
468
469     - Generated files are no longer committed into the source repository.  The
470       autoconf and autoheader commands are now automatically run during the
471       normal use of "configure" and "make".  The latest dev versions of all
472       generated files can also be copied from the samba.org web site (see the
473       prepare-source script's fetch option).
474
475     - The "patches" directory of diff files is now built from branches in the
476       rsync git repository (branch patch/FOO creates file patches/FOO.diff).
477       This directory is now distributed in a separate separate tar file named
478       rsync-patches-VERSION.tar.gz instead of the main rsync-VERSION.tar.gz.
479
480     - The proto.h file is now built using a simple perl script rather than a
481       complex awk script, which proved to be more widely compatible.
482
483     - When running the tests, we now put our per-test temp dirs into a sub-
484       directory named testtmp (which is created, if missing).  This allows
485       someone to symlink the testtmp directory to another filesystem (which is
486       useful if the build dir's filesystem does not support ACLs and xattrs,
487       but another filesystem does).
488
489     - Rsync now has a way of handling protocol-version changes during the
490       development of a new protocol version.  This causes any out-of-sync
491       versions to speak an older protocol rather than fail in a cryptic manner.
492       This addition makes it safer to deploy a pre-release version that may
493       interact with the public.  This new exchange of sub-version info does not
494       interfere with the {MIN,MAX}_PROTOCOL_VERSION checking algorithm (which
495       does not have enough range to allow the main protocol number to be
496       incremented for every minor tweak in that happens during development).
497
498     - The csprotocol.txt file was updated to mention the daemon protocol change
499       in the 3.0.0 release.
500
501 \f
502 NEWS for rsync 2.6.9 (6 Nov 2006)
503 Protocol: 29 (unchanged)
504 Changes since 2.6.8:
505
506   BUG FIXES:
507
508     - If rsync is interrupted via a handled signal (such as SIGINT), it will
509       once again clean-up its temp file from the destination dir.
510
511     - Fixed an overzealous sanitizing bug in the handling of the --link-dest,
512       --copy-dest, and --compare-dest options to a daemon without chroot: if
513       the copy's destination dir is deeper than the top of the module's path,
514       these options now accept a safe number of parent-dir (../) references
515       (since these options are relative to the destination dir).  The old code
516       incorrectly chopped off all "../" prefixes for these options, no matter
517       how deep the destination directory was in the module's hierarchy.
518
519     - Fixed a bug where a deferred info/error/log message could get sent
520       directly to the sender instead of being handled by rwrite() in the
521       generator.  This fixes an "unexpected tag 3" fatal error, and should
522       also fix a potential problem where a deferred info/error message from
523       the receiver might bypass the log file and get sent only to the client
524       process.  (These problems could only affect an rsync daemon that was
525       receiving files.)
526
527     - Fixed a bug when --inplace was combined with a --*-dest option and we
528       update a file's data using an alternate basis file.  The code now
529       notices that it needs to copy the matching data from the basis file
530       instead of (wrongly) assuming that it was already present in the file.
531
532     - Fixed a bug where using --dry-run with a --*-dest option with a path
533       relative to a directory that does not yet exist:  the affected option
534       gets its proper path value so that the output of the dry-run is right.
535
536     - Fixed a bug in the %f logfile escape when receiving files: the
537       destination path is now included in the output (e.g. you can now tell
538       when a user specifies a subdir inside a module).
539
540     - If the receiving side fails to create a directory, it will now skip
541       trying to update everything that is inside that directory.
542
543     - If --link-dest is specified with --checksum but without --times, rsync
544       will now allow a hard-link to be created to a matching link-dest file
545       even when the file's modify-time doesn't match the server's file.
546
547     - The daemon now calls more timezone-using functions prior to doing a
548       chroot.  This should help some C libraries to generate proper timestamps
549       from inside a chrooted daemon (and to not try to access /etc/timezone
550       over and over again).
551
552     - Fixed a bug in the handling of an absolute --partial-dir=ABS_PATH option:
553       it now deletes an alternate basis file from the partial-dir that was used
554       to successfully update a destination file.
555
556     - Fixed a bug in the handling of --delete-excluded when using a per-dir
557       merge file:  the merge file is now honored on the receiving side, and
558       only its unqualified include/exclude commands are ignored (just as is
559       done for global include/excludes).
560
561     - Fixed a recent bug where --delete was not working when transferring from
562       the root (/) of the filesystem with --relative enabled.
563
564     - Fixed a recent bug where an --exclude='*' could affect the root (/) of
565       the filesystem with --relative enabled.
566
567     - When --inplace creates a file, it is now created with owner read/write
568       permissions (0600) instead of no permissions at all.  This avoids a
569       problem continuing a transfer that was interrupted (since --inplace
570       will not update a file that has no write permissions).
571
572     - If either --remove-source-files or --remove-sent-files is enabled and we
573       are unable to remove the source file, rsync now outputs an error.
574
575     - Fixed a bug in the daemon's "incoming chmod" rule:  newly-created
576       directories no longer get the 'F' (file) rules applied to them.
577
578     - Fixed an infinite loop bug when a filter rule was rejected due to being
579       overly long.
580
581     - When the server receives a --partial-dir option from the client, it no
582       longer runs the client-side code that adds an assumed filter rule (since
583       the client will be sending us the rules in the usual manner, and they
584       may have chosen to override the auto-added rule).
585
586   ENHANCEMENTS:
587
588     - Added the --log-file=FILE and --log-file-format=FORMAT options.  These
589       can be used to tell any rsync to output what it is doing to a log file.
590       They work with a client rsync, a non-daemon server rsync (see the man
591       page for instructions), and also allows the overriding of rsyncd.conf
592       settings when starting a daemon.
593
594     - The --log-format option was renamed to be --out-format to avoid confusing
595       it with affecting the log-file output.  (The old option remains as an
596       alias for the new to preserve backward compatibility.)
597
598     - Made "log file" and "syslog facility" settable on a per-module basis in
599       the daemon's config file.
600
601     - Added the --remove-source-files option as a replacement for the (now
602       deprecated) --remove-sent-files option.  This new option removes all
603       non-dirs from the source directories, even if the file was already
604       up-to-date.  This fixes a problem where interrupting an rsync that
605       was using --remove-sent-files and restarting it could leave behind
606       a file that the earlier rsync synchronized, but didn't get to remove.
607       (The deprecated --remove-sent-files is still understood for now, and
608       still behaves in the same way as before.)
609
610     - Added the option --no-motd to suppress the message-of-the-day output
611       from a daemon when doing a copy.  (See the manpage for a caveat.)
612
613     - Added a new environment variable to the pre-/post-xfer exec commands (in
614       the daemon's config file):  RSYNC_PID.  This value will be the same in
615       both the pre- and post-xfer commands, so it can be used as a unique ID
616       if the pre-xfer command wants to cache some arg/request info for the
617       post-xfer command.
618
619   INTERNAL:
620
621     - Did a code audit using IBM's code-checker program and made several
622       changes, including: replacing most of the strcpy() and sprintf()
623       calls with strlcpy(), snprintf(), and memcpy(), adding a 0-value to
624       an enum that had been intermingling a literal 0 with the defined enum
625       values, silencing some uninitialized memory checks, marking some
626       functions with a "noreturn" attribute, and changing an "if" that
627       could never succeed on some platforms into a pre-processor directive
628       that conditionally compiles the code.
629
630     - Fixed a potential bug in f_name_cmp() when both the args are a
631       top-level "." dir (which doesn't happen in normal operations).
632
633     - Changed exit_cleanup() so that it can never return instead of exit.
634       The old code might return if it found the exit_cleanup() function
635       was being called recursively.  The new code is segmented so that
636       any recursive calls move on to the next step of the exit-processing.
637
638     - The macro WIFEXITED(stat) will now be defined if the OS didn't already
639       define it.
640
641   DEVELOPER RELATED:
642
643     - The acls.diff and xattrs.diff patches have received a bunch of work to
644       make them much closer to being acceptable in the main distribution.
645       The xattrs patch also has some preliminary Mac OS X and FreeBSD
646       compatibility code that various system types to exchange extended
647       file-attributes.
648
649     - A new diff in the patches dir, fake-root.diff, allows rsync to
650       maintain a backup hierarchy with full owner, group, and device info
651       without actually running as root.  It does this using a special
652       extended attribute, so it depends on xattrs.diff (which depends on
653       acls.diff).
654
655     - The rsync.yo and rsyncd.conf.yo files have been updated to work
656       better with the latest yodl 2.x releases.
657
658     - Updated config.guess and config.sub to their 2006-07-02 versions.
659
660     - Updated various files to include the latest FSF address and to have
661       consistent opening comments.
662
663 \f
664 NEWS for rsync 2.6.8 (22 Apr 2006)
665 Protocol: 29 (unchanged)
666 Changes since 2.6.7:
667
668   BUG FIXES:
669
670     - Fixed a bug in the exclude code where an anchored exclude without any
671       wildcards fails to match an absolute source arg, but only when --relative
672       is in effect.
673
674     - Improved the I/O code for the generator to fix a potential hang when the
675       receiver gets an EOF on the socket but the generator's select() call
676       never indicates that the socket is writable for it to be notified about
677       the EOF.  (This can happen when using stunnel).
678
679     - Fixed a problem with the file-reading code where a failed read (such as
680       that caused by a bad sector) would not advance the file's read-position
681       beyond the failed read's data.
682
683     - Fixed a logging bug where the "log file" directive was not being honored
684       in a single-use daemon (one spawned by a remote-shell connection or by
685       init).
686
687     - If rsync cannot honor the --delete option, we output an error and exit
688       instead of silently ignoring the option.
689
690     - Fixed a bug in the --link-dest code that prevented special files (such as
691       fifos) from being linked.
692
693     - The ability to hard-link symlinks and special files is now determined at
694       configure time instead of at runtime.  This fixes a bug with --link-dest
695       creating a hard-link to a symlink's referent on a BSD system.
696
697   ENHANCEMENTS:
698
699     - In daemon mode, if rsync fails to bind to the requested port, the
700       error(s) returned by socket() and/or bind() are now logged.
701
702     - When we output a fatal error, we now output the version of rsync in the
703       message.
704
705     - Improved the documentation for the --owner and --group options.
706
707     - The rsyncstats script in "support" has an improved line-parsing regex
708       that is easier to read and also makes it to parse syslog-generated lines.
709
710     - A new script in "support": file-attr-restore, can be used to restore the
711       attributes of a file-set (the permissions, ownership, and group info)
712       taken from the cached output of a "find ARG... -ls" command.
713
714   DEVELOPER RELATED:
715
716     - Removed the unused function write_int_named(), the unused variable
717       io_read_phase, and the rarely used variable io_write_phase.  This also
718       elides the confusing 'phase "unknown"' part of one error message.
719
720     - Removed two unused configure checks and two related (also unused)
721       compatibility functions.
722
723     - The xattrs.diff patch received a security fix that prevents a potential
724       buffer overflow in the receive_xattr() code.
725
726     - The acls.diff patch has been improved quite a bit, with more to come.
727
728     - A new patch was added: log-file.diff.  This contains an early version of
729       a future option, --log-file=FILE, that will allow any rsync to log its
730       actions to a file (something that only a daemon supports at present).
731
732 \f
733 NEWS for rsync 2.6.7 (11 Mar 2006)
734 Protocol: 29 (unchanged)
735 Changes since 2.6.6:
736
737   OUTPUT CHANGES:
738
739     - The letter 'D' in the itemized output was being used for both devices
740       (character or block) as well as other special files (such as fifos and
741       named sockets).  This has changed to separate non-device special files
742       under the 'S' designation (e.g. "cS+++++++ path/fifo").  See also the
743       "--specials" option, below.
744
745     - The way rsync escapes unreadable characters has changed.  First, rsync
746       now has support for recognizing valid multibyte character sequences in
747       your current locale, allowing it to escape fewer characters than before
748       for a locale such as UTF-8.  Second, it now uses an escape idiom of
749       "\#123", which is the literal string "\#" followed by exactly 3 octal
750       digits.  Rsync no longer doubles a backslash character in a filename
751       (e.g. it used to output "foo\\bar" when copying "foo\bar") -- now it only
752       escapes a backslash that is followed by a hash-sign and 3 digits (0-9)
753       (e.g. it will output "foo\#134#789" when copying "foo\#789").  See also
754       the --8-bit-output (-8) option, mentioned below.
755
756       Script writers: the local rsync is the one that outputs escaped names,
757       so if you need to support unescaping of filenames for older rsyncs, I'd
758       suggest that you parse the output of "rsync --version" and only use the
759       old unescaping rules for 2.6.5 and 2.6.6.
760
761   BUG FIXES:
762
763     - Fixed a really old bug that caused --checksum (-c) to checksum all the
764       files encountered during the delete scan (ouch).
765
766     - Fixed a potential hang in a remote generator:  when the receiver gets a
767       read-error on the socket, it now signals the generator about this so that
768       the generator does not try to send any of the terminating error messages
769       to the client (avoiding a potential hang in some setups).
770
771     - Made hard-links work with symlinks and devices again.
772
773     - If the sender gets an early EOF reading a source file, we propagate this
774       error to the receiver so that it can discard the file and try requesting
775       it again (which is the existing behavior for other kinds of read errors).
776
777     - If a device-file/special-file changes permissions, rsync now updates the
778       permissions without recreating the file.
779
780     - If the user specifies a remote-host for both the source and destination,
781       we now output a syntax error rather than trying to open the destination
782       hostspec as a filename.
783
784     - When --inplace creates a new destination file, rsync now creates it with
785       permissions 0600 instead of 0000 -- this makes restarting possible when
786       the transfer gets interrupted in the middle of sending a new file.
787
788     - Reject the combination of --inplace and --sparse since the sparse-output
789       algorithm doesn't work when overwriting existing data.
790
791     - Fixed the directory name in the error that is output when pop_dir()
792       fails.
793
794     - Really fixed the parsing of a "!" entry in .cvsignore files this time.
795
796     - If the generator gets a stat() error on a file, output it (this used to
797       require at least -vv for the error to be seen).
798
799     - If waitpid() fails or the child rsync didn't exit cleanly, we now handle
800       the exit status properly and generate a better error.
801
802     - Fixed some glitches in the double-verbose output when using --copy-dest,
803       --link-dest, or --compare-dest.  Also improved how the verbose output
804       handles hard-links (within the transfer) that had an up-to-date alternate
805       "dest" file, and copied files (via --copy-dest).
806
807     - Fixed the matching of the dont-compress items (e.g. *.gz) against files
808       that have a path component containing a slash.
809
810     - If the code reading a filter/exclude file gets an EINTR error, rsync now
811       clears the error flag on the file handle so it can keep on reading.
812
813     - If --relative is active, the sending side cleans up trailing "/" or "/."
814       suffixes to avoid triggering a bug in older rsync versions.  Also, we now
815       reject a ".." dir if it would be sent as a relative dir.
816
817     - If a non-directory is in the way of a directory and rsync is run with
818       --dry-run and --delete, rsync no longer complains about not being able
819       to opendir() the not-yet present directory.
820
821     - When --list-only is used and a non-existent local destination dir was
822       also specified as a destination, rsync no longer generates a warning
823       about being unable to create the missing directory.
824
825     - Fixed some problems with --relative --no-implied-dirs when the
826       destination directory did not yet exist:  we can now create a symlink or
827       device when it is the first thing in the missing dir, and --fuzzy no
828       longer complains about being unable to open the missing dir.
829
830     - Fixed a bug where the --copy-links option would not affect implied
831       directories without --copy-unsafe-links (see --relative).
832
833     - Got rid of the need for --force to be used in some circumstances with
834       --delete-after (making it consistent with --delete-before/-during).
835
836     - Rsync now ignores the SIGXFSZ signal, just in case your OS sends this
837       when a file is too large (rsync handles the write error).
838
839     - Fixed a bug in the Proxy-Authorization header's base64-encoded value: it
840       was not properly padded with trailing '=' chars.  This only affects a
841       user that need to use a password-authenticated proxy for an outgoing
842       daemon-rsync connection.
843
844     - If we're transferring an empty directory to a new name, rsync no longer
845       forces S_IWUSR if it wasn't already set, nor does it accidentally leave
846       it set.
847
848     - Fixed a bug in the debug output (-vvvvv) that could mention the wrong
849       checksum for the current file offset.
850
851     - Rsync no longer allows a single directory to be copied over a non-
852       directory destination arg.
853
854   ENHANCEMENTS:
855
856     - Added the --append option that makes rsync append data onto files that
857       are longer on the source than the destination (this includes new files).
858
859     - Added the --min-size=SIZE option to exclude small files from the
860       transfer.
861
862     - Added the --compress-level option to allow you to set how aggressive
863       rsync's compression should be (this option implies --compress).
864
865     - Enhanced the parsing of the SIZE value for --min-size and --max-size to
866       allow easy entry of multiples of 1000 (instead of just multiples of 1024)
867       and off-by-one values too (e.g. --max-size=8mb-1).
868
869     - Added the --8-bit-output (-8) option, which tells rsync to avoid escaping
870       high-bit characters that it thinks are unreadable in the current locale.
871
872     - The new option --human-readable (-h) changes the output of --progress,
873       --stats, and the end-of-run summary to be easier to read.  If repeated,
874       the units become powers of 1024 instead of powers of 1000.  (The old
875       meaning of -h, as a shorthand for --help, still works as long as you
876       just use it on its own, as in "rsync -h".)
877
878     - If lutimes() and/or lchmod() are around, use them to allow the
879       preservation of attributes on symlinks.
880
881     - The --link-dest option now affects symlinks and devices (when possible).
882
883     - Added two config items to the rsyncd.conf parsing:  "pre-xfer exec" and
884       "post-xfer exec".  These allow a command to be specified on a per-module
885       basis that will be run before and/or after a daemon-mode transfer.  (See
886       the man page for a list of the environment variables that are set with
887       information about the transfer.)
888
889     - When using the --relative option, you can now insert a dot dir in
890       the source path to indicate where the replication of the source dirs
891       should start.  For example, if you specify a source path of
892       rsync://host/module/foo/bar/./baz/dir with -R, rsync will now only
893       replicate the "baz/dir" part of the source path (note: a trailing
894       dot dir is unaffected unless it also has a trailing slash).
895
896     - Added some new --no-FOO options that make it easier to override unwanted
897       implied or default options.  For example, "-a --no-o" (aka "--archive
898       --no-owner") can be used to turn off the preservation of file ownership
899       that is implied by -a.
900
901     - Added the --chmod=MODE option that allows the destination permissions to
902       be changed from the source permissions.  E.g. --chmod=g+w,o-rwx
903
904     - Added the "incoming chmod" and "outgoing chmod" daemon options that allow
905       a module to specify what permissions changes should be applied to all
906       files copied to and from the daemon.
907
908     - Allow the --temp-dir option to be specified when starting a daemon, which
909       sets the default temporary directory for incoming files.
910
911     - If --delete is combined with --dirs without --recursive, rsync will now
912       delete in any directory whose content is being synchronized.
913
914     - If --backup is combined with --delete without --backup-dir (and without
915       --delete-excluded), we add a "protect" filter-rule to ensure that files
916       with the backup suffix are not deleted.
917
918     - The file-count stats that are output by --progress were improved to
919       better indicate what the numbers mean.  For instance, the output:
920       "(xfer#5, to-check=8383/9999)" indicates that this was the fifth file
921       to be transferred, and we still need to check 8383 more files out of
922       a total of 9999.
923
924     - The include/exclude code now allows a dir/*** directive (with 3 trailing
925       stars) to match both the dir itself as well as all the content below the
926       dir (dir/** would not match the dir).
927
928     - Added the --prune-empty-dirs (-m) option that makes the receiving rsync
929       discard empty chains of directories from the file-list.  This makes it
930       easier to selectively copy files from a source hierarchy and end up with
931       just the directories needed to hold the resulting files.
932
933     - If the --itemize-changes (-i) option is repeated, rsync now includes
934       unchanged files in the itemized output (similar to -vv, but without all
935       the other verbose messages that can get in the way).  Of course, the
936       client must be version 2.6.7 for this to work, but the remote rsync only
937       needs to be 2.6.7 if you're pushing files.
938
939     - Added the --specials option to tell rsync to copy non-device special
940       files (which rsync now attempts even as a normal user).  The --devices
941       option now requests the copying of just devices (character and block).
942       The -D option still requests both (e.g. --devices and --specials), -a
943       still implies -D, and non-root users still get a silent downgrade that
944       omits device copying.
945
946     - Added the --super option to make the receiver always attempt super-user
947       activities.  This is useful for systems that allow things such as devices
948       to be created or ownership to be set without being UID 0, and is also
949       useful for someone who wants to ensure that errors will be output if the
950       receiving rsync isn't being run as root.
951
952     - Added the --sockopts option for those few who want to customize the TCP
953       options used to contact a daemon rsync.
954
955     - Added a way for the --temp-dir option to be combined with a partial-dir
956       setting that lets rsync avoid non-atomic updates (for those times when
957       --temp-dir is not being used because space is tight).
958
959     - A new support script, files-to-excludes, will transform a list of files
960       into a set of include/exclude directives that will copy those files.
961
962     - A new option, --executability (-E) can be used to preserve just the
963       execute bit on files, for those times when using the --perms option is
964       not desired.
965
966     - The daemon now logs each connection and also each module-list request
967       that it receives.
968
969     - New log-format options: %M (modtime), %U (uid), %G (gid), and %B
970       (permission bits, e.g. "rwxr-xrwt").
971
972     - The --dry-run option no longer forces the enabling of --verbose.
973
974     - The --remove-sent-files option now does a better job of incrementally
975       removing the sent files on the sending side (older versions tended to
976       clump up all the removals at the end).
977
978     - A daemon now supersedes its minimal SIGCHLD handler with the standard
979       PID-remembering version after forking.  This ensures that the generator
980       can get the child-exit status from the receiver.
981
982     - Use of the --bwlimit option no longer interferes with the remote rsync
983       sending error messages about invalid/refused options.
984
985     - Rsync no longer returns a usage error when used with one local source arg
986       and no destination: this now implies the --list-only option, just like
987       the comparable situation with a remote source arg.
988
989     - Added the --copy-dirlinks option, a more limited version of --copy-links.
990
991     - Various documentation improvements, including: a better synopsis, some
992       improved examples, a better discussion of the presence and absence of
993       --perms (including how it interacts with the new --executability and
994       --chmod options), an extended discussion of --temp-dir, an improved
995       discussion of --partial-dir, a better description of rsync's pattern
996       matching characters, an improved --no-implied-dirs section, and the
997       documenting of what the --stats option outputs.
998
999     - Various new and updated diffs in the patches dir, including: acls.diff,
1000       xattrs.diff, atimes.diff, detect-renamed.diff, and slp.diff.
1001
1002   INTERNAL:
1003
1004     - We now use sigaction() and sigprocmask() if possible, and fall back on
1005       signal() if not.  Using sigprocmask() ensures that rsync enables all the
1006       signals that it needs, just in case it was started in a masked state.
1007
1008     - Some buffer sizes were expanded a bit, particularly on systems where
1009       MAXPATHLEN is overly small (e.g. cygwin).
1010
1011     - If io_printf() tries to format more data than fits in the buffer, exit
1012       with an error instead of transmitting a truncated buffer.
1013
1014     - If a va_copy macro is defined, lib/snprintf.c will use it when defining
1015       the VA_COPY macro.
1016
1017     - Reduced the amount of stack memory needed for each level of directory
1018       recursion by nearly MAXPATHLEN bytes.
1019
1020     - The wildmatch function was extended to allow an array of strings to be
1021       supplied as the string to match.  This allows the exclude code to do less
1022       string copying.
1023
1024     - Got rid of the safe_fname() function (and all the myriad calls) and
1025       replaced it with a new function in the log.c code that filters all the
1026       output going to the terminal.
1027
1028     - Unified the f_name() and the f_name_to() functions.
1029
1030     - Improved the hash-table code the sender uses to handle checksums to make
1031       it use slightly less memory and run just a little faster.
1032
1033   DEVELOPER RELATED:
1034
1035     - The diffs in the patches dir now require "patch -p1 <DIFF" instead of
1036       the previous -p0.  Also, the version included in the release tar now
1037       affect generated files (e.g. configure, rsync.1, proto.h, etc.), so
1038       it is no longer necessary to run autoconf and/or yodl unless you're
1039       applying a patch that was checked out from CVS.
1040
1041     - Several diffs in the patches dir now use the proper --enable-FOO
1042       configure option instead of --with-FOO to turn on the inclusion of
1043       the newly patched feature.
1044
1045     - There is a new script, "prepare-source" than can be used to update the
1046       various generated files (proto.h, configure, etc.) even before configure
1047       has created the Makefile (this is mainly useful when patching the source
1048       with a patch that doesn't affect generated files).
1049
1050     - The testsuite now sets HOME so that it won't be affected by a file such
1051       as ~/.popt.
1052
1053 \f
1054 NEWS for rsync 2.6.6 (28 Jul 2005)
1055 Protocol: 29 (unchanged)
1056 Changes since 2.6.5:
1057
1058   SECURITY FIXES:
1059
1060     - The zlib code was upgraded to version 1.2.3 in order to make it more
1061       secure.  While the widely-publicized security problem in zlib 1.2.2 did
1062       not affect rsync, another security problem surfaced that affects rsync's
1063       zlib 1.1.4.
1064
1065   BUG FIXES:
1066
1067     - The setting of flist->high in clean_flist() was wrong for an empty list.
1068       This could cause flist_find() to crash in certain rare circumstances
1069       (e.g. if just the right directory setup was around when --fuzzy was
1070       combined with --link-dest).
1071
1072     - The outputting of hard-linked files when verbosity was > 1 was not right:
1073       (1) Without -i it would output the name of each hard-linked file as
1074       though it had been changed; it now outputs a "is hard linked" message for
1075       the file. (2) With -i it would output all dots for the unchanged
1076       attributes of a hard-link; it now changes those dots to spaces, as is
1077       done for other totally unchanged items.
1078
1079     - When backing up a changed symlink or device, get rid of any old backup
1080       item so that we don't get an "already exists" error.
1081
1082     - A couple places that were comparing a local and a remote modification-
1083       time were not honoring the --modify-window option.
1084
1085     - Fixed a bug where the 'p' (permissions) itemized-changes flag might get
1086       set too often (if some non-significant mode bits differed).
1087
1088     - Fixed a really old, minor bug that could cause rsync to warn about being
1089       unable to mkdir() a path that ends in "/." because it just created the
1090       directory (required --relative, --no-implied-dirs, a source path that
1091       ended in either a trailing slash or a trailing "/.", and a non-existing
1092       destination dir to tickle the bug in a recent version).
1093
1094   ENHANCEMENTS:
1095
1096     - Made the "max verbosity" setting in the rsyncd.conf file settable on a
1097       per-module basis (which now matches the documentation).
1098
1099     - The support/rrsync script has been upgraded to verify the args of options
1100       that take args (instead of rejecting any such options).  The script was
1101       also changed to try to be more secure and to fix a problem in the parsing
1102       of a pull operation that has multiple sources.
1103
1104     - Improved the documentation that explains the difference between a
1105       normal daemon transfer and a daemon-over remote-shell transfer.
1106
1107     - Some of the diffs supplied in the patches dir were fixed and/or
1108       improved.
1109
1110   BUILD CHANGES:
1111
1112     - Made configure define NOBODY_USER (currently hard-wired to "nobody") and
1113       NOBODY_GROUP (set to either "nobody" or "nogroup" depending on what we
1114       find in the /etc/group file).
1115
1116     - Added a test to the test suite, itemized.test, that tests the output of
1117       -i (log-format w/%i) and some double-verbose messages.
1118
1119 \f
1120 NEWS for rsync 2.6.5 (1 Jun 2005)
1121 Protocol: 29 (unchanged)
1122 Changes since 2.6.4:
1123
1124   OUTPUT CHANGES:
1125
1126     - Non-printable chars in filenames are now output using backslash-
1127       escaped characters rather than '?'s.  Any non-printable character is
1128       output using 3 digits of octal (e.g. "\n" -> "\012"), and a backslash
1129       is now output as "\\".  Rsync also uses your locale setting, which
1130       can make it treat fewer high-bit characters as non-printable.
1131
1132     - If rsync received an empty file-list when pulling files, it would
1133       output a "nothing to do" message and exit with a 0 (success) exit
1134       status, even if the remote rsync returned an error (it did not do
1135       this under the same conditions when pushing files).  This was changed
1136       to make the pulling behavior the same as the pushing behavior:  we
1137       now do the normal end-of-run outputting (depending on options) and
1138       exit with the appropriate exit status.
1139
1140   BUG FIXES:
1141
1142     - A crash bug was fixed when a daemon had its "path" set to "/", did
1143       not have chroot enabled, and used some anchored excludes in the
1144       rsyncd.conf file.
1145
1146     - Fixed a bug in the transfer of a single file when -H is specified
1147       (rsync would either infinite loop or perhaps crash).
1148
1149     - Fixed a case where the generator might try (and fail) to tweak the
1150       write-permissions of a read-only directory in list-only mode (this
1151       only caused an annoying warning message).
1152
1153     - If --compare-dest or --link-dest uses a locally-copied file as the
1154       basis for an updated version, log this better when --verbose or -i
1155       is in effect.
1156
1157     - Fixed the accidental disabling of --backup during the --delete-after
1158       processing.
1159
1160     - Restored the ability to use the --address option in client mode (in
1161       addition to its use in daemon mode).
1162
1163     - Make sure that some temporary progress information from the delete
1164       processing does not get left on the screen when it is followed by a
1165       newline.
1166
1167     - When --existing skips a directory with extra verbosity, refer to it
1168       as a "directory", not a "file".
1169
1170     - When transferring a single file to a different-named file, any
1171       generator messages that are source-file related no longer refer to
1172       the file by the destination filename.
1173
1174     - Fixed a bug where hard-linking a group of files might fail if the
1175       generator hasn't created a needed destination directory yet.
1176
1177     - Fixed a bug where a hard-linked group of files that is newly-linked
1178       to a file in a --link-dest dir doesn't link the files from the rest
1179       of the cluster.
1180
1181     - When deleting files with the --one-file-system (-x) option set, rsync
1182       no longer tries to remove files from inside a mount-point on the
1183       receiving side.  Also, we don't complain about being unable to remove
1184       the mount-point dir.
1185
1186     - Fixed a compatibility problem when using --cvs-ignore (-C) and
1187       sending files to an older rsync without using --delete.
1188
1189     - Make sure that a "- !" or "+ !" include/exclude pattern does not
1190       trigger the list-clearing action that is reserved for "!".
1191
1192     - Avoid a timeout in the generator when the sender/receiver aren't
1193       handling the generator's checksum output quickly enough.
1194
1195     - Fixed the omission of some directories in the delete processing when
1196       --relative (-R) was combined with a source path that had a trailing
1197       slash.
1198
1199     - Fixed a case where rsync would erroneously delete some files and then
1200       re-transfer them when the options --relative (-R) and --recursive
1201       (-r) were both enabled (along with --delete) and a source path had a
1202       trailing slash.
1203
1204     - Make sure that --max-size doesn't affect a device or a symlink.
1205
1206     - Make sure that a system with a really small MAXPATHLEN does not cause
1207       the buffers in readfd_unbuffered() to be too small to receive normal
1208       messages.  (This mainly affected Cygwin.)
1209
1210     - If a source pathname ends with a filename of "..", treat it as if
1211       "../" had been specified (so that we don't copy files to the parent
1212       dir of the destination).
1213
1214     - If --delete is combined with a file-listing rsync command (i.e. no
1215       transfer is happening), avoid outputting a warning that we couldn't
1216       delete anything.
1217
1218     - If --stats is specified with --delete-after, ensure that all the
1219       "deleting" messages are output before the statistics.
1220
1221     - Improved one "if" in the deletion code that was only checking errno
1222       for ENOTEMPTY when it should have also been checking for EEXIST (for
1223       compatibility with OS variations).
1224
1225   ENHANCEMENTS:
1226
1227     - Added the --only-write-batch=FILE option that may be used (instead
1228       of --write-batch=FILE) to create a batch file without doing any
1229       actual updating of the destination.  This allows you to divert all
1230       the file-updating data away from a slow data link (as long as you
1231       are pushing the data to the remote server when creating the batch).
1232
1233     - When the generator is taking a long time to fill up its output buffer
1234       (e.g. if the transferred files are few, small, or missing), it now
1235       periodically flushes the output buffer so that the sender/receiver
1236       can get started on the files sooner rather than later.
1237
1238     - Improved the keep-alive code to handle a long silence between the
1239       sender and the receiver that can occur when the sender is receiving
1240       the checksum data for a large file.
1241
1242     - Improved the auth-errors that are logged by the daemon to include
1243       some information on why the authorization failed:  wrong user,
1244       password mismatch, etc.  (The client-visible message is unchanged!)
1245
1246     - Improved the client's handling of an "@ERROR" from a daemon so that
1247       it does not complain about an unexpectedly closed socket (since we
1248       really did expect the socket to close).
1249
1250     - If the daemon can't open the log-file specified in rsyncd.conf, fall
1251       back to using syslog and log an appropriate warning.  This is better
1252       than what was typically a totally silent (and fatal) failure (since a
1253       daemon is not usually run with the --no-detach option that was
1254       necessary to see the error on stderr).
1255
1256     - The man pages now consistently refer to an rsync daemon as a "daemon"
1257       instead of a "server" (to distinguish it from the server process in a
1258       non-daemon transfer).
1259
1260     - Made a small change to the rrsync script (restricted rsync -- in the
1261       support dir) to make a read-only server reject all --remove-* options
1262       when sending files (to future-proof it against the possibility of
1263       other similar options being added at some point).
1264
1265   INTERNAL:
1266
1267     - Rsync now calls setlocale(LC_CTYPE, "").  This enables isprint() to
1268       better discern which filename characters need to be escaped in
1269       messages (which should result in fewer escaped characters in some
1270       locales).
1271
1272     - Improved the naming of the log-file open/reopen/close functions.
1273
1274     - Removed some protocol-compatibility code that was only needed to help
1275       someone running a pre-release of 2.6.4.
1276
1277   BUILD CHANGES:
1278
1279     - Added configure option "--disable-locale" to disable any use of
1280       setlocale() in the binary.
1281
1282     - Fixed a bug in the SUPPORT{,_HARD}_LINKS #defines which prevented
1283       rsync from being built without symlink or hard-link support.
1284
1285     - Only #define HAVE_REMSH if it is going to be set to 1.
1286
1287     - Configure now disables the use of mkstemp() under HP-UX (since they
1288       refuse to fix its broken handling of large files).
1289
1290     - Configure now explicitly checks for the lseek64() function so that
1291       the code can use HAVE_LSEEK64 instead of inferring lseek64()'s
1292       presence based on the presence of the off64_t type.
1293
1294     - Configure no longer mentions the change in the default remote-shell
1295       (from rsh to ssh) that occurred for the 2.6.0 release.
1296
1297     - Some minor enhancements to the test scripts.
1298
1299     - Added a few new *.diff files to the patches dir, including a patch
1300       that enables the optional copying of extended attributes.
1301
1302 \f
1303 NEWS for rsync 2.6.4 (30 March 2005)
1304 Protocol: 29 (changed)
1305 Changes since 2.6.3:
1306
1307   OUTPUT CHANGES:
1308
1309     - When rsync deletes a directory and outputs a verbose message about
1310       it, it now appends a trailing slash to the name instead of (only
1311       sometimes) outputting a preceding "directory " string.
1312
1313     - The --stats output will contain file-list time-statistics if both
1314       sides are 2.6.4, or if the local side is 2.6.4 and the files are
1315       being pushed (since the stats come from the sending side).
1316       (Requires protocol 29 for a pull.)
1317
1318     - The "%o" (operation) log-format escape now has a third value (besides
1319       "send" and "recv"):  "del." (with trailing dot to make it 4 chars).
1320       This changes the way deletions are logged in the daemon's log file.
1321
1322     - When the --log-format option is combined with --verbose, rsync now
1323       avoids outputting the name of the file twice in most circumstances.
1324       As long as the --log-format item does not refer to any post-transfer
1325       items (such as %b or %c), the --log-format message is output prior to
1326       the transfer, so --verbose is now the equivalent of a --log-format of
1327       '%n%L' (which outputs the name and any link info).  If the log output
1328       must occur after the transfer to be complete, the only time the name
1329       is also output prior to the transfer is when --progress was specified
1330       (so that the name will precede the progress stats, and the full
1331       --log-format output will come after).
1332
1333     - Non-printable characters in filenames are replaced with a '?' to
1334       avoid corrupting the screen or generating empty lines in the output.
1335   
1336   BUG FIXES:
1337
1338     - Restore the list-clearing behavior of "!" in a .cvsignore file (2.6.3
1339       was only treating it as a special token in an rsync include/exclude
1340       file).
1341
1342     - The combination of --verbose and --dry-run now mentions the full list
1343       of changes that would be output without --dry-run.
1344
1345     - Avoid a mkdir warning when removing a directory in the destination
1346       that already exists in the --backup-dir.
1347
1348     - An OS that has a binary mode for its files (such as cygwin) needed
1349       setmode(fd, O_BINARY) called on the temp-file we opened with
1350       mkstemp().  (Fix derived from cygwin's 2.6.3 rsync package.)
1351
1352     - Fixed a potential hang when verbosity is high, the client side is
1353       the sender, and the file-list is large.
1354
1355     - Fixed a potential protocol-corrupting bug where the generator could
1356       merge a message from the receiver into the middle of a multiplexed
1357       packet of data if only part of that data had been written out to the
1358       socket when the message from the generator arrived.
1359
1360     - We now check if the OS doesn't support using mknod() for creating
1361       FIFOs and sockets, and compile-in some compatibility code using
1362       mkfifo() and socket() when necessary.
1363
1364     - Fixed an off-by-one error in the handling of --max-delete=N.  Also,
1365       if the --max-delete limit is exceeded during a run, we now output a
1366       warning about this at the end of the run and exit with a new error
1367       code (25).
1368
1369     - One place in the code wasn't checking if fork() failed.
1370
1371     - The "ignore nonreadable" daemon parameter used to erroneously affect
1372       readable symlinks that pointed to a non-existent file.
1373
1374     - If the OS does not have lchown() and a chown() of a symlink will
1375       affect the referent of a symlink (as it should), we no longer try
1376       to set the user and group of a symlink.
1377
1378     - The generator now properly runs the hard-link loop and the dir-time
1379       rewriting loop after we're sure that the redo phase is complete.
1380
1381     - When --backup was specified with --partial-dir=DIR, where DIR is a
1382       relative path, the backup code was erroneously trying to backup a
1383       file that was put into the partial-dir.
1384
1385     - If a file gets resent in a single transfer and the --backup option is
1386       enabled along with --inplace, rsync no longer performs a duplicate
1387       backup (it used to overwrite the first backup with the failed file).
1388
1389     - One call to flush_write_file() was not being checked for an error.
1390
1391     - The --no-relative option was not being sent from the client to a
1392       server sender.
1393
1394     - If an rsync daemon specified "dont compress = ..." for a file and the
1395       client tried to specify --compress, the libz code was not handling a
1396       compression level of 0 properly.  This could cause a transfer failure
1397       if the block-size for a file was large enough (e.g. rsync might have
1398       exited with an error for large files).
1399
1400     - Fixed a bug that would sometimes surface when using --compress and
1401       sending a file with a block-size larger than 64K (either manually
1402       specified, or computed due to the file being really large).  Prior
1403       versions of rsync would sometimes fail to decompress the data
1404       properly, and thus the transferred file would fail its verification.
1405
1406     - If a daemon can't open the specified log file (i.e. syslog is not
1407       being used), die without crashing.  We also output an error about
1408       the failure on stderr (which will only be seen if --no-detach was
1409       specified) and exit with a new error code (6).
1410
1411     - A local transfer no longer duplicates all its include/exclude options
1412       (since the forked process already has a copy of the exclude list,
1413       there's no need to send them a set of duplicates).
1414
1415     - The output of the items that are being updated by the generator (dirs,
1416       symlinks, devices) is now intermingled in the proper order with the
1417       output from the items that the receiver is updating (regular files)
1418       when pulling.  This misordering was particularly bad when --progress
1419       was specified.  (Requires protocol 29.)
1420
1421     - When --timeout is specified, lulls that occur in the transfer while
1422       the generator is doing work that does not generate socket traffic
1423       (looking for changed files, deleting files, doing directory-time
1424       touch-ups, etc.) will cause a new keep-alive packet to be sent that
1425       should keep the transfer going as long as the generator continues to
1426       make progress.  (Requires protocol 29.)
1427
1428     - The stat size of a device is not added to the total file size of the
1429       items in the transfer (the size might be undefined on some OSes).
1430
1431     - Fixed a problem with refused-option messages sometimes not making it
1432       back to the client side when a remote --files-from was in effect and
1433       the daemon was the receiver.
1434
1435     - The --compare-dest option was not updating a file that differed in
1436       (the preserved) attributes from the version in the compare-dest DIR.
1437
1438     - When rsync is copying files into a write-protected directory, fixed
1439       the change-report output for the directory so that we don't report
1440       an identical directory as changed.
1441
1442   ENHANCEMENTS:
1443
1444     - Rsync now supports popt's option aliases, which means that you can
1445       use /etc/popt and/or ~/.popt to create your own option aliases.
1446
1447     - Added the --delete-during (--del) option which will delete files
1448       from the receiving side incrementally as each directory in the
1449       transfer is being processed.  This makes it more efficient than the
1450       default, before-the-transfer behavior, which is now also available as
1451       --delete-before (and is still the default --delete-WHEN option that
1452       will be chosen if --delete or --delete-excluded is specified without
1453       a --delete-WHEN choice).  All the --del* options infer --delete, so
1454       an rsync daemon that refuses "delete" will still refuse to allow any
1455       file-deleting options (including the new --remove-sent-files option).
1456
1457     - All the --delete-WHEN options are now more memory efficient:
1458       Previously an duplicate set of file-list objects was created on the
1459       receiving side for the entire destination hierarchy.  The new
1460       algorithm only creates one directory of objects at a time (for files
1461       inside the transfer).
1462
1463     - Added the --copy-dest option, which works like --link-dest except
1464       that it locally copies identical files instead of hard-linking them.
1465
1466     - Added support for specifying multiple --compare-dest, --copy-dest, or
1467       --link-dest options, but only of a single type. (Promoted from the
1468       patches dir and enhanced.) (Requires protocol 29.)
1469
1470     - Added the --max-size option. (Promoted from the patches dir.)
1471
1472     - The daemon-mode options are now separated from the normal rsync
1473       options so that they can't be mixed together.  This makes it
1474       impossible to start a daemon that has improper default option values
1475       (which could cause problems when a client connects, such as hanging
1476       or crashing).
1477
1478     - The --bwlimit option may now be used in combination with --daemon
1479       to specify both a default value for the daemon side and a value
1480       that cannot be exceeded by a user-specified --bwlimit option.
1481
1482     - Added the "port" parameter to the rsyncd.conf file. (Promoted from
1483       the patches dir.)  Also added "address".  The command-line options
1484       take precedence over a config-file option, as expected.
1485
1486     - In _exit_cleanup(): when we are exiting with a partially-received
1487       file, we now flush any data in the write-cache before closing the
1488       partial file.
1489
1490     - The --inplace support was enhanced to work with --compare-dest,
1491       --link-dest, and (the new) --copy-dest options. (Requires protocol
1492       29.)
1493
1494     - Added the --dirs (-d) option for an easier way to copy directories
1495       without recursion.  Any directories that are encountered are created
1496       on the destination.  Specifying a directory with a trailing slash
1497       copies its immediate contents to the destination.
1498
1499     - The --files-from option now implies --dirs (-d).
1500
1501     - Added the --list-only option, which is mainly a way for the client to
1502       put the server into listing mode without needing to resort to any
1503       internal option kluges (e.g. the age-old use of "-r --exclude="/*/*"
1504       for a non-recursive listing).  This option is used automatically
1505       (behind the scenes) when a modern rsync speaks to a modern daemon,
1506       but may also be specified manually if you want to force the use of
1507       the --list-only option over a remote-shell connection.
1508
1509     - Added the --omit-dir-times (-O) option, which will avoid updating
1510       the modified time for directories when --times was specified.  This
1511       option will avoid an extra pass through the file-list at the end of
1512       the transfer (to tweak all the directory times), which may provide
1513       an appreciable speedup for a really large transfer. (Promoted from
1514       the patches dir.)
1515
1516     - Added the --filter (-f) option and its helper option, -F.  Filter
1517       rules are an extension to the existing include/exclude handling
1518       that also supports nested filter files as well as per-directory
1519       filter files (like .cvsignore, but with full filter-rule parsing).
1520       This new option was chosen in order to ensure that all existing
1521       include/exclude processing remained 100% compatible with older
1522       versions.  Protocol 29 is needed for full filter-rule support, but
1523       backward-compatible rules work with earlier protocol versions.
1524       (Promoted from the patches dir and enhanced.)
1525
1526     - Added the --delay-updates option that puts all updated files into
1527       a temporary directory (by default ".~tmp~", but settable via the
1528       --partial-dir=DIR option) until the end of the transfer.  This
1529       makes the updates a little more atomic for a large transfer.
1530
1531     - If rsync is put into the background, any output from --progress is
1532       reduced.
1533
1534     - Documented the "max verbosity" setting for rsyncd.conf.  (This
1535       setting was added a couple releases ago, but left undocumented.)
1536
1537     - The sender and the generator now double-check the file-list index
1538       they are given, and refuse to try to do a file transfer on a
1539       non-file index (since that would indicate that something had gone
1540       very wrong).
1541
1542     - Added the --itemize-changes (-i) option, which is a way to output a
1543       more detailed list of what files changed and in what way.  The effect
1544       is the same as specifying a --log-format of "%i %n%L" (see both the
1545       rsync and rsyncd.conf manpages).  Works with --dry-run too.
1546
1547     - Added the --fuzzy (-y) option, which attempts to find a basis file
1548       for a file that is being created from scratch.  The current algorithm
1549       only looks in the destination directory for the created file, but it
1550       does attempt to find a match based on size/mod-time (in case the file
1551       was renamed with no other changes) as well as based on a fuzzy
1552       name-matching algorithm.  This option requires protocol 29 because it
1553       needs the new file-sorting order.  (Promoted from patches dir and
1554       enhanced.) (Requires protocol 29.)
1555
1556     - Added the --remove-sent-files option, which lets you move files
1557       between systems.
1558
1559     - The hostname in HOST:PATH or HOST::PATH may now be an IPv6 literal
1560       enclosed in '[' and ']' (e.g. "[::1]").  (We already allowed IPv6
1561       literals in the rsync://HOST:PORT/PATH format.)
1562
1563     - When rsync recurses to build the file list, it no longer keeps open
1564       one or more directory handles from the dir's parent dirs.
1565
1566     - When building under windows, the default for --daemon is now to
1567       avoid detaching, requiring the new --detach option to force rsync
1568       to detach.
1569
1570     - The --dry-run option can now be combined with either --write-batch or
1571       --read-batch, allowing you to run a do-nothing test command to see
1572       what would happen without --dry-run.
1573
1574     - The daemon's "read only" config item now sets an internal read_only
1575       variable that makes extra sure that no write/delete calls on the
1576       read-only side can succeed.
1577
1578     - The log-format % escapes can now have a numeric field width in
1579       between the % and the escape letter (e.g. "%-40n %08p").
1580
1581     - Improved the option descriptions in the --help text.
1582
1583   SUPPORT FILES:
1584
1585     - Added atomic-rsync to the support dir: a perl script that will
1586       transfer some files using rsync, and then move the updated files into
1587       place all at once at the end of the transfer.  Only works when
1588       pulling, and uses --link-dest and a parallel hierarchy of files to
1589       effect its update.
1590
1591     - Added mnt-excl to the support dir: a perl script that takes the
1592       /proc/mounts file and translates it into a set of excludes that will
1593       exclude all mount points (even mapped mounts to the same disk).  The
1594       excludes are made relative to the specified source dir and properly
1595       anchored.
1596
1597     - Added savetransfer.c to the support dir: a C program that can make
1598       a copy of all the data that flows over the wire.  This lets you test
1599       for data corruption (by saving the data on both the sending side and
1600       the receiving side) and provides one way to debug a protocol error.
1601
1602     - Added rrsync to the support dir: this is an updated version of Joe
1603       Smith's restricted rsync perl script.  This helps to ensure that only
1604       certain rsync commands can be run by an ssh invocation.
1605
1606   INTERNAL:
1607
1608     - Added better checking of the checksum-header values that come over
1609       the socket.
1610
1611     - Merged a variety of file-deleting functions into a single function so
1612       that it is easier to maintain.
1613
1614     - Improved the type of some variables (particularly blocksize vars) for
1615       consistency and proper size.
1616
1617     - Got rid of the uint64 type (which we didn't need).
1618
1619     - Use a slightly more compatible set of core #include directives.
1620
1621     - Defined int32 in a way that ensures that the build dies if we can't
1622       find a variable with at least 32 bits.
1623
1624   PROTOCOL DIFFERENCES FOR VERSION 29:
1625
1626     - A 16-bit flag-word is transmitted after every file-list index.  This
1627       indicates what is changing between the sender and the receiver.  The
1628       generator now transmits an index and a flag-word to indicate when
1629       dirs and symlinks have changed (instead of producing a message),
1630       which makes the outputting of the information more consistent and
1631       less prone to screen corruption (because the local receiver/sender is
1632       now outputting all the file-change info messages).
1633
1634     - If a file is being hard-linked, the ITEM_XNAME_FOLLOWS bit is enabled
1635       in the flag-word and the name of the file that was linked immediately
1636       follows in vstring format (see below).
1637
1638     - If a file is being transferred with an alternate-basis file, the
1639       ITEM_BASIS_TYPE_FOLLOWS bit is enabled in the flag-word and a single
1640       byte follows, indicating what type of basis file was chosen.  If that
1641       indicates that a fuzzy-match was selected, the ITEM_XNAME_FOLLOWS bit
1642       is set in the flag-word and the name of the match in vstring format
1643       follows the basis byte.  A vstring is a variable length string that
1644       has its size written prior to the string, and no terminating null.
1645       If the string is from 1-127 bytes, the length is a single byte.  If
1646       it is from 128-32767 bytes, the length is written as ((len >> 8) |
1647       0x80) followed by (len % 0x100).
1648
1649     - The sending of exclude names is done using filter-rule syntax.  This
1650       means that all names have a prefixed rule indicator, even excludes
1651       (which used to be sent as a bare pattern, when possible).  The -C
1652       option will include the per-dir .cvsignore merge file in the list of
1653       filter rules so it is positioned correctly (unlike in some older
1654       transfer scenarios).
1655
1656     - Rsync sorts the filename list in a different way: it sorts the subdir
1657       names after the non-subdir names for each dir's contents, and it
1658       always puts a dir's contents immediately after the dir's name in the
1659       list.  (Previously an item named "foo.txt" would sort in between
1660       directory "foo/" and "foo/bar".)
1661
1662     - When talking to a protocol 29 rsync daemon, a list-only request
1663       is able to note this before the options are sent over the wire and
1664       the new --list-only option is included in the options.
1665
1666     - When the --stats bytes are sent over the wire (or stored in a batch),
1667       they now include two elapsed-time values: one for how long it took to
1668       build the file-list, and one for how long it took to send it over the
1669       wire (each expressed in thousandths of a second).
1670
1671     - When --delete-excluded is specified with some filter rules (AKA
1672       excludes), a client sender will now initiate a send of the rules to
1673       the receiver (older protocols used to omit the sending of excludes in
1674       this situation since there were no receiver-specific rules that
1675       survived --delete-excluded back then).  Note that, as with all the
1676       filter-list sending, only items that are significant to the other
1677       side will actually be sent over the wire, so the filter-rule list
1678       that is sent in this scenario is often empty.
1679
1680     - An index equal to the file-list count is sent as a keep-alive packet
1681       from the generator to the sender, which then forwards it on to the
1682       receiver.  This normally invalid index is only a valid keep-alive
1683       packet if the 16-bit flag-word that follows it contains a single bit
1684       (ITEM_IS_NEW, which is normally an illegal flag to appear alone).
1685
1686     - A protocol-29 batch file includes a bit for the setting of the --dirs
1687       option and for the setting of the --compress option.  Also, the shell
1688       script created by --write-batch will use the --filter option instead
1689       of --exclude-from to capture any filter rules.
1690
1691   BUILD CHANGES:
1692
1693     - Handle an operating system that use mkdev() in place of makedev().
1694
1695     - Improved configure to better handle cross-compiling.
1696
1697 \f
1698 NEWS for rsync 2.6.3 (30 Sep 2004)
1699 Protocol: 28 (unchanged)
1700 Changes since 2.6.2:
1701
1702   SECURITY FIXES:
1703
1704     - A bug in the sanitize_path routine (which affects a non-chrooted
1705       rsync daemon) could allow a user to craft a pathname that would get
1706       transformed into an absolute path for certain options (but not for
1707       file-transfer names).  If you're running an rsync daemon with chroot
1708       disabled, *please upgrade*, ESPECIALLY if the user privs you run
1709       rsync under is anything above "nobody".
1710
1711   OUTPUT CHANGES (ATTN: those using a script to parse the verbose output):
1712
1713     - Please note that the 2-line footer (output when verbose) now uses the
1714       term "sent" instead of "wrote" and "received" instead of "read".  If
1715       you are not parsing the numeric values out of this footer, a script
1716       would be better off using the empty line prior to the footer as the
1717       indicator that the verbose output is over.
1718       
1719     - The output from the --stats option was similarly affected to change
1720       "written" to "sent" and "read" to "received".
1721
1722     - Rsync ensures that a filename that contains a newline gets mentioned
1723       with each newline transformed into a question mark (which prevents a
1724       filename from causing an empty line to be output).
1725
1726     - The "backed up ..." message that is output when at least 2 --verbose
1727       options are specified is now the same both with and without the
1728       --backup-dir option.
1729
1730   BUG FIXES:
1731
1732     - Fixed a crash bug that might appear when --delete was used and
1733       multiple source directories were specified.
1734
1735     - Fixed a 32-bit truncation of the file length when generating the
1736       checksums.
1737
1738     - The --backup code no longer attempts to create some directories
1739       over and over again (generating warnings along the way).
1740
1741     - Fixed a bug in the reading of the secrets file (by the daemon) and
1742       the password file (by the client):  the files no longer need to be
1743       terminated by a newline for their content to be read in.
1744
1745     - If a file has a read error on the sending side or the reconstructed
1746       data doesn't match the expected checksum (perhaps due to the basis
1747       file changing during the transfer), the receiver will no longer
1748       retain the resulting file unless the --partial option was specified.
1749       (Note: for the read-error detection to work, neither side can be
1750       older than 2.6.3 -- older receivers will always retain the file, and
1751       older senders don't tell the receiver that the file had a read
1752       error.)
1753
1754     - If a file gets resent in a single transfer and the --backup option
1755       is enabled, rsync no longer performs a duplicate backup (it used to
1756       overwrite the original file in the backup area).
1757
1758     - Files specified in the daemon's "exclude" or "exclude from" config
1759       items are now excluded from being uploaded (assuming that the module
1760       allows uploading at all) in addition to the old download exclusion.
1761
1762     - Got rid of a potential hang in the receiver when near the end of a
1763       phase.
1764
1765     - When using --backup without a --backup-dir, rsync no longer preserves
1766       the modify time on directories.  This avoids confusing NFS.
1767
1768     - When --copy-links (-L) is specified, we now output a separate error
1769       for a symlink that has no referent instead of claiming that a file
1770       "vanished".
1771
1772     - The --copy-links (-L) option no longer has the side-effect of telling
1773       the receiving side to follow symlinks.  See the --keep-dirlinks
1774       option (mentioned below) for a way to specify that behavior.
1775
1776     - Error messages from the daemon server's option-parsing (such as
1777       refused options) are now successfully transferred back to the client
1778       (the server used to fail to send the message because the socket
1779       wasn't in the right state for the message to get through).
1780
1781     - Most transfer errors that occur during a daemon transfer are now
1782       returned to the user in addition to being logged (some messages are
1783       intended to be daemon-only and are not affected by this).
1784
1785     - Fixed a bug in the daemon authentication code when using one of the
1786       batch-processing options.
1787
1788     - We try to work around some buggy IPv6 implementations that fail to
1789       implement IPV6_V6ONLY.  This should fix the "address in use" error
1790       that some daemons get when running on an OS with a buggy IPv6
1791       implementation.  Also, if the new code gets this error, we might
1792       suggest that the user specify --ipv4 or --ipv6 (if we think it will
1793       help).
1794
1795     - When the remote rsync dies, make a better effort to recover any error
1796       messages it may have sent before dying (the local rsync used to just
1797       die with a socket-write error).
1798
1799     - When using --delete and a --backup-dir that contains files that are
1800       hard-linked to their destination equivalents, rsync now makes sure
1801       that removed files really get removed (avoids a really weird rename()
1802       behavior).
1803
1804     - Avoid a bogus run-time complaint about a lack of 64-bit integers when
1805       the int64 type is defined as an off_t and it actually has 64-bits.
1806
1807     - Added a configure check for open64() without mkstemp64() so that we
1808       can avoid using mkstemp() when such a combination is encountered.
1809       This bypasses a problem writing out large temp files on OSes such as
1810       AIX and HP-UX.
1811
1812     - Fixed an age-old crash problem with --read-batch on a local copy
1813       (rsync was improperly assuming --whole-file for the local copy).
1814
1815     - When --dry-run (-n) is used and the destination directory does not
1816       exist, rsync now produces a correct report of files that would be
1817       sent instead of dying with a chdir() error.
1818
1819     - Fixed a bug that could cause a slow-to-connect rsync daemon to die
1820       with an error instead of waiting for the connection to finish.
1821
1822     - Fixed an ssh interaction that could cause output to be lost when the
1823       user chose to combine the output of rsync's stdout and stderr (e.g.
1824       using the "2>&1").
1825
1826     - Fixed an option-parsing bug when --files-from got passed to a daemon.
1827
1828   ENHANCEMENTS:
1829
1830     - Added the --partial-dir=DIR option that lets you specify where to
1831       (temporarily) put a partially transferred file (instead of over-
1832       writing the destination file).  E.g.  --partial-dir=.rsync-partial
1833       Also added support for the RSYNC_PARTIAL_DIR environment variable
1834       that, when found, transforms a regular --partial option (such as
1835       the convenient -P option) into one that also specifies a directory.
1836
1837     - Added --keep-dirlinks (-K), which allows you to symlink a directory
1838       onto another partition on the receiving side and have rsync treat it
1839       as matching a normal directory from the sender.
1840
1841     - Added the --inplace option that tells rsync to write each destination
1842       file without using a temporary file.  The matching of existing data
1843       in the destination file can be severely limited by this, but there
1844       are also cases where this is more efficient (such as appending data).
1845       Use only when needed (see the man page for more details).
1846
1847     - Added the "write only" option for the daemon's config file.
1848
1849     - Added long-option names for -4 and -6 (namely --ipv4 and --ipv6)
1850       and documented all these options in the man page.
1851
1852     - Improved the handling of the --bwlimit option so that it's less
1853       bursty, more accurate, and works properly over a larger range of
1854       values.
1855
1856     - The rsync daemon-over-ssh code now looks for SSH_CONNECTION and
1857       SSH2_CLIENT in addition to SSH_CLIENT to figure out the IP address.
1858
1859     - Added the --checksum-seed=N option for advanced users.
1860
1861     - Batch writing/reading has a brand-new implementation that is simpler,
1862       fixes a few weird problems with the old code (such as no longer
1863       sprinkling the batch files into different dirs or even onto different
1864       systems), and is much less intrusive into the code (making it easier
1865       to maintain for the future).  The new code generates just one data
1866       file instead of three, which makes it possible to read the batch on
1867       stdin via a remote shell.  Also, the old requirement of forcing the
1868       same fixed checksum-seed for all batch processing has been removed.
1869
1870     - If an rsync daemon has a module set with "list = no" (which hides its
1871       presence in the list of available modules), a user that fails to
1872       authenticate gets the same "unknown module" error that they would get
1873       if the module were actually unknown (while still logging the real
1874       error to the daemon's log file).  This prevents fishing for module
1875       names.
1876
1877     - The daemon's "refuse options" config item now allows you to match
1878       option names using wildcards and/or the single-letter option names.
1879
1880     - Each transferred file now gets its permissions and modified-time
1881       updated before the temp-file gets moved into place.  Previously, the
1882       finished file would have a very brief window where its permissions
1883       disallowed all group and world access.
1884
1885     - Added the ability to parse a literal IPv6 address in an "rsync:" URL
1886       (e.g. rsync://[2001:638:500:101::21]:873/module/dir).
1887
1888     - The daemon's wildcard expanding code can now handle more than 1000
1889       filenames (it's now limited by memory instead of having a hard-wired
1890       limit).
1891
1892   INTERNAL:
1893
1894     - Some cleanup in the exclude code has saved some per-exclude memory
1895       and made the code easier to maintain.
1896
1897     - Improved the argv-overflow checking for a remote command that has a
1898       lot of args.
1899
1900     - Use rsyserr() in the various places that were still calling rprintf()
1901       with strerror() as an arg.
1902
1903     - If an rsync daemon is listening on multiple sockets (to handle both
1904       IPv4 and IPv6 to a single port), we now close all the unneeded file
1905       handles after we accept a connection (we used to close just one of
1906       them).
1907
1908     - Optimized the handling of larger block sizes (rsync used to slow to a
1909       crawl if the block size got too large).
1910
1911     - Optimized away a loop in hash_search().
1912
1913     - Some improvements to the sanitize_path() and clean_fname() functions
1914       makes them more efficient and produce better results (while still
1915       being compatible with the file-name cleaning that gets done on both
1916       sides when sending the file-list).
1917
1918     - Got rid of alloc_sanitize_path() after adding a destination-buffer
1919       arg to sanitize_path() made it possible to put all the former's
1920       functionality into the latter.
1921
1922     - The file-list that is output when at least 4 verbose options are
1923       specified reports the uid value on the sender even when rsync is
1924       not running as root (since we might be sending to a root receiver).
1925
1926   BUILD CHANGES:
1927
1928     - Added a "gen" target to rebuild most of the generated files,
1929       including configure, config.h.in, the man pages, and proto.h.
1930
1931     - If "make proto" doesn't find some changes in the prototypes, the
1932       proto.h file is left untouched (its time-stamp used to always be
1933       updated).
1934
1935     - The variable $STRIP (that is optionally set by the install-strip
1936       target's rule) was changed to $INSTALL_STRIP because some systems
1937       have $STRIP already set in the environment.
1938
1939     - Fixed a build problem when SUPPORT_HARD_LINKS isn't defined.
1940
1941     - When cross-compiling, the gettimeofday() function is now assumed to
1942       be a modern version that takes two-args (since we can't test it).
1943
1944   DEVELOPER RELATED:
1945
1946     - The scripts in the testsuite dir were cleaned up a bit and a few
1947       new tests added.
1948
1949     - Some new diffs were added to the patches dir, and some accepted
1950       ones were removed.
1951
1952 \f
1953 NEWS for rsync 2.6.2 (30 Apr 2004)
1954 Protocol: 28 (unchanged)
1955 Changes since 2.6.1:
1956
1957   BUG FIXES:
1958
1959     - Fixed a major bug in the sorting of the filenames when --relative
1960       is used for some sources (just sources such as "/" and "/*" were
1961       affected).  This fix ensures that we ask for the right file-list
1962       item when requesting changes from the sender.
1963
1964     - Rsync now checks the return value of the close() function to
1965       better report disk-full problems on an NFS file system.
1966
1967     - Restored the old daemon-server behavior of logging error messages
1968       rather than returning them to the user.  (A better long-term fix
1969       will be sought in the future.)
1970
1971     - An obscure uninitialized-variable bug was fixed in the uid/gid
1972       code.  (This bug probably had no ill effects.)
1973
1974   BUILD CHANGES:
1975
1976     - Got rid of the configure check for sys/sysctl.h (it wasn't used
1977       and was causing a problem on some systems).  Also improved the
1978       broken-largefile-locking test to try to avoid failure due to an
1979       NFS build-dir.
1980
1981     - Fixed a compile problem on systems that don't define
1982       AI_NUMERICHOST.
1983
1984     - Fixed a compile problem in the popt source for compilers that
1985       don't support __attribute__.
1986
1987   DEVELOPER RELATED:
1988
1989     - Improved the testsuite's "merge" test to work on OSF1.
1990
1991     - Two new diffs were added to the patches dir.
1992
1993 \f
1994 NEWS for rsync 2.6.1 (26 Apr 2004)
1995 Protocol: 28 (changed)
1996 Changes since 2.6.0:
1997
1998   SECURITY FIXES:
1999
2000     - Paths sent to an rsync daemon are more thoroughly sanitized when
2001       chroot is not used.  If you're running a non-read-only rsync
2002       daemon with chroot disabled, *please upgrade*, ESPECIALLY if the
2003       user privs you run rsync under is anything above "nobody".
2004
2005   ENHANCEMENTS:
2006
2007     - Lower memory use, more optimal transfer of data over the socket,
2008       and lower CPU usage (see the INTERNAL section for details).
2009
2010     - The RSYNC_PROXY environment variable can now contain a
2011       "USER:PASS@" prefix before the "HOST:PORT" information.
2012       (Bardur Arantsson)
2013
2014     - The --progress output now mentions how far along in the transfer
2015       we are, including both a count of files transferred and a
2016       percentage of the total file-count that we've processed.  It also
2017       shows better current-rate-of-transfer and remaining-transfer-time
2018       values.
2019
2020     - Documentation changes now attempt to describe some often mis-
2021       understood features more clearly.
2022
2023   BUG FIXES:
2024
2025     - When -x (--one-file-system) is combined with -L (--copy-links) or
2026       --copy-unsafe-links, no symlinked files are skipped, even if the
2027       referent file is on a different filesystem.
2028
2029     - The --link-dest code now works properly for a non-root user when
2030       (1) the UIDs of the source and destination differ and -o was
2031       specified, or (2) when the group of the source can't be used on
2032       the destination and -g was specified.
2033
2034     - Fixed a bug in the handling of -H (hard-links) that might cause
2035       the expanded PATH/NAME value of the current item to get
2036       overwritten (due to an expanded-name caching bug).
2037       
2038     - We now reset the "new data has been sent" flag at the start of
2039       each file we send.  This makes sure that an interrupted transfer
2040       with the --partial option set doesn't keep a shorter temp file
2041       than the current basis file when no new data has been transferred
2042       over the wire for that file.
2043
2044     - Fixed a byte-order problem in --batch-mode on big-endian machines.
2045       (Jay Fenlason)
2046
2047     - When using --cvs-exclude, the exclude items we get from a
2048       per-directory's .cvsignore file once again only affect that one
2049       directory (not all following directories too).  The items are also
2050       now properly word-split and parsed without any +/- prefix parsing.
2051
2052     - When specifying the USER@HOST: prefix for a file, the USER part
2053       can now contain an '@', if needed (i.e. the last '@' is used to
2054       find the HOST, not the first).
2055
2056     - Fixed some bugs in the handling of group IDs for non-root users:
2057       (1) It properly handles a group that the sender didn't have a name
2058       for (it would previously skip changing the group on any files in
2059       that group).  (2) If --numeric-ids is used, rsync no longer
2060       attempts to set groups that the user doesn't have the permission
2061       to set.
2062
2063     - Fixed the "refuse options" setting in the rsyncd.conf file.
2064
2065     - Improved the -x (--one-file-system) flag's handling of any mount-
2066       point directories we encounter.  It is both more optimal (in that
2067       it no longer does a useless scan of the contents of the mount-
2068       point dirs) and also fixes a bug where a remapped mount of the
2069       original filesystem could get discovered in a subdir we should be
2070       ignoring.
2071
2072     - Rsync no longer discards a double-slash at the start of a filename
2073       when trying to open the file.  It also no longer constructs names
2074       that start with a double slash (unless the user supplied them).
2075
2076     - Path-specifying options to a daemon should now work the same with
2077       or without chroot turned on.  Previously, such a option (such as
2078       --link-dest) would get its absolute path munged into a relative
2079       one if chroot was not on, making that setting fairly useless.
2080       Rsync now transforms the path into one that is based on the
2081       module's base dir when chroot is not enabled.
2082
2083     - Fixed a compatibility problem interacting with older rsync
2084       versions that might send us an empty --suffix value without
2085       telling us that --backup-dir was specified.
2086
2087     - The "hosts allow" option for a daemon-over-remote-shell process
2088       now has improved support for IPv6 addresses and a fix for systems
2089       that have a length field in their socket structs.
2090
2091     - Fixed the ability to request an empty backup --suffix when sending
2092       files to an rsync daemon.
2093
2094     - Fixed an option-parsing bug when --files-from was sent to a server
2095       sender.
2096
2097   INTERNAL:
2098
2099     - Most of the I/O is now buffered, which results in a pretty large
2100       speedup when running under MS Windows.  (Craig Barratt)
2101
2102     - Optimizations to the name-handling/comparing code have made some
2103       significant reductions in user-CPU time for large file sets.
2104
2105     - Some cleanup of the variable types make the code more consistent.
2106
2107     - Reduced memory requirements of hard link preservation.
2108       (J.W. Schultz)
2109
2110     - Implemented a new algorithm for hard-link handling that speeds up
2111       the code significantly.  (J.W. Schultz and Wayne Davison)
2112
2113     - The --hard-link option now uses the first existing file in the
2114       group of linked files as the basis for the transfer.  This
2115       prevents the sub-optimal transfer of a file's data when a new
2116       hardlink is added on the sending side and it sorts alphabetically
2117       earlier in the list than the files that are already present on the
2118       receiving side.
2119
2120     - Dropped support for protocol versions less than 20 (2.3.0 released
2121       15 Mar 1999) and activated warnings for protocols less than 25
2122       (2.5.0 released 23 Aug 2001). (Wayne Davison and J.W. Schultz,
2123       severally)
2124
2125     - More optimal data transmission for --hard-links (protocol 28).
2126
2127     - More optimal data transmission for --checksum (protocol 28).
2128
2129     - Less memory is used when --checksum is specified.
2130
2131     - Less memory is used in the file list (a per-file savings).
2132
2133     - The generator is now better about not modifying the file list
2134       during the transfer in order to avoid a copy-on-write memory
2135       bifurcation (on systems where fork() uses shared memory).
2136       Previously, rsync's shared memory would slowly become unshared,
2137       resulting in real memory usage nearly doubling on the receiving
2138       side by the end of the transfer.  Now, as long as permissions
2139       are being preserved, the shared memory should remain that way
2140       for the entire transfer.
2141
2142     - Changed hardlink info and file_struct + strings to use allocation
2143       pools.  This reduces memory use for large file-sets and permits
2144       freeing memory to the OS.  (J.W. Schultz) 
2145
2146     - The 2 pipes used between the receiver and generator processes
2147       (which are forked on the same machine) were reduced to 1 pipe and
2148       the protocol improved so that (1) it is now impossible to have the
2149       "redo" pipe fill up and hang rsync, and (2) trailing messages from
2150       the receiver don't get lost on their way through the generator
2151       over to the sender (which mainly affected hard-link messages and
2152       verbose --stats output).
2153
2154     - Improved the internal uid/gid code to be more portable and a
2155       little more optimized.
2156
2157     - The device numbers sent when using --devices are now sent as
2158       separate major/minor values with 32-bit accuracy (protocol 28).
2159       Previously, the copied devices were sent as a single 32-bit
2160       number.  This will make inter-operation of 64-bit binaries more
2161       compatible with their 32-bit brethren (with both ends of the
2162       connection are using protocol 28).  Note that optimizations in the
2163       binary protocol for sending the device numbers often results in
2164       fewer bytes being used than before, even though more precision is
2165       now available.
2166
2167     - Some cleanup of the exclude/include structures and its code made
2168       things clearer (internally), simpler, and more efficient.
2169
2170     - The reading & writing of the file-list in batch-mode is now
2171       handled by the same code that sends & receives the list over the
2172       wire.  This makes it much easier to maintain.  (Note that the
2173       batch code is still considered to be experimental.)
2174
2175   BUILD CHANGES:
2176
2177     - The configure script now accepts --with-rsyncd-conf=PATH to
2178       override the default value of the /etc/rsyncd.conf file.
2179
2180     - Fixed configure bug when running "./configure --disable-ipv6".
2181
2182     - Fixed compilation problem on Tru64 Unix (having to do with
2183       sockaddr.sa_len and sockaddr.sin_len).
2184
2185   DEVELOPER RELATED:
2186
2187     - Fixed "make test" bug when build dir is not the source dir.
2188
2189     - Added a couple extra diffs in the "patches" dir, removed the ones
2190       that got applied, and rebuilt the rest.
2191
2192 \f
2193 NEWS for rsync 2.6.0 (1 Jan 2004)
2194 Protocol: 27 (changed)
2195 Changes since 2.5.7:
2196
2197   ENHANCEMENTS:
2198
2199     * "ssh" is now the default remote shell for rsync.  If you want to
2200       change this, configure like this:  "./configure --with-rsh=rsh".
2201
2202     * Added --files-from, --no-relative, --no-implied-dirs, and --from0.
2203       Note that --from0 affects the line-ending character for all the
2204       files read by the --*-from options. (Wayne Davison)
2205
2206     * Length of csum2 is now per-file starting with protocol version
2207       27. (J.W. Schultz)
2208
2209     * Per-file dynamic block size is now sqrt(file length).  The
2210       per-file checksum size is determined according to an algorithm
2211       provided by Donovan Baarda which reduces the probability of rsync
2212       algorithm corrupting data and falling back using the whole md4
2213       checksums. (J.W. Schultz, Donovan Baarda)
2214
2215     * The --stats option no longer includes the (debug) malloc summary
2216       unless the verbose option was specified at least twice.
2217
2218     * Added a new error/warning code for when files vanish from the
2219       sending side.  Made vanished source files not interfere with the
2220       file-deletion pass when --delete-after was specified.
2221
2222     * Various trailing-info sections are now preceded by a newline.
2223
2224   BUG FIXES:
2225
2226     * Fixed several exclude/include matching bugs when using wild-cards.
2227       This has a several user-visible effects, all of which make the
2228       matching more consistent and intuitive.  This should hopefully not
2229       cause anyone problems since it makes the matching work more like
2230       what people are expecting. (Wayne Davison)
2231
2232       - A pattern with a "**" no longer causes a "*" to match slashes.
2233         For example, with "/*/foo/**", "foo" must be 2 levels deep.
2234         [If your string has BOTH "*" and "**" wildcards, changing the
2235         "*" wildcards to "**" will provide the old behavior in all
2236         versions.]
2237
2238       - "**/foo" now matches at the base of the transfer (like /foo
2239         does).  [Use "/**/foo" to get the old behavior in all versions.]
2240
2241       - A non-anchored wildcard term floats to match beyond the base of
2242         the transfer.  E.g. "CVS/R*" matches at the end of the path,
2243         just like the non-wildcard term "CVS/Root" does. [Use "/CVS/R*"
2244         to get the old behavior in all versions.]
2245
2246       - Including a "**" in the match term causes it to be matched
2247         against the entire path, not just the name portion, even if
2248         there aren't any interior slashes in the term.  E.g. "foo**bar"
2249         would exclude "/path/foo-bar" (just like before) as well as
2250         "/foo-path/baz-bar" (unlike before).  [Use "foo*bar" to get the
2251         old behavior in all versions.]
2252
2253     * The exclude list specified in the daemon's config file is now
2254       properly applied to the pulled items no matter how deep the
2255       user's file-args are in the source tree.  (Wayne Davison)
2256
2257     * For protocol version >= 27, mdfour_tail() is called when the
2258       block size (including checksum_seed) is a multiple of 64.
2259       Previously it was not called, giving the wrong MD4 checksum.
2260       (Craig Barratt)
2261
2262     * For protocol version >= 27, a 64 bit bit counter is used in
2263       mdfour.c as required by the RFC.  Previously only a 32 bit bit
2264       counter was used, causing incorrect MD4 file checksums for
2265       file sizes >= 512MB - 4.  (Craig Barratt)
2266
2267     * Fixed a crash bug when interacting with older rsync versions and
2268       multiple files of the same name are destined for the same dir.
2269       (Wayne Davison)
2270
2271     * Keep tmp names from overflowing MAXPATHLEN.
2272
2273     * Make --link-dest honor the absence of -p, -o, and -g.
2274
2275     * Made rsync treat a trailing slash in the destination in a more
2276       consistent manner.
2277
2278     * Fixed file I/O error detection.  (John Van Essen)
2279
2280     * Fixed bogus "malformed address {hostname}" message in rsyncd log
2281       when checking IP address against hostnames from "hosts allow"
2282       and "hosts deny" parameters in config file.
2283
2284     * Print heap statistics when verbose >= 2 instead of when >= 1.
2285
2286     * Fixed a compression (-z) bug when syncing a mostly-matching file
2287       that contains already-compressed data.  (Yasuoka Masahiko and
2288       Wayne Davison)
2289
2290     * Fixed a bug in the --backup code that could cause deleted files
2291       to not get backed up.
2292
2293     * When the backup code makes new directories, create them with mode
2294       0700 instead of 0755 (since the directory permissions in the
2295       backup tree are not yet copied from the main tree).
2296
2297     * Call setgroups() in a more portable manner.
2298
2299     * Improved file-related error messages to better indicate exactly
2300       what pathname failed. (Wayne Davison)
2301
2302     * Fixed some bugs in the handling of --delete and --exclude when
2303       using the --relative (-R) option. (Wayne Davison)
2304
2305     * Fixed bug that prevented regular files from replacing
2306       special files and caused a directory in --link-dest or
2307       --compare-dest to block the creation of a file with the
2308       same path.  A directory still cannot be replaced by a
2309       regular file unless --delete specified.  (J.W. Schultz)
2310
2311     * Detect and report when open or opendir succeed but read and
2312       readdir fail caused by network filesystem issues and truncated
2313       files.  (David Norwood, Michael Brown, J.W. Schultz)
2314
2315     * Added a fix that should give ssh time to restore the tty settings
2316       if the user presses Ctrl-C at an ssh password prompt.
2317
2318   INTERNAL:
2319
2320     * Eliminated vestigial support for old versions that we stopped
2321       supporting. (J.W. Schultz)
2322
2323     * Simplified some of the option-parsing code. (Wayne Davison)
2324
2325     * Some cleanup made to the exclude code, as well as some new
2326       defines added to enhance readability. (Wayne Davison)
2327
2328     * Changed the protocol-version code so that it can interact at a
2329       lower protocol level than the maximum supported by both sides.
2330       Added an undocumented option, --protocol=N, to force the value
2331       we advertise to the other side (primarily for testing purposes).
2332       (Wayne Davison)
2333
2334 \f
2335 NEWS for rsync 2.5.7 (4 Dec 2003)
2336 Protocol: 26 (unchanged)
2337 Changes since 2.5.6:
2338
2339   SECURITY FIXES:
2340
2341     * Fix buffer handling bugs.  (Andrew Tridgell, Martin Pool, Paul
2342       Russell, Andrea Barisani)
2343
2344 \f
2345 NEWS for rsync 2.5.6, aka "the dwd-between-jobs release" (26 Jan 2003)
2346 Protocol: 26 (unchanged)
2347 Changes since 2.5.5:
2348
2349   ENHANCEMENTS:
2350
2351     * The --delete-after option now implies --delete.  (Wayne Davison)
2352
2353     * The --suffix option can now be used with --backup-dir.  (Michael
2354       Zimmerman)
2355
2356     * Combining "::" syntax with the --rsh/-e option now uses the
2357       specified remote-shell as a transport to talk to a (newly-spawned)
2358       server-daemon.  This allows someone to use daemon features, such
2359       as modules, over a secure protocol, such as ssh.  (JD Paul)
2360
2361     * The rsync:// syntax for daemon connections is now accepted in the
2362       destination field.
2363
2364     * If the file name given to --include-from or --exclude-from is "-",
2365       rsync will read from standard input.  (J.W. Schultz)
2366
2367     * New option --link-dest which is like --compare-dest except that
2368       unchanged files are hard-linked in to the destination directory.
2369       (J.W. Schultz)
2370
2371     * Don't report an error if an excluded file disappears during an
2372       rsync run.  (Eugene Chupriyanov and Bo Kersey)
2373
2374     * Added .svn to --cvs-exclude list to support subversion.  (Jon
2375       Middleton)
2376
2377     * Properly support IPv6 addresses in the rsyncd.conf "hosts allow"
2378       and "hosts deny" fields.  (Hideaki Yoshifuji)
2379
2380     * Changed exclude file handling to permit DOS or MAC style line
2381       terminations.  (J.W. Schultz)
2382
2383     * Ignore errors from chmod when -p/-a/--preserve-perms is not set.
2384       (Dave Dykstra)
2385
2386   BUG FIXES:
2387
2388     * Fix "forward name lookup failed" errors on AIX 4.3.3.  (John
2389       L. Allen, Martin Pool)
2390
2391     * Generate each file's rolling-checksum data as we send it, not
2392       in a separate (memory-eating) pass before hand.  This prevents
2393       timeout errors on really large files. (Stefan Nehlsen)
2394
2395     * Fix compilation on Tru64.  (Albert Chin, Zoong Pham)
2396
2397     * Better handling of some client-server errors.  (Martin Pool)
2398
2399     * Fixed a crash that would occur when sending a list of files that
2400       contains a duplicate name (if it sorts to the end of the file
2401       list) and using --delete.  (Wayne Davison)
2402
2403     * Fixed the file-name duplicate-removal code when dealing with multiple
2404       dups in a row. (Wayne Davison)
2405
2406     * Fixed a bug that caused rsync to lose the exit status of its child
2407       processes and sometimes return an exit code of 0 instead of showing
2408       an error.  (David R. Staples, Dave Dykstra)
2409
2410     * Fixed bug in --copy-unsafe-links that caused it to be completely
2411       broken.  (Dave Dykstra)
2412
2413     * Prevent infinite recursion in cleanup code under certain circumstances.
2414       (Sviatoslav Sviridov and Marc Espie)
2415
2416     * Fixed a bug that prevented rsync from creating intervening directories
2417       when --relative-paths/-R is set.  (Craig Barratt)
2418
2419     * Prevent "Connection reset by peer" messages from Cygwin. (Randy O'Meara)
2420
2421   INTERNAL:
2422
2423     * Many code cleanups and improved internal documentation.  (Martin
2424       Pool, Nelson Beebe)
2425
2426     * Portability fixes. (Dave Dykstra and Wayne Davison)
2427
2428     * More test cases.  (Martin Pool)
2429
2430     * Some test-case fixes.  (Brian Poole, Wayne Davison)
2431
2432     * Updated included popt to the latest vendor drop, version 1.6.4.
2433       (Jos Backus)
2434
2435     * Updated config.guess and config.sub to latest versions; this
2436       means rsync should build on more platforms.  (Paul Green)
2437
2438 \f
2439 NEWS for rsync 2.5.5, aka Snowy River (2 Apr 2002)
2440 Protocol: 26 (unchanged)
2441 Changes since 2.5.4:
2442
2443   ENHANCEMENTS:
2444
2445     * With --progress, when a transfer is complete show the time taken;
2446       otherwise show expected time to complete. (Cameron Simpson)
2447
2448     * Make "make install-strip" works properly, and "make install"
2449       accepts a DESTDIR variable for help in building binary packages.
2450       (Peter Breitenlohner, Greg Louis)
2451
2452     * If configured with --enable-maintainer-mode, then on receipt of
2453       a fatal signal rsync will try to open an xterm running gdb,
2454       similarly to Samba's "panic action" or GNOME's bug-buddy.
2455       (Martin Pool)
2456
2457
2458   BUG FIXES:
2459
2460     * Fix situation where failure to fork (e.g. because out of process
2461       slots) would cause rsync to kill all processes owned by the
2462       current user.  Yes, really!  (Paul Haas, Martin Pool)
2463
2464     * Fix test suite on Solaris.  (Jos Backus, Martin Pool)
2465
2466     * Fix minor memory leak in socket code.  (Dave Dykstra, Martin
2467       Pool.)
2468
2469     * Fix --whole-file problem that caused it to be the default even
2470       for remote connections.  (Martin Pool, Frank Schulz)
2471
2472     * Work around bug in Mac OS X mkdir(2), which cannot handle
2473       trailing slashes.
2474       <http://www.opensource.apple.com/bugs/X/BSD%20Kernel/2734739.html>
2475       (Martin Pool)
2476
2477     * Improved network error handling.  (Greg A. Woods)
2478
2479 \f
2480 NEWS for rsync 2.5.4, aka "Imitation lizard skin" (13 Mar 2002)
2481 Protocol: 26 (unchanged)
2482 Changes since 2.5.3:
2483
2484   BUG FIXES:
2485
2486     * Additional fix for zlib double-free bug.  (Martin Pool, Andrew
2487       Tridgell) (CVE CAN-2002-0059)
2488
2489   ENHANCEMENTS:
2490
2491     * Merge in changes from zlib 1.1.3 to zlib 1.1.4.  (Jos Backus)
2492       (Note that rsync still uses a custom version of zlib; you can
2493       not just link against a system library.  See zlib/README.rsync)
2494
2495     * Additional test cases for --compress.  (Martin Pool)
2496
2497 \f
2498 NEWS for rsync 2.5.3, aka "Happy 26" (11 Mar 2002)
2499 Protocol: 26 (unchanged)
2500 Changes since 2.5.2:
2501
2502   SECURITY FIXES:
2503
2504     * Make sure that supplementary groups are removed from a server
2505       process after changing uid and gid. (Ethan Benson) (Debian bug
2506       #132272, CVE CAN-2002-0080)
2507
2508   BUG FIXES:
2509
2510     * Fix zlib double-free bug.  (Owen Taylor, Mark J Cox) (CVE
2511       CAN-2002-0059)
2512
2513     * Fixed problem that in many cases caused the error message
2514         unexpected read size of 0 in map_ptr
2515       and resulted in the wrong data being copied.
2516
2517     * Fixed compilation errors on some systems caused by the use of
2518       "unsigned int64" in rsync.h.
2519
2520     * Fixed problem on systems such as Sunos4 that do not support realloc
2521       on a NULL pointer; error was "out of memory in flist_expand".
2522
2523     * Fix for rsync server processes hanging around after the client
2524       unexpectedly disconnects.  (Colin Walters) (Debian bug #128632)
2525
2526     * Cope with BSD systems on which mkdir() will not accept a trailing
2527       slash.
2528
2529   ENHANCEMENTS:
2530
2531     * Merge in changes from zlib 1.1.2 to zlib 1.1.3.  (Note that
2532       rsync still uses a custom version of zlib; you can not just link
2533       against a system library.  See zlib/README.rsync)
2534
2535     * Command to initiate connections is only shown with -vv, rather
2536       than -v as in 2.5.2.  Output from plain -v is more similar to
2537       what was historically used so as not to break scripts that try
2538       to parse the output.
2539
2540     * Added --no-whole-file and --no-blocking-io options (Dave Dykstra)
2541
2542     * Made the --write-batch and --read-batch options actually work
2543       and added documentation in the man page (Jos Backus)
2544
2545     * If the daemon is unable to fork a child to accept a connection,
2546       print an error message.  (Colin Walters)
2547
2548 \f
2549 NEWS for rsync 2.5.2 (26 Jan 2002)
2550 Protocol: 26 (changed)
2551 Changes since 2.5.1:
2552
2553   SECURITY FIXES:
2554
2555     * Signedness security patch from Sebastian Krahmer
2556       <krahmer@suse.de> -- in some cases we were not sufficiently
2557       careful about reading integers from the network.
2558
2559   BUG FIXES:
2560
2561     * Fix possible string mangling in log files.
2562
2563     * Fix for setting local address of outgoing sockets.
2564
2565     * Better handling of hardlinks and devices on platforms with
2566       64-bit dev_t or ino_t.
2567
2568     * Name resolution on machines supporting IPv6 is improved.
2569
2570     * Fix for device nodes.  (dann frazier)   (Debian #129135)
2571
2572   ENHANCEMENTS:
2573
2574     * With -v, rsync now shows the command used to initiate an ssh/rsh
2575       connection.
2576
2577     * --statistics now shows memory heap usage on platforms that
2578       support mallinfo().
2579
2580     * "The Ted T'so school of program optimization": make progress
2581       visible and people will think it's faster.  (With --progress,
2582       rsync will show you how many files it has seen as it builds the
2583       file_list, giving some indication that it has not hung.)
2584
2585     * Improvements to batch mode support.  This is still experimental
2586       but testing would be welcome.   (Jos Backus)
2587
2588     * New --ignore-existing option, patch previously distributed with
2589       Vipul's Razor.  (Debian #124286)
2590
2591 \f
2592 NEWS for rsync 2.5.1 (3 Jan 2002)
2593 Protocol: 25 (unchanged)
2594 Changes since 2.5.0:
2595
2596   BUG FIXES:
2597
2598     * Fix for segfault in --daemon mode configuration parser.  (Paul
2599       Mackerras)
2600
2601     * Correct string<->address parsing for both IPv4 and 6.
2602       (YOSHIFUJI Hideaki, SUMIKAWA Munechika and Jun-ichiro "itojun"
2603       Hagino)
2604
2605     * Various fixes for IPv6 support.  (Dave Dykstra)
2606
2607     * rsync.1 typo fix.  (Matt Kraai)
2608
2609     * Test suite typo fixes.  (Tom Schmidt)
2610
2611     * rsync.1 grammar and clarity improvements.  (Edward
2612       Welbourne)
2613
2614     * Correction to ./configure tests for inet_ntop.  (Jeff Garzik)
2615
2616   ENHANCEMENTS:
2617
2618     * --progress and -P now show estimated data transfer rate (in a
2619       multiple of bytes/s) and estimated time to completion.  (Rik
2620       Faith)
2621
2622     * --no-detach option, required to run as a W32 service and also
2623       useful when running on Unix under daemontools, AIX's SRC, or a
2624       debugger.  (Max Bowsher, Jos Backus)
2625
2626     * Clearer error messages for some conditions.
2627
2628 \f
2629 NEWS for rsync 2.5.0 (30 Nov 2001)
2630 Protocol: 25 (changed)
2631 Changes since 2.4.6:
2632
2633   ANNOUNCEMENTS
2634
2635     * Martin Pool <mbp@samba.org> is now a co-maintainer.
2636
2637   NEW FEATURES
2638
2639     * Support for LSB-compliant packaging <http://www.linuxbase.org/>
2640
2641     * Shell wildcards are allowed in "auth users" lines.
2642
2643     * Merged UNC rsync+ patch to support creation of standalone patch
2644       sets.  By Bert J. Dempsey and Debra Weiss, updated by Jos
2645       Backus.  <http://www.ils.unc.edu/i2dsi/unc_rsync+.html>
2646
2647     * IPv6 support based on a patch from KAME.net, on systems
2648       including modern versions of Linux, Solaris, and HP-UX.  Also
2649       includes IPv6 compatibility functions for old OSs by the
2650       Internet Software Consortium, Paul Vixie, the OpenSSH
2651       portability project, and OpenBSD.
2652
2653   ENHANCEMENTS
2654
2655     * Include/exclude cluestick: with -vv, print out whether files are
2656       included or excluded and why.
2657
2658     * Many error messages have more friendly explanations and more
2659       details.
2660
2661     * Manual page improvements plus scanty protocol documentation.
2662
2663     * When running as --daemon in the background and using a "log
2664       file" rsyncd.conf directive, close the log file every time it is
2665       open when going to sleep on the socket.  This allows the log
2666       file to get cleaned out by another process.
2667
2668     * Change to using libpopt rather than getopt for processing
2669       options.  This makes the code cleaner and the behaviour more
2670       consistent across platforms.  popt is included and built if not
2671       installed on the platform.
2672
2673     * More details in --version, including note about whether 64-bit
2674       files, symlinks and hardlinks are supported.
2675
2676     * MD4 code may use less CPU cycles.
2677
2678     * Use mkstemp on systems where it is secure.  If we use mktemp,
2679       explain that we do it in a secure way.
2680
2681     * --whole-file is the default when source and target are on the
2682         local machine.
2683
2684   BUG FIXES:
2685
2686     * Fix for various bugs causing rsync to hang.
2687
2688     * Attempt to fix Large File Summit support on AIX.
2689
2690     * Attempt to fix error handling lockup bug.
2691
2692     * Give a non-0 exit code if *any* of the files we have been asked
2693       to transfer fail to transfer.
2694
2695     * For log messages containing ridiculously long strings that might
2696       overflow a buffer rsync no longer aborts, but rather prints an
2697       ellipsis at the end of the string.  (Patch from Ed Santiago.)
2698
2699   PLATFORMS:
2700
2701     * Improved support for UNICOS (tested on Cray T3E and Cray SV1)
2702
2703     * autoconf2.52 (or later) is now required to rebuild the autoconf
2704       scripts.  It is not required to simply build rsync.
2705
2706     * Platforms thought to work in this release:
2707
2708                 Cray SV1 UNICOS 10.0.0.8 cc
2709                 Debian Linux 2.2 UltraSparc gcc
2710                 Debian Linux testing/unstable ARM gcc
2711                 FreeBSD 3.3-RELEASE i386 cc
2712                 FreeBSD 4.1.1-RELEASE i386 cc
2713                 FreeBSD 4.3-STABLE i386 cc
2714                 HP PA-RISC HP-UX 10.20 gcc
2715                 HP PA-RISC HP-UX 11.11 cc
2716                 IRIX 6.5 MIPS cc
2717                 IRIX 6.5 MIPS gcc
2718                 Mac OS X PPC (--disable-ipv6) cc
2719                 NetBSD 1.5 i386 gcc
2720                 NetBSD Current i386 cc
2721                 OpenBSD 2.5 Sparc gcc
2722                 OpenBSD 2.9 i386 cc
2723                 OpenBSD Current i386 cc
2724                 RedHat 6.2 i386 gcc
2725                 RedHat 6.2 i386 insure++
2726                 RedHat 7.0 i386 gcc
2727                 RedHat 7.1 i386 (Kernel 2.4.10) gcc
2728                 Slackware 8.0 i686 (Kernel 2.4.10)
2729                 Solaris 8 UltraSparc cc
2730                 Solaris 8 UltraSparc gcc
2731                 Solaris 8 i386 gcc
2732                 SuSE 7.1 i386 gcc2.95.2
2733                 SuSE 7.1 ppc gcc2.95.2
2734                 i386-pc-sco3.2v5.0.5 cc
2735                 i386-pc-sco3.2v5.0.5 gcc
2736                 powerpc-ibm-aix4.3.3.0 cc
2737                 i686-unknown-sysv5UnixWare7.1.0 gcc
2738                 i686-unknown-sysv5UnixWare7.1.0 cc
2739
2740   TESTING:
2741
2742     * The existing test.sh script by Phil Hands has been merged into a
2743       test framework that works from both "make check" and the Samba
2744       build farm.
2745 \f
2746 Partial Protocol History
2747         RELEASE DATE    VER.    DATE OF COMMIT* PROTOCOL
2748         ?? ??? 2008     3.0.3                   30
2749         08 Apr 2008     3.0.2                   30
2750         03 Apr 2008     3.0.1                   30
2751         01 Mar 2008     3.0.0   11 Nov 2006     30
2752         06 Nov 2006     2.6.9                   29
2753         22 Apr 2006     2.6.8                   29
2754         11 Mar 2006     2.6.7                   29
2755         28 Jul 2005     2.6.6                   29
2756         01 Jun 2005     2.6.5                   29
2757         30 Mar 2005     2.6.4   17 Jan 2005     29
2758         30 Sep 2004     2.6.3                   28
2759         30 Apr 2004     2.6.2                   28
2760         26 Apr 2004     2.6.1   08 Jan 2004     28
2761         01 Jan 2004     2.6.0   10 Apr 2003     27 (MAX=40)
2762         04 Dec 2003     2.5.7                   26
2763         26 Jan 2003     2.5.6                   26
2764         02 Apr 2002     2.5.5                   26
2765         13 Mar 2002     2.5.4                   26
2766         11 Mar 2002     2.5.3                   26
2767         26 Jan 2002     2.5.2   11 Jan 2002     26
2768         03 Jan 2002     2.5.1                   25
2769         30 Nov 2001     2.5.0   23 Aug 2001     25
2770         06 Sep 2000     2.4.6                   24
2771         19 Aug 2000     2.4.5                   24
2772         29 Jul 2000     2.4.4                   24
2773         09 Apr 2000     2.4.3                   24
2774         30 Mar 2000     2.4.2                   24
2775         30 Jan 2000     2.4.1   29 Jan 2000     24
2776         29 Jan 2000     2.4.0   28 Jan 2000     23
2777         25 Jan 2000     2.3.3   23 Jan 2000     22
2778         08 Nov 1999     2.3.2   26 Jun 1999     21
2779         06 Apr 1999     2.3.1                   20
2780         15 Mar 1999     2.3.0   15 Mar 1999     20
2781         25 Nov 1998     2.2.1                   19
2782         03 Nov 1998     2.2.0                   19
2783         09 Sep 1998     2.1.1                   19
2784         20 Jul 1998     2.1.0                   19
2785         17 Jul 1998     2.0.19                  19
2786         18 Jun 1998     2.0.17                  19
2787         01 Jun 1998     2.0.16                  19
2788         27 May 1998     2.0.13  27 May 1998     19
2789         26 May 1998     2.0.12                  18
2790         22 May 1998     2.0.11                  18
2791         18 May 1998     2.0.9   18 May 1998     18
2792         17 May 1998     2.0.8                   17
2793         15 May 1998     2.0.1                   17
2794         14 May 1998     2.0.0                   17
2795         17 Apr 1998     1.7.4                   17
2796         13 Apr 1998     1.7.3                   17
2797         05 Apr 1998     1.7.2                   17
2798         26 Mar 1998     1.7.1                   17
2799         26 Mar 1998     1.7.0   26 Mar 1998     17 (MAX=30)
2800         13 Jan 1998     1.6.9   13 Jan 1998     15 (MAX=20)
2801
2802 * DATE OF COMMIT is the date the protocol change was committed to CVS.