Improved the regex to match syslog lines and be easier to read.
[rsync/rsync.git] / OLDNEWS
CommitLineData
f171bf5b
WD
1NEWS for rsync 2.6.7 (11 Mar 2006)
2Protocol: 29 (unchanged)
3Changes since 2.6.6:
4
5 OUTPUT CHANGES:
6
7 - The letter 'D' in the itemized output was being used for both devices
8 (character or block) as well as other special files (such as fifos and
9 named sockets). This has changed to separate non-device special files
10 under the 'S' designation (e.g. "cS+++++++ path/fifo"). See also the
11 "--specials" option, below.
12
13 - The way rsync escapes unreadable characters has changed. First, rsync
14 now has support for recognizing valid multibyte character sequences in
15 your current locale, allowing it to escape fewer characters than before
16 for a locale such as UTF-8. Second, it now uses an escape idiom of
17 "\#123", which is the literal string "\#" followed by exactly 3 octal
18 digits. Rsync no longer doubles a backslash character in a filename
19 (e.g. it used to output "foo\\bar" when copying "foo\bar") -- now it only
20 escapes a backslash that is followed by a hash-sign and 3 digits (0-9)
21 (e.g. it will output "foo\#134#789" when copying "foo\#789"). See also
22 the --8-bit-output (-8) option, mentioned below.
23
24 Script writers: the local rsync is the one that outputs escaped names,
25 so if you need to support unescaping of filenames for older rsyncs, I'd
26 suggest that you parse the output of "rsync --version" and only use the
27 old unescaping rules for 2.6.5 and 2.6.6.
28
29 BUG FIXES:
30
31 - Fixed a really old bug that caused --checksum (-c) to checksum all the
32 files encountered during the delete scan (ouch).
33
34 - Fixed a potential hang in a remote generator: when the receiver gets a
35 read-error on the socket, it now signals the generator about this so that
36 the generator does not try to send any of the terminating error messages
37 to the client (avoiding a potential hang in some setups).
38
39 - Made hard-links work with symlinks and devices again.
40
41 - If the sender gets an early EOF reading a source file, we propagate this
42 error to the receiver so that it can discard the file and try requesting
43 it again (which is the existing behavior for other kinds of read errors).
44
45 - If a device-file/special-file changes permissions, rsync now updates the
46 permissions without recreating the file.
47
48 - If the user specifies a remote-host for both the source and destination,
49 we now output a syntax error rather than trying to open the destination
50 hostspec as a filename.
51
52 - When --inplace creates a new destination file, rsync now creates it with
53 permissions 0600 instead of 0000 -- this makes restarting possible when
54 the transfer gets interrupted in the middle of sending a new file.
55
56 - Reject the combination of --inplace and --sparse since the sparse-output
57 algorithm doesn't work when overwriting existing data.
58
59 - Fixed the directory name in the error that is output when pop_dir()
60 fails.
61
62 - Really fixed the parsing of a "!" entry in .cvsignore files this time.
63
64 - If the generator gets a stat() error on a file, output it (this used to
65 require at least -vv for the error to be seen).
66
67 - If waitpid() fails or the child rsync didn't exit cleanly, we now handle
68 the exit status properly and generate a better error.
69
70 - Fixed some glitches in the double-verbose output when using --copy-dest,
71 --link-dest, or --compare-dest. Also improved how the verbose output
72 handles hard-links (within the transfer) that had an up-to-date alternate
73 "dest" file, and copied files (via --copy-dest).
74
75 - Fixed the matching of the dont-compress items (e.g. *.gz) against files
76 that have a path component containing a slash.
77
78 - If code reading a filter/exclude file an EINTR error, rsync now clears
79 the error flag on the file handle so it can keep on reading.
80
81 - If --relative is active, the sending side cleans up trailing "/" or "/."
82 suffixes to avoid triggering a bug in older rsync versions. Also, we now
83 reject a ".." dir if it would be sent as a relative dir.
84
85 - If a non-directory is in the way of a directory and rsync is run with
86 --dry-run and --delete, rsync no longer complains about not being able
87 to opendir() the not-yet present directory.
88
89 - When --list-only is used and a non-existent local destination dir was
90 also specified as a destination, rsync no longer generates a warning
91 about being unable to create the missing directory.
92
93 - Fixed some problems with --relative --no-implied-dirs when the
94 destination directory did not yet exist: we can now create a symlink or
95 device when it is the first thing in the missing dir, and --fuzzy no
96 longer complains about being unable to open the missing dir.
97
98 - Fixed a bug where the --copy-links option would not affect implied
99 directories without --copy-unsafe-links (see --relative).
100
101 - Got rid of the need for --force to be used in some circumstances with
102 --delete-after (making it consistent with --delete-before/-during).
103
104 - Rsync now ignores the SIGXFSZ signal, just in case your OS sends this
105 when a file is too large (rsync handles the write error).
106
107 - Fixed a bug in the Proxy-Authorization header's base64-encoded value: it
108 was not properly padded with trailing '=' chars. This only affects a
109 user that need to use a password-authenticated proxy for an outgoing
110 daemon-rsync connection.
111
112 - If we're transferring an empty directory to a new name, rsync no longer
113 forces S_IWUSR if it wasn't already set, nor does it accidentally leave
114 it set.
115
116 - Fixed a bug in the debug output (-vvvvv) that could mention the wrong
117 checksum for the current file offset.
118
119 - Rsync no longer allows a single directory to be copied over a non-
120 directory destination arg.
121
122 ENHANCEMENTS:
123
124 - Added the --append option that makes rsync append data onto files that
125 are longer on the source than the destination (this includes new files).
126
127 - Added the --min-size=SIZE option to exclude small files from the
128 transfer.
129
130 - Added the --compress-level option to allow you to set how aggressive
131 rsync's compression should be (this option implies --compress).
132
133 - Enhanced the parsing of the SIZE value for --min-size and --max-size to
134 allow easy entry of multiples of 1000 (instead of just multiples of 1024)
135 and off-by-one values too (e.g. --max-size=8mb-1).
136
137 - Added the --8-bit-output (-8) option, which tells rsync to avoid escaping
138 high-bit characters that it thinks are unreadable in the current locale.
139
140 - The new option --human-readable (-h) changes the output of --progress,
141 --stats, and the end-of-run summary to be easier to read. If repeated,
142 the units become powers of 1024 instead of powers of 1000. (The old
143 meaning of -h, as a shorthand for --help, still works as long as you
144 just use it on its own, as in "rsync -h".)
145
146 - If lutimes() and/or lchmod() are around, use them to allow the
147 preservation of attributes on symlinks.
148
149 - The --link-dest option now affects symlinks and devices (when possible).
150
151 - Added two config items to the rsyncd.conf parsing: "pre-xfer exec" and
152 "post-xfer exec". These allow a command to be specified on a per-module
153 basis that will be run before and/or after a daemon-mode transfer. (See
154 the man page for a list of the environment variables that are set with
155 information about the transfer.)
156
157 - When using the --relative option, you can now insert a dot dir in
158 the source path to indicate where the replication of the source dirs
159 should start. For example, if you specify a source path of
160 rsync://host/module/foo/bar/./baz/dir with -R, rsync will now only
161 replicate the "baz/dir" part of the source path (note: a trailing
162 dot dir is unaffected unless it also has a trailing slash).
163
164 - Added some new --no-FOO options that make it easier to override unwanted
165 implied or default options. For example, "-a --no-o" (aka "--archive
166 --no-owner") can be used to turn off the preservation of file ownership
167 that is implied by -a.
168
169 - Added the --chmod=MODE option that allows the destination permissions to
170 be changed from the source permissions. E.g. --chmod=g+w,o-rwx
171
172 - Added the "incoming chmod" and "outgoing chmod" daemon options that allow
173 a module to specify what permissions changes should be applied to all
174 files copied to and from the daemon.
175
176 - Allow the --temp-dir option to be specified when starting a daemon, which
177 sets the default temporary directory for incoming files.
178
179 - If --delete is combined with --dirs without --recursive, rsync will now
180 delete in any directory whose content is being synchronized.
181
182 - If --backup is combined with --delete without --backup-dir (and without
183 --delete-excluded), we add a "protect" filter-rule to ensure that files
184 with the backup suffix are not deleted.
185
186 - The file-count stats that are output by --progress were improved to
187 better indicate what the numbers mean. For instance, the output:
188 "(xfer#5, to-check=8383/9999)" indicates that this was the fifth file
189 to be transferred, and we still need to check 8383 more files out of
190 a total of 9999.
191
192 - The include/exclude code now allows a dir/*** directive (with 3 trailing
193 stars) to match both the dir itself as well as all the content below the
194 dir (dir/** would not match the dir).
195
196 - Added the --prune-empty-dirs (-m) option that makes the receiving rsync
197 discard empty chains of directories from the file-list. This makes it
198 easier to selectively copy files from a source hierarchy and end up with
199 just the directories needed to hold the resulting files.
200
201 - If the --itemize-changes (-i) option is repeated, rsync now includes
202 unchanged files in the itemized output (similar to -vv, but without all
203 the other verbose messages that can get in the way). Of course, the
204 client must be version 2.6.7 for this to work, but the remote rsync only
205 needs to be 2.6.7 if you're pushing files.
206
207 - Added the --specials option to tell rsync to copy non-device special
208 files (which rsync now attempts even as a normal user). The --devices
209 option now requests the copying of just devices (character and block).
210 The -D option still requests both (e.g. --devices and --specials), -a
211 still implies -D, and non-root users still get a silent downgrade that
212 omits device copying.
213
214 - Added the --super option to make the receiver always attempt super-user
215 activities. This is useful for systems that allow things such as devices
216 to be created or ownership to be set without being UID 0, and is also
217 useful for someone who wants to ensure that errors will be output if the
218 receiving rsync isn't being run as root.
219
220 - Added the --sockopts option for those few who want to customize the TCP
221 options used to contact a daemon rsync.
222
223 - Added a way for the --temp-dir option to be combined with a partial-dir
224 setting that lets rsync avoid non-atomic updates (for those times when
225 --temp-dir is not being used because space is tight).
226
227 - A new support script, files-to-excludes, will transform a list of files
228 into a set of include/exclude directives that will copy those files.
229
230 - A new option, --executability (-E) can be used to preserve just the
231 execute bit on files, for those times when using the --perms option is
232 not desired.
233
234 - The daemon now logs each connection and also each module-list request
235 that it receives.
236
237 - New log-format options: %M (modtime), %U (uid), %G (gid), and %B
238 (permission bits, e.g. "rwxr-xrwt").
239
240 - The --dry-run option no longer forces the enabling of --verbose.
241
242 - The --remove-sent-files option now does a better job of incrementally
243 removing the sent files on the sending side (older versions tended to
244 clump up all the removals at the end).
245
246 - A daemon now supersedes its minimal SIGCHLD handler with the standard
247 PID-remembering version after forking. This ensures that the generator
248 can get the child-exit status from the receiver.
249
250 - Use of the --bwlimit option no longer interferes with the remote rsync
251 sending error messages about invalid/refused options.
252
253 - Rsync no longer returns a usage error when used with one local source arg
254 and no destination: this now implies the --list-only option, just like
255 the comparable situation with a remote source arg.
256
257 - Added the --copy-dirlinks option, a more limited version of --copy-links.
258
259 - Various documentation improvements, including: a better synopsis, some
260 improved examples, a better discussion of the presence and absence of
261 --perms (including how it interacts with the new --executability and
262 --chmod options), an extended discussion of --temp-dir, an improved
263 discussion of --partial-dir, a better description of rsync's pattern
264 matching characters, an improved --no-implied-dirs section, and the
265 documenting of what the --stats option outputs.
266
267 - Various new and updated diffs in the patches dir, including: acls.diff,
268 xattrs.diff, atimes.diff, detect-renamed.diff, and slp.diff.
269
270 INTERNAL:
271
272 - We now use sigaction() and sigprocmask() if possible, and fall back on
273 signal() if not. Using sigprocmask() ensures that rsync enables all the
274 signals that it needs, just in case it was started in a masked state.
275
276 - Some buffer sizes were expanded a bit, particularly on systems where
277 MAXPATHLEN is overly small (e.g. cygwin).
278
279 - If io_printf() tries to format more data than fits in the buffer, exit
280 with an error instead of transmitting a truncated buffer.
281
282 - If a va_copy macro is defined, lib/snprintf.c will use it when defining
283 the VA_COPY macro.
284
285 - Reduced the amount of stack memory needed for each level of directory
286 recursion by nearly MAXPATHLEN bytes.
287
288 - The wildmatch function was extended to allow an array of strings to be
289 supplied as the string to match. This allows the exclude code to do less
290 string copying.
291
292 - Got rid of the safe_fname() function (and all the myriad calls) and
293 replaced it with a new function in the log.c code that filters all the
294 output going to the terminal.
295
296 - Unified the f_name() and the f_name_to() functions.
297
298 - Improved the hash-table code the sender uses to handle checksums to make
299 it use slightly less memory and run just a little faster.
300
301 DEVELOPER RELATED:
302
303 - The diffs in the patches dir now require "patch -p1 <DIFF" instead of
304 the previous -p0. Also, the version included in the release tar now
305 affect generated files (e.g. configure, rsync.1, proto.h, etc.), so
306 it is no longer necessary to run autoconf and/or yodl unless you're
307 applying a patch that was checked out from CVS.
308
309 - Several diffs in the patches dir now use the proper --enable-FOO
310 configure option instead of --with-FOO to turn on the inclusion of
311 the newly patched feature.
312
313 - There is a new script, "prepare-source" than can be used to update the
314 various generated files (proto.h, configure, etc.) even before configure
315 has created the Makefile (this is mainly useful when patching the source
316 with a patch that doesn't affect generated files).
317
318 - The testsuite now sets HOME so that it won't be affected by a file such
319 as ~/.popt.
320
321\f
f90f7149
WD
322NEWS for rsync 2.6.6 (28 Jul 2005)
323Protocol: 29 (unchanged)
324Changes since 2.6.5:
325
326 SECURITY FIXES:
327
328 - The zlib code was upgraded to version 1.2.3 in order to make it more
329 secure. While the widely-publicized security problem in zlib 1.2.2 did
330 not affect rsync, another security problem surfaced that affects rsync's
331 zlib 1.1.4.
332
333 BUG FIXES:
334
335 - The setting of flist->high in clean_flist() was wrong for an empty list.
336 This could cause flist_find() to crash in certain rare circumstances
337 (e.g. if just the right directory setup was around when --fuzzy was
338 combined with --link-dest).
339
340 - The outputting of hard-linked files when verbosity was > 1 was not right:
1578919c
WD
341 (1) Without -i it would output the name of each hard-linked file as
342 though it had been changed; it now outputs a "is hard linked" message for
343 the file. (2) With -i it would output all dots for the unchanged
344 attributes of a hard-link; it now changes those dots to spaces, as is
345 done for other totally unchanged items.
f90f7149
WD
346
347 - When backing up a changed symlink or device, get rid of any old backup
348 item so that we don't get an "already exists" error.
349
350 - A couple places that were comparing a local and a remote modification-
351 time were not honoring the --modify-window option.
352
353 - Fixed a bug where the 'p' (permissions) itemized-changes flag might get
354 set too often (if some non-significant mode bits differed).
355
356 - Fixed a really old, minor bug that could cause rsync to warn about being
357 unable to mkdir() a path that ends in "/." because it just created the
358 directory (required --relative, --no-implied-dirs, a source path that
359 ended in either a trailing slash or a trailing "/.", and a non-existing
360 destination dir to tickle the bug in a recent version).
361
362 ENHANCEMENTS:
363
364 - Made the "max verbosity" setting in the rsyncd.conf file settable on a
365 per-module basis (which now matches the documentation).
366
367 - The support/rrsync script has been upgraded to verify the args of options
368 that take args (instead of rejecting any such options). The script was
369 also changed to try to be more secure and to fix a problem in the parsing
370 of a pull operation that has multiple sources.
371
372 - Improved the documentation that explains the difference between a
373 normal daemon transfer and a daemon-over remote-shell transfer.
374
375 - Some of the diffs supplied in the patches dir were fixed and/or
376 improved.
377
378 BUILD CHANGES:
379
380 - Made configure define NOBODY_USER (currently hard-wired to "nobody") and
381 NOBODY_GROUP (set to either "nobody" or "nogroup" depending on what we
382 find in the /etc/group file).
383
384 - Added a test to the test suite, itemized.test, that tests the output of
385 -i (log-format w/%i) and some double-verbose messages.
386
387\f
a1c75ed0
WD
388NEWS for rsync 2.6.5 (1 Jun 2005)
389Protocol: 29 (unchanged)
390Changes since 2.6.4:
391
392 OUTPUT CHANGES:
393
394 - Non-printable chars in filenames are now output using backslash-
395 escaped characters rather than '?'s. Any non-printable character is
396 output using 3 digits of octal (e.g. "\n" -> "\012"), and a backslash
397 is now output as "\\". Rsync also uses your locale setting, which
398 can make it treat fewer high-bit characters as non-printable.
399
400 - If rsync received an empty file-list when pulling files, it would
401 output a "nothing to do" message and exit with a 0 (success) exit
402 status, even if the remote rsync returned an error (it did not do
403 this under the same conditions when pushing files). This was changed
404 to make the pulling behavior the same as the pushing behavior: we
405 now do the normal end-of-run outputting (depending on options) and
406 exit with the appropriate exit status.
407
408 BUG FIXES:
409
410 - A crash bug was fixed when a daemon had its "path" set to "/", did
411 not have chroot enabled, and used some anchored excludes in the
412 rsyncd.conf file.
413
414 - Fixed a bug in the transfer of a single file when -H is specified
415 (rsync would either infinite loop or perhaps crash).
416
417 - Fixed a case where the generator might try (and fail) to tweak the
418 write-permissions of a read-only directory in list-only mode (this
419 only caused an annoying warning message).
420
421 - If --compare-dest or --link-dest uses a locally-copied file as the
422 basis for an updated version, log this better when --verbose or -i
423 is in effect.
424
425 - Fixed the accidental disabling of --backup during the --delete-after
426 processing.
427
428 - Restored the ability to use the --address option in client mode (in
429 addition to its use in daemon mode).
430
431 - Make sure that some temporary progress information from the delete
432 processing does not get left on the screen when it is followed by a
433 newline.
434
435 - When --existing skips a directory with extra verbosity, refer to it
436 as a "directory", not a "file".
437
438 - When transferring a single file to a different-named file, any
439 generator messages that are source-file related no longer refer to
440 the file by the destination filename.
441
442 - Fixed a bug where hard-linking a group of files might fail if the
443 generator hasn't created a needed destination directory yet.
444
445 - Fixed a bug where a hard-linked group of files that is newly-linked
446 to a file in a --link-dest dir doesn't link the files from the rest
447 of the cluster.
448
449 - When deleting files with the --one-file-system (-x) option set, rsync
450 no longer tries to remove files from inside a mount-point on the
451 receiving side. Also, we don't complain about being unable to remove
452 the mount-point dir.
453
454 - Fixed a compatibility problem when using --cvs-ignore (-C) and
455 sending files to an older rsync without using --delete.
456
457 - Make sure that a "- !" or "+ !" include/exclude pattern does not
458 trigger the list-clearing action that is reserved for "!".
459
460 - Avoid a timeout in the generator when the sender/receiver aren't
461 handling the generator's checksum output quickly enough.
462
463 - Fixed the omission of some directories in the delete processing when
464 --relative (-R) was combined with a source path that had a trailing
465 slash.
466
467 - Fixed a case where rsync would erroneously delete some files and then
468 re-transfer them when the options --relative (-R) and --recursive
469 (-r) were both enabled (along with --delete) and a source path had a
470 trailing slash.
471
472 - Make sure that --max-size doesn't affect a device or a symlink.
473
474 - Make sure that a system with a really small MAXPATHLEN does not cause
475 the buffers in readfd_unbuffered() to be too small to receive normal
476 messages. (This mainly affected Cygwin.)
477
478 - If a source pathname ends with a filename of "..", treat it as if
479 "../" had been specified (so that we don't copy files to the parent
480 dir of the destination).
481
482 - If --delete is combined with a file-listing rsync command (i.e. no
483 transfer is happening), avoid outputting a warning that we couldn't
484 delete anything.
485
486 - If --stats is specified with --delete-after, ensure that all the
487 "deleting" messages are output before the statistics.
488
489 - Improved one "if" in the deletion code that was only checking errno
490 for ENOTEMPTY when it should have also been checking for EEXIST (for
491 compatibility with OS variations).
492
493 ENHANCEMENTS:
494
495 - Added the --only-write-batch=FILE option that may be used (instead
496 of --write-batch=FILE) to create a batch file without doing any
497 actual updating of the destination. This allows you to divert all
498 the file-updating data away from a slow data link (as long as you
499 are pushing the data to the remote server when creating the batch).
500
501 - When the generator is taking a long time to fill up its output buffer
502 (e.g. if the transferred files are few, small, or missing), it now
503 periodically flushes the output buffer so that the sender/receiver
504 can get started on the files sooner rather than later.
505
506 - Improved the keep-alive code to handle a long silence between the
507 sender and the receiver that can occur when the sender is receiving
508 the checksum data for a large file.
509
510 - Improved the auth-errors that are logged by the daemon to include
511 some information on why the authorization failed: wrong user,
512 password mismatch, etc. (The client-visible message is unchanged!)
513
514 - Improved the client's handling of an "@ERROR" from a daemon so that
515 it does not complain about an unexpectedly closed socket (since we
516 really did expect the socket to close).
517
518 - If the daemon can't open the log-file specified in rsyncd.conf, fall
519 back to using syslog and log an appropriate warning. This is better
520 than what was typically a totally silent (and fatal) failure (since a
521 daemon is not usually run with the --no-detach option that was
522 necessary to see the error on stderr).
523
524 - The man pages now consistently refer to an rsync daemon as a "daemon"
525 instead of a "server" (to distinguish it from the server process in a
526 non-daemon transfer).
527
528 - Made a small change to the rrsync script (restricted rsync -- in the
529 support dir) to make a read-only server reject all --remove-* options
530 when sending files (to future-proof it against the possibility of
531 other similar options being added at some point).
532
533 INTERNAL:
534
535 - Rsync now calls setlocale(LC_CTYPE, ""). This enables isprint() to
536 better discern which filename characters need to be escaped in
537 messages (which should result in fewer escaped characters in some
538 locales).
539
540 - Improved the naming of the log-file open/reopen/close functions.
541
542 - Removed some protocol-compatibility code that was only needed to help
543 someone running a pre-release of 2.6.4.
544
545 BUILD CHANGES:
546
547 - Added configure option "--disable-locale" to disable any use of
548 setlocale() in the binary.
549
550 - Fixed a bug in the SUPPORT{,_HARD}_LINKS #defines which prevented
551 rsync from being built without symlink or hard-link support.
552
553 - Only #define HAVE_REMSH if it is going to be set to 1.
554
555 - Configure now disables the use of mkstemp() under HP-UX (since they
556 refuse to fix its broken handling of large files).
557
558 - Configure now explicitly checks for the lseek64() function so that
559 the code can use HAVE_LSEEK64 instead of inferring lseek64()'s
560 presence based on the presence of the off64_t type.
561
562 - Configure no longer mentions the change in the default remote-shell
563 (from rsh to ssh) that occurred for the 2.6.0 release.
564
565 - Some minor enhancements to the test scripts.
566
567 - Added a few new *.diff files to the patches dir, including a patch
568 that enables the optional copying of extended attributes.
569
570\f
1ad6a7f6
WD
571NEWS for rsync 2.6.4 (30 March 2005)
572Protocol: 29 (changed)
573Changes since 2.6.3:
574
575 OUTPUT CHANGES:
576
577 - When rsync deletes a directory and outputs a verbose message about
578 it, it now appends a trailing slash to the name instead of (only
579 sometimes) outputting a preceding "directory " string.
580
581 - The --stats output will contain file-list time-statistics if both
582 sides are 2.6.4, or if the local side is 2.6.4 and the files are
583 being pushed (since the stats come from the sending side).
584 (Requires protocol 29 for a pull.)
585
586 - The "%o" (operation) log-format escape now has a third value (besides
587 "send" and "recv"): "del." (with trailing dot to make it 4 chars).
588 This changes the way deletions are logged in the daemon's log file.
589
590 - When the --log-format option is combined with --verbose, rsync now
591 avoids outputting the name of the file twice in most circumstances.
592 As long as the --log-format item does not refer to any post-transfer
593 items (such as %b or %c), the --log-format message is output prior to
594 the transfer, so --verbose is now the equivalent of a --log-format of
595 '%n%L' (which outputs the name and any link info). If the log output
596 must occur after the transfer to be complete, the only time the name
597 is also output prior to the transfer is when --progress was specified
598 (so that the name will precede the progress stats, and the full
599 --log-format output will come after).
97e3c50c 600
7c2a83c6
WD
601 - Non-printable characters in filenames are replaced with a '?' to
602 avoid corrupting the screen or generating empty lines in the output.
1ad6a7f6
WD
603
604 BUG FIXES:
605
606 - Restore the list-clearing behavior of "!" in a .cvsignore file (2.6.3
607 was only treating it as a special token in an rsync include/exclude
608 file).
609
610 - The combination of --verbose and --dry-run now mentions the full list
611 of changes that would be output without --dry-run.
612
613 - Avoid a mkdir warning when removing a directory in the destination
614 that already exists in the --backup-dir.
615
616 - An OS that has a binary mode for its files (such as cygwin) needed
617 setmode(fd, O_BINARY) called on the temp-file we opened with
10a1a3f5 618 mkstemp(). (Fix derived from cygwin's 2.6.3 rsync package.)
1ad6a7f6
WD
619
620 - Fixed a potential hang when verbosity is high, the client side is
621 the sender, and the file-list is large.
622
623 - Fixed a potential protocol-corrupting bug where the generator could
624 merge a message from the receiver into the middle of a multiplexed
625 packet of data if only part of that data had been written out to the
626 socket when the message from the generator arrived.
627
628 - We now check if the OS doesn't support using mknod() for creating
629 FIFOs and sockets, and compile-in some compatibility code using
630 mkfifo() and socket() when necessary.
631
632 - Fixed an off-by-one error in the handling of --max-delete=N. Also,
633 if the --max-delete limit is exceeded during a run, we now output a
634 warning about this at the end of the run and exit with a new error
635 code (25).
636
637 - One place in the code wasn't checking if fork() failed.
638
639 - The "ignore nonreadable" daemon parameter used to erroneously affect
640 readable symlinks that pointed to a non-existent file.
641
642 - If the OS does not have lchown() and a chown() of a symlink will
643 affect the referent of a symlink (as it should), we no longer try
644 to set the user and group of a symlink.
645
646 - The generator now properly runs the hard-link loop and the dir-time
647 rewriting loop after we're sure that the redo phase is complete.
648
649 - When --backup was specified with --partial-dir=DIR, where DIR is a
650 relative path, the backup code was erroneously trying to backup a
651 file that was put into the partial-dir.
652
653 - If a file gets resent in a single transfer and the --backup option is
654 enabled along with --inplace, rsync no longer performs a duplicate
655 backup (it used to overwrite the first backup with the failed file).
656
657 - One call to flush_write_file() was not being checked for an error.
658
659 - The --no-relative option was not being sent from the client to a
660 server sender.
661
662 - If an rsync daemon specified "dont compress = ..." for a file and the
663 client tried to specify --compress, the libz code was not handling a
664 compression level of 0 properly. This could cause a transfer failure
665 if the block-size for a file was large enough (e.g. rsync might have
666 exited with an error for large files).
667
668 - Fixed a bug that would sometimes surface when using --compress and
669 sending a file with a block-size larger than 64K (either manually
670 specified, or computed due to the file being really large). Prior
671 versions of rsync would sometimes fail to decompress the data
672 properly, and thus the transferred file would fail its verification.
673
674 - If a daemon can't open the specified log file (i.e. syslog is not
675 being used), die without crashing. We also output an error about
676 the failure on stderr (which will only be seen if --no-detach was
677 specified) and exit with a new error code (6).
678
679 - A local transfer no longer duplicates all its include/exclude options
680 (since the forked process already has a copy of the exclude list,
681 there's no need to send them a set of duplicates).
682
7eb2ecda
WD
683 - The output of the items that are being updated by the generator (dirs,
684 symlinks, devices) is now intermingled in the proper order with the
685 output from the items that the receiver is updating (regular files)
686 when pulling. This misordering was particularly bad when --progress
687 was specified. (Requires protocol 29.)
1ad6a7f6
WD
688
689 - When --timeout is specified, lulls that occur in the transfer while
690 the generator is doing work that does not generate socket traffic
691 (looking for changed files, deleting files, doing directory-time
692 touch-ups, etc.) will cause a new keep-alive packet to be sent that
693 should keep the transfer going as long as the generator continues to
694 make progress. (Requires protocol 29.)
695
696 - The stat size of a device is not added to the total file size of the
697 items in the transfer (the size might be undefined on some OSes).
698
699 - Fixed a problem with refused-option messages sometimes not making it
700 back to the client side when a remote --files-from was in effect and
701 the daemon was the receiver.
702
0f9941dc 703 - The --compare-dest option was not updating a file that differed in
1ad6a7f6
WD
704 (the preserved) attributes from the version in the compare-dest DIR.
705
706 - When rsync is copying files into a write-protected directory, fixed
707 the change-report output for the directory so that we don't report
708 an identical directory as changed.
709
710 ENHANCEMENTS:
711
712 - Rsync now supports popt's option aliases, which means that you can
713 use /etc/popt and/or ~/.popt to create your own option aliases.
714
715 - Added the --delete-during (--del) option which will delete files
716 from the receiving side incrementally as each directory in the
717 transfer is being processed. This makes it more efficient than the
718 default, before-the-transfer behavior, which is now also available as
719 --delete-before (and is still the default --delete-WHEN option that
720 will be chosen if --delete or --delete-excluded is specified without
721 a --delete-WHEN choice). All the --del* options infer --delete, so
722 an rsync daemon that refuses "delete" will still refuse to allow any
723 file-deleting options (including the new --remove-sent-files option).
724
725 - All the --delete-WHEN options are now more memory efficient:
726 Previously an duplicate set of file-list objects was created on the
727 receiving side for the entire destination hierarchy. The new
728 algorithm only creates one directory of objects at a time (for files
729 inside the transfer).
730
731 - Added the --copy-dest option, which works like --link-dest except
732 that it locally copies identical files instead of hard-linking them.
733
734 - Added support for specifying multiple --compare-dest, --copy-dest, or
735 --link-dest options, but only of a single type. (Promoted from the
736 patches dir and enhanced.) (Requires protocol 29.)
737
738 - Added the --max-size option. (Promoted from the patches dir.)
739
740 - The daemon-mode options are now separated from the normal rsync
741 options so that they can't be mixed together. This makes it
742 impossible to start a daemon that has improper default option values
743 (which could cause problems when a client connects, such as hanging
744 or crashing).
745
746 - The --bwlimit option may now be used in combination with --daemon
747 to specify both a default value for the daemon side and a value
748 that cannot be exceeded by a user-specified --bwlimit option.
749
750 - Added the "port" parameter to the rsyncd.conf file. (Promoted from
751 the patches dir.) Also added "address". The command-line options
752 take precedence over a config-file option, as expected.
753
754 - In _exit_cleanup(): when we are exiting with a partially-received
755 file, we now flush any data in the write-cache before closing the
756 partial file.
757
758 - The --inplace support was enhanced to work with --compare-dest,
759 --link-dest, and (the new) --copy-dest options. (Requires protocol
760 29.)
761
762 - Added the --dirs (-d) option for an easier way to copy directories
af6155bb
WD
763 without recursion. Any directories that are encountered are created
764 on the destination. Specifying a directory with a trailing slash
765 copies its immediate contents to the destination.
766
767 - The --files-from option now implies --dirs (-d).
1ad6a7f6
WD
768
769 - Added the --list-only option, which is mainly a way for the client to
770 put the server into listing mode without needing to resort to any
771 internal option kluges (e.g. the age-old use of "-r --exclude="/*/*"
772 for a non-recursive listing). This option is used automatically
773 (behind the scenes) when a modern rsync speaks to a modern daemon,
774 but may also be specified manually if you want to force the use of
775 the --list-only option over a remote-shell connection.
776
777 - Added the --omit-dir-times (-O) option, which will avoid updating
778 the modified time for directories when --times was specified. This
779 option will avoid an extra pass through the file-list at the end of
780 the transfer (to tweak all the directory times), which may provide
781 an appreciable speedup for a really large transfer. (Promoted from
782 the patches dir.)
783
784 - Added the --filter (-f) option and its helper option, -F. Filter
785 rules are an extension to the existing include/exclude handling
786 that also supports nested filter files as well as per-directory
787 filter files (like .cvsignore, but with full filter-rule parsing).
788 This new option was chosen in order to ensure that all existing
789 include/exclude processing remained 100% compatible with older
790 versions. Protocol 29 is needed for full filter-rule support, but
791 backward-compatible rules work with earlier protocol versions.
792 (Promoted from the patches dir and enhanced.)
793
794 - Added the --delay-updates option that puts all updated files into
795 a temporary directory (by default ".~tmp~", but settable via the
796 --partial-dir=DIR option) until the end of the transfer. This
797 makes the updates a little more atomic for a large transfer.
798
799 - If rsync is put into the background, any output from --progress is
800 reduced.
801
802 - Documented the "max verbosity" setting for rsyncd.conf. (This
803 setting was added a couple releases ago, but left undocumented.)
804
805 - The sender and the generator now double-check the file-list index
806 they are given, and refuse to try to do a file transfer on a
807 non-file index (since that would indicate that something had gone
808 very wrong).
809
810 - Added the --itemize-changes (-i) option, which is a way to output a
811 more detailed list of what files changed and in what way. The effect
812 is the same as specifying a --log-format of "%i %n%L" (see both the
813 rsync and rsyncd.conf manpages). Works with --dry-run too.
814
815 - Added the --fuzzy (-y) option, which attempts to find a basis file
816 for a file that is being created from scratch. The current algorithm
817 only looks in the destination directory for the created file, but it
818 does attempt to find a match based on size/mod-time (in case the file
819 was renamed with no other changes) as well as based on a fuzzy
820 name-matching algorithm. This option requires protocol 29 because it
821 needs the new file-sorting order. (Promoted from patches dir and
822 enhanced.) (Requires protocol 29.)
823
824 - Added the --remove-sent-files option, which lets you move files
825 between systems.
826
827 - The hostname in HOST:PATH or HOST::PATH may now be an IPv6 literal
828 enclosed in '[' and ']' (e.g. "[::1]"). (We already allowed IPv6
829 literals in the rsync://HOST:PORT/PATH format.)
830
831 - When rsync recurses to build the file list, it no longer keeps open
832 one or more directory handles from the dir's parent dirs.
833
834 - When building under windows, the default for --daemon is now to
835 avoid detaching, requiring the new --detach option to force rsync
836 to detach.
837
838 - The --dry-run option can now be combined with either --write-batch or
839 --read-batch, allowing you to run a do-nothing test command to see
840 what would happen without --dry-run.
841
842 - The daemon's "read only" config item now sets an internal read_only
843 variable that makes extra sure that no write/delete calls on the
844 read-only side can succeed.
845
846 - The log-format % escapes can now have a numeric field width in
847 between the % and the escape letter (e.g. "%-40n %08p").
848
849 - Improved the option descriptions in the --help text.
850
851 SUPPORT FILES:
852
853 - Added atomic-rsync to the support dir: a perl script that will
854 transfer some files using rsync, and then move the updated files into
855 place all at once at the end of the transfer. Only works when
856 pulling, and uses --link-dest and a parallel hierarchy of files to
857 effect its update.
858
859 - Added mnt-excl to the support dir: a perl script that takes the
860 /proc/mounts file and translates it into a set of excludes that will
861 exclude all mount points (even mapped mounts to the same disk). The
862 excludes are made relative to the specified source dir and properly
863 anchored.
864
865 - Added savetransfer.c to the support dir: a C program that can make
866 a copy of all the data that flows over the wire. This lets you test
867 for data corruption (by saving the data on both the sending side and
868 the receiving side) and provides one way to debug a protocol error.
869
870 - Added rrsync to the support dir: this is an updated version of Joe
871 Smith's restricted rsync perl script. This helps to ensure that only
872 certain rsync commands can be run by an ssh invocation.
873
874 INTERNAL:
875
876 - Added better checking of the checksum-header values that come over
877 the socket.
878
879 - Merged a variety of file-deleting functions into a single function so
880 that it is easier to maintain.
881
882 - Improved the type of some variables (particularly blocksize vars) for
883 consistency and proper size.
884
885 - Got rid of the uint64 type (which we didn't need).
886
887 - Use a slightly more compatible set of core #include directives.
888
889 - Defined int32 in a way that ensures that the build dies if we can't
890 find a variable with at least 32 bits.
891
892 PROTOCOL DIFFERENCES FOR VERSION 29:
893
894 - A 16-bit flag-word is transmitted after every file-list index. This
895 indicates what is changing between the sender and the receiver. The
896 generator now transmits an index and a flag-word to indicate when
897 dirs and symlinks have changed (instead of producing a message),
898 which makes the outputting of the information more consistent and
899 less prone to screen corruption (because the local receiver/sender is
900 now outputting all the file-change info messages).
901
902 - If a file is being hard-linked, the ITEM_XNAME_FOLLOWS bit is enabled
903 in the flag-word and the name of the file that was linked immediately
904 follows in vstring format (see below).
905
906 - If a file is being transferred with an alternate-basis file, the
907 ITEM_BASIS_TYPE_FOLLOWS bit is enabled in the flag-word and a single
908 byte follows, indicating what type of basis file was chosen. If that
909 indicates that a fuzzy-match was selected, the ITEM_XNAME_FOLLOWS bit
910 is set in the flag-word and the name of the match in vstring format
911 follows the basis byte. A vstring is a variable length string that
912 has its size written prior to the string, and no terminating null.
913 If the string is from 1-127 bytes, the length is a single byte. If
914 it is from 128-32767 bytes, the length is written as ((len >> 8) |
915 0x80) followed by (len % 0x100).
916
917 - The sending of exclude names is done using filter-rule syntax. This
918 means that all names have a prefixed rule indicator, even excludes
919 (which used to be sent as a bare pattern, when possible). The -C
920 option will include the per-dir .cvsignore merge file in the list of
921 filter rules so it is positioned correctly (unlike in some older
922 transfer scenarios).
923
924 - Rsync sorts the filename list in a different way: it sorts the subdir
925 names after the non-subdir names for each dir's contents, and it
926 always puts a dir's contents immediately after the dir's name in the
927 list. (Previously an item named "foo.txt" would sort in between
928 directory "foo/" and "foo/bar".)
929
930 - When talking to a protocol 29 rsync daemon, a list-only request
931 is able to note this before the options are sent over the wire and
932 the new --list-only option is included in the options.
933
934 - When the --stats bytes are sent over the wire (or stored in a batch),
935 they now include two elapsed-time values: one for how long it took to
936 build the file-list, and one for how long it took to send it over the
937 wire (each expressed in thousandths of a second).
938
939 - When --delete-excluded is specified with some filter rules (AKA
940 excludes), a client sender will now initiate a send of the rules to
941 the receiver (older protocols used to omit the sending of excludes in
942 this situation since there were no receiver-specific rules that
943 survived --delete-excluded back then). Note that, as with all the
944 filter-list sending, only items that are significant to the other
945 side will actually be sent over the wire, so the filter-rule list
946 that is sent in this scenario is often empty.
947
948 - An index equal to the file-list count is sent as a keep-alive packet
949 from the generator to the sender, which then forwards it on to the
950 receiver. This normally invalid index is only a valid keep-alive
951 packet if the 16-bit flag-word that follows it contains a single bit
952 (ITEM_IS_NEW, which is normally an illegal flag to appear alone).
953
954 - A protocol-29 batch file includes a bit for the setting of the --dirs
955 option and for the setting of the --compress option. Also, the shell
956 script created by --write-batch will use the --filter option instead
957 of --exclude-from to capture any filter rules.
958
959 BUILD CHANGES:
960
961 - Handle an operating system that use mkdev() in place of makedev().
962
963 - Improved configure to better handle cross-compiling.
a1c75ed0
WD
964
965\f
ca39ebf9
WD
966NEWS for rsync 2.6.3 (30 Sep 2004)
967Protocol: 28 (unchanged)
968Changes since 2.6.2:
969
970 SECURITY FIXES:
971
972 - A bug in the sanitize_path routine (which affects a non-chrooted
973 rsync daemon) could allow a user to craft a pathname that would get
974 transformed into an absolute path for certain options (but not for
975 file-transfer names). If you're running an rsync daemon with chroot
976 disabled, *please upgrade*, ESPECIALLY if the user privs you run
977 rsync under is anything above "nobody".
978
979 OUTPUT CHANGES (ATTN: those using a script to parse the verbose output):
980
981 - Please note that the 2-line footer (output when verbose) now uses the
982 term "sent" instead of "wrote" and "received" instead of "read". If
983 you are not parsing the numeric values out of this footer, a script
984 would be better off using the empty line prior to the footer as the
985 indicator that the verbose output is over.
986
987 - The output from the --stats option was similarly affected to change
988 "written" to "sent" and "read" to "received".
989
990 - Rsync ensures that a filename that contains a newline gets mentioned
991 with each newline transformed into a question mark (which prevents a
992 filename from causing an empty line to be output).
993
994 - The "backed up ..." message that is output when at least 2 --verbose
995 options are specified is now the same both with and without the
996 --backup-dir option.
997
998 BUG FIXES:
999
1000 - Fixed a crash bug that might appear when --delete was used and
1001 multiple source directories were specified.
1002
1003 - Fixed a 32-bit truncation of the file length when generating the
1004 checksums.
1005
1006 - The --backup code no longer attempts to create some directories
1007 over and over again (generating warnings along the way).
1008
1009 - Fixed a bug in the reading of the secrets file (by the daemon) and
1010 the password file (by the client): the files no longer need to be
1011 terminated by a newline for their content to be read in.
1012
1013 - If a file has a read error on the sending side or the reconstructed
1014 data doesn't match the expected checksum (perhaps due to the basis
1015 file changing during the transfer), the receiver will no longer
1016 retain the resulting file unless the --partial option was specified.
1017 (Note: for the read-error detection to work, neither side can be
1018 older than 2.6.3 -- older receivers will always retain the file, and
1019 older senders don't tell the receiver that the file had a read
1020 error.)
1021
1022 - If a file gets resent in a single transfer and the --backup option
1023 is enabled, rsync no longer performs a duplicate backup (it used to
1024 overwrite the original file in the backup area).
1025
1026 - Files specified in the daemon's "exclude" or "exclude from" config
1027 items are now excluded from being uploaded (assuming that the module
1028 allows uploading at all) in addition to the old download exclusion.
1029
1030 - Got rid of a potential hang in the receiver when near the end of a
1031 phase.
1032
1033 - When using --backup without a --backup-dir, rsync no longer preserves
1034 the modify time on directories. This avoids confusing NFS.
1035
1036 - When --copy-links (-L) is specified, we now output a separate error
1037 for a symlink that has no referent instead of claiming that a file
1038 "vanished".
1039
1040 - The --copy-links (-L) option no longer has the side-effect of telling
1041 the receiving side to follow symlinks. See the --keep-dirlinks
1042 option (mentioned below) for a way to specify that behavior.
1043
1044 - Error messages from the daemon server's option-parsing (such as
1045 refused options) are now successfully transferred back to the client
1046 (the server used to fail to send the message because the socket
1047 wasn't in the right state for the message to get through).
1048
1049 - Most transfer errors that occur during a daemon transfer are now
1050 returned to the user in addition to being logged (some messages are
1051 intended to be daemon-only and are not affected by this).
1052
1053 - Fixed a bug in the daemon authentication code when using one of the
1054 batch-processing options.
1055
1056 - We try to work around some buggy IPv6 implementations that fail to
1057 implement IPV6_V6ONLY. This should fix the "address in use" error
1058 that some daemons get when running on an OS with a buggy IPv6
1059 implementation. Also, if the new code gets this error, we might
1060 suggest that the user specify --ipv4 or --ipv6 (if we think it will
1061 help).
1062
1063 - When the remote rsync dies, make a better effort to recover any error
1064 messages it may have sent before dying (the local rsync used to just
1065 die with a socket-write error).
1066
1067 - When using --delete and a --backup-dir that contains files that are
1068 hard-linked to their destination equivalents, rsync now makes sure
1069 that removed files really get removed (avoids a really weird rename()
1070 behavior).
1071
1072 - Avoid a bogus run-time complaint about a lack of 64-bit integers when
1073 the int64 type is defined as an off_t and it actually has 64-bits.
1074
1075 - Added a configure check for open64() without mkstemp64() so that we
1076 can avoid using mkstemp() when such a combination is encountered.
1077 This bypasses a problem writing out large temp files on OSes such as
1078 AIX and HP-UX.
1079
1080 - Fixed an age-old crash problem with --read-batch on a local copy
1081 (rsync was improperly assuming --whole-file for the local copy).
1082
1083 - When --dry-run (-n) is used and the destination directory does not
1084 exist, rsync now produces a correct report of files that would be
1085 sent instead of dying with a chdir() error.
1086
1087 - Fixed a bug that could cause a slow-to-connect rsync daemon to die
1088 with an error instead of waiting for the connection to finish.
1089
1090 - Fixed an ssh interaction that could cause output to be lost when the
1091 user chose to combine the output of rsync's stdout and stderr (e.g.
1092 using the "2>&1").
1093
1094 ENHANCEMENTS:
1095
1096 - Added the --partial-dir=DIR option that lets you specify where to
1097 (temporarily) put a partially transferred file (instead of over-
1098 writing the destination file). E.g. --partial-dir=.rsync-partial
1099 Also added support for the RSYNC_PARTIAL_DIR environment variable
1100 that, when found, transforms a regular --partial option (such as
1101 the convenient -P option) into one that also specifies a directory.
1102
1103 - Added --keep-dirlinks (-K), which allows you to symlink a directory
1104 onto another partition on the receiving side and have rsync treat it
1105 as matching a normal directory from the sender.
1106
1107 - Added the --inplace option that tells rsync to write each destination
1108 file without using a temporary file. The matching of existing data
1109 in the destination file can be severely limited by this, but there
1110 are also cases where this is more efficient (such as appending data).
1111 Use only when needed (see the man page for more details).
1112
1113 - Added the "write only" option for the daemon's config file.
1114
1115 - Added long-option names for -4 and -6 (namely --ipv4 and --ipv6)
1116 and documented all these options in the man page.
1117
1118 - Improved the handling of the --bwlimit option so that it's less
1119 bursty, more accurate, and works properly over a larger range of
1120 values.
1121
1122 - The rsync daemon-over-ssh code now looks for SSH_CONNECTION and
1123 SSH2_CLIENT in addition to SSH_CLIENT to figure out the IP address.
1124
1125 - Added the --checksum-seed=N option for advanced users.
1126
1127 - Batch writing/reading has a brand-new implementation that is simpler,
1128 fixes a few weird problems with the old code (such as no longer
1129 sprinkling the batch files into different dirs or even onto different
1130 systems), and is much less intrusive into the code (making it easier
1131 to maintain for the future). The new code generates just one data
1132 file instead of three, which makes it possible to read the batch on
1133 stdin via a remote shell. Also, the old requirement of forcing the
1134 same fixed checksum-seed for all batch processing has been removed.
1135
1136 - If an rsync daemon has a module set with "list = no" (which hides its
1137 presence in the list of available modules), a user that fails to
1138 authenticate gets the same "unknown module" error that they would get
1139 if the module were actually unknown (while still logging the real
1140 error to the daemon's log file). This prevents fishing for module
1141 names.
1142
1143 - The daemon's "refuse options" config item now allows you to match
1144 option names using wildcards and/or the single-letter option names.
1145
1146 - Each transferred file now gets its permissions and modified-time
1147 updated before the temp-file gets moved into place. Previously, the
1148 finished file would have a very brief window where its permissions
1149 disallowed all group and world access.
1150
1151 - Added the ability to parse a literal IPv6 address in an "rsync:" URL
1152 (e.g. rsync://[2001:638:500:101::21]:873/module/dir).
1153
1154 - The daemon's wildcard expanding code can now handle more than 1000
1155 filenames (it's now limited by memory instead of having a hard-wired
1156 limit).
1157
1158 INTERNAL:
1159
1160 - Some cleanup in the exclude code has saved some per-exclude memory
1161 and made the code easier to maintain.
1162
1163 - Improved the argv-overflow checking for a remote command that has a
1164 lot of args.
1165
1166 - Use rsyserr() in the various places that were still calling rprintf()
1167 with strerror() as an arg.
1168
1169 - If an rsync daemon is listening on multiple sockets (to handle both
1170 IPv4 and IPv6 to a single port), we now close all the unneeded file
1171 handles after we accept a connection (we used to close just one of
1172 them).
1173
1174 - Optimized the handling of larger block sizes (rsync used to slow to a
1175 crawl if the block size got too large).
1176
1177 - Optimized away a loop in hash_search().
1178
1179 - Some improvements to the sanitize_path() and clean_fname() functions
1180 makes them more efficient and produce better results (while still
1181 being compatible with the file-name cleaning that gets done on both
1182 sides when sending the file-list).
1183
1184 - Got rid of alloc_sanitize_path() after adding a destination-buffer
1185 arg to sanitize_path() made it possible to put all the former's
1186 functionality into the latter.
1187
1188 - The file-list that is output when at least 4 verbose options are
1189 specified reports the uid value on the sender even when rsync is
1190 not running as root (since we might be sending to a root receiver).
1191
1192 BUILD CHANGES:
1193
1194 - Added a "gen" target to rebuild most of the generated files,
1195 including configure, config.h.in, the man pages, and proto.h.
1196
1197 - If "make proto" doesn't find some changes in the prototypes, the
1198 proto.h file is left untouched (its time-stamp used to always be
1199 updated).
1200
1201 - The variable $STRIP (that is optionally set by the install-strip
1202 target's rule) was changed to $INSTALL_STRIP because some systems
1203 have $STRIP already set in the environment.
1204
1205 - Fixed a build problem when SUPPORT_HARD_LINKS isn't defined.
1206
1207 - When cross-compiling, the gettimeofday() function is now assumed to
1208 be a modern version that takes two-args (since we can't test it).
1209
1210 DEVELOPER RELATED:
1211
1212 - The scripts in the testsuite dir were cleaned up a bit and a few
1213 new tests added.
1214
1215 - Some new diffs were added to the patches dir, and some accepted
1216 ones were removed.
1217
1218\f
c7be6dec
WD
1219NEWS for rsync 2.6.2 (30 Apr 2004)
1220Protocol: 28 (unchanged)
1221Changes since 2.6.1:
1222
1223 BUG FIXES:
1224
1225 - Fixed a major bug in the sorting of the filenames when --relative
1226 is used for some sources (just sources such as "/" and "/*" were
1227 affected). This fix ensures that we ask for the right file-list
1228 item when requesting changes from the sender.
1229
1230 - Rsync now checks the return value of the close() function to
1231 better report disk-full problems on an NFS file system.
1232
1233 - Restored the old daemon-server behavior of logging error messages
1234 rather than returning them to the user. (A better long-term fix
1235 will be sought in the future.)
1236
1237 - An obscure uninitialized-variable bug was fixed in the uid/gid
1238 code. (This bug probably had no ill effects.)
1239
1240 BUILD CHANGES:
1241
1242 - Got rid of the configure check for sys/sysctl.h (it wasn't used
1243 and was causing a problem on some systems). Also improved the
1244 broken-largefile-locking test to try to avoid failure due to an
1245 NFS build-dir.
1246
1247 - Fixed a compile problem on systems that don't define
1248 AI_NUMERICHOST.
1249
1250 - Fixed a compile problem in the popt source for compilers that
1251 don't support __attribute__.
1252
1253 DEVELOPER RELATED:
1254
1255 - Improved the testsuite's "merge" test to work on OSF1.
1256
1257 - Two new diffs were added to the patches dir.
1258
1259\f
1260NEWS for rsync 2.6.1 (26 Apr 2004)
1261Protocol: 28 (changed)
1262Changes since 2.6.0:
1263
1264 SECURITY FIXES:
1265
1266 - Paths sent to an rsync daemon are more thoroughly sanitized when
1267 chroot is not used. If you're running a non-read-only rsync
1268 daemon with chroot disabled, *please upgrade*, ESPECIALLY if the
1269 user privs you run rsync under is anything above "nobody".
1270
1271 ENHANCEMENTS:
1272
1273 - Lower memory use, more optimal transfer of data over the socket,
1274 and lower CPU usage (see the INTERNAL section for details).
1275
1276 - The RSYNC_PROXY environment variable can now contain a
1277 "USER:PASS@" prefix before the "HOST:PORT" information.
1278 (Bardur Arantsson)
1279
1280 - The --progress output now mentions how far along in the transfer
1281 we are, including both a count of files transferred and a
1282 percentage of the total file-count that we've processed. It also
1283 shows better current-rate-of-transfer and remaining-transfer-time
1284 values.
1285
1286 - Documentation changes now attempt to describe some often mis-
1287 understood features more clearly.
1288
1289 BUG FIXES:
1290
1291 - When -x (--one-file-system) is combined with -L (--copy-links) or
1292 --copy-unsafe-links, no symlinked files are skipped, even if the
1293 referent file is on a different filesystem.
1294
1295 - The --link-dest code now works properly for a non-root user when
1296 (1) the UIDs of the source and destination differ and -o was
1297 specified, or (2) when the group of the source can't be used on
1298 the destination and -g was specified.
1299
1300 - Fixed a bug in the handling of -H (hard-links) that might cause
1301 the expanded PATH/NAME value of the current item to get
1302 overwritten (due to an expanded-name caching bug).
1303
1304 - We now reset the "new data has been sent" flag at the start of
1305 each file we send. This makes sure that an interrupted transfer
1306 with the --partial option set doesn't keep a shorter temp file
10a1a3f5 1307 than the current basis file when no new data has been transferred
c7be6dec
WD
1308 over the wire for that file.
1309
1310 - Fixed a byte-order problem in --batch-mode on big-endian machines.
1311 (Jay Fenlason)
1312
1313 - When using --cvs-exclude, the exclude items we get from a
1314 per-directory's .cvsignore file once again only affect that one
1315 directory (not all following directories too). The items are also
1316 now properly word-split and parsed without any +/- prefix parsing.
1317
1318 - When specifying the USER@HOST: prefix for a file, the USER part
1319 can now contain an '@', if needed (i.e. the last '@' is used to
1320 find the HOST, not the first).
1321
1322 - Fixed some bugs in the handling of group IDs for non-root users:
1323 (1) It properly handles a group that the sender didn't have a name
1324 for (it would previously skip changing the group on any files in
1325 that group). (2) If --numeric-ids is used, rsync no longer
1326 attempts to set groups that the user doesn't have the permission
1327 to set.
1328
1329 - Fixed the "refuse options" setting in the rsyncd.conf file.
1330
1331 - Improved the -x (--one-file-system) flag's handling of any mount-
1332 point directories we encounter. It is both more optimal (in that
1333 it no longer does a useless scan of the contents of the mount-
1334 point dirs) and also fixes a bug where a remapped mount of the
1335 original filesystem could get discovered in a subdir we should be
1336 ignoring.
1337
1338 - Rsync no longer discards a double-slash at the start of a filename
1339 when trying to open the file. It also no longer constructs names
1340 that start with a double slash (unless the user supplied them).
1341
1342 - Path-specifying options to a daemon should now work the same with
1343 or without chroot turned on. Previously, such a option (such as
1344 --link-dest) would get its absolute path munged into a relative
1345 one if chroot was not on, making that setting fairly useless.
1346 Rsync now transforms the path into one that is based on the
1347 module's base dir when chroot is not enabled.
1348
1349 - Fixed a compatibility problem interacting with older rsync
1350 versions that might send us an empty --suffix value without
1351 telling us that --backup-dir was specified.
1352
1353 - The "hosts allow" option for a daemon-over-remote-shell process
1354 now has improved support for IPv6 addresses and a fix for systems
1355 that have a length field in their socket structs.
1356
1357 - Fixed the ability to request an empty backup --suffix when sending
1358 files to an rsync daemon.
1359
1360 INTERNAL:
1361
1362 - Most of the I/O is now buffered, which results in a pretty large
1363 speedup when running under MS Windows. (Craig Barratt)
1364
1365 - Optimizations to the name-handling/comparing code have made some
1366 significant reductions in user-CPU time for large file sets.
1367
1368 - Some cleanup of the variable types make the code more consistent.
1369
1370 - Reduced memory requirements of hard link preservation.
1371 (J.W. Schultz)
1372
1373 - Implemented a new algorithm for hard-link handling that speeds up
1374 the code significantly. (J.W. Schultz and Wayne Davison)
1375
1376 - The --hard-link option now uses the first existing file in the
1377 group of linked files as the basis for the transfer. This
1378 prevents the sub-optimal transfer of a file's data when a new
1379 hardlink is added on the sending side and it sorts alphabetically
1380 earlier in the list than the files that are already present on the
1381 receiving side.
1382
1383 - Dropped support for protocol versions less than 20 (2.3.0 released
1384 15 Mar 1999) and activated warnings for protocols less than 25
1385 (2.5.0 released 23 Aug 2001). (Wayne Davison and J.W. Schultz,
1386 severally)
1387
1388 - More optimal data transmission for --hard-links (protocol 28).
1389
1390 - More optimal data transmission for --checksum (protocol 28).
1391
1392 - Less memory is used when --checksum is specified.
1393
1394 - Less memory is used in the file list (a per-file savings).
1395
1396 - The generator is now better about not modifying the file list
1397 during the transfer in order to avoid a copy-on-write memory
1398 bifurcation (on systems where fork() uses shared memory).
1399 Previously, rsync's shared memory would slowly become unshared,
1400 resulting in real memory usage nearly doubling on the receiving
1401 side by the end of the transfer. Now, as long as permissions
1402 are being preserved, the shared memory should remain that way
1403 for the entire transfer.
1404
1405 - Changed hardlink info and file_struct + strings to use allocation
1406 pools. This reduces memory use for large file-sets and permits
1407 freeing memory to the OS. (J.W. Schultz)
1408
1409 - The 2 pipes used between the receiver and generator processes
1410 (which are forked on the same machine) were reduced to 1 pipe and
1411 the protocol improved so that (1) it is now impossible to have the
1412 "redo" pipe fill up and hang rsync, and (2) trailing messages from
1413 the receiver don't get lost on their way through the generator
1414 over to the sender (which mainly affected hard-link messages and
1415 verbose --stats output).
1416
1417 - Improved the internal uid/gid code to be more portable and a
1418 little more optimized.
1419
1420 - The device numbers sent when using --devices are now sent as
1421 separate major/minor values with 32-bit accuracy (protocol 28).
1422 Previously, the copied devices were sent as a single 32-bit
1423 number. This will make inter-operation of 64-bit binaries more
1424 compatible with their 32-bit brethren (with both ends of the
1425 connection are using protocol 28). Note that optimizations in the
1426 binary protocol for sending the device numbers often results in
1427 fewer bytes being used than before, even though more precision is
1428 now available.
1429
1430 - Some cleanup of the exclude/include structures and its code made
1431 things clearer (internally), simpler, and more efficient.
1432
1433 - The reading & writing of the file-list in batch-mode is now
1434 handled by the same code that sends & receives the list over the
1435 wire. This makes it much easier to maintain. (Note that the
1436 batch code is still considered to be experimental.)
1437
1438 BUILD CHANGES:
1439
1440 - The configure script now accepts --with-rsyncd-conf=PATH to
1441 override the default value of the /etc/rsyncd.conf file.
1442
1443 - Fixed configure bug when running "./configure --disable-ipv6".
1444
1445 - Fixed compilation problem on Tru64 Unix (having to do with
1446 sockaddr.sa_len and sockaddr.sin_len).
1447
1448 DEVELOPER RELATED:
1449
1450 - Fixed "make test" bug when build dir is not the source dir.
1451
1452 - Added a couple extra diffs in the "patches" dir, removed the ones
1453 that got applied, and rebuilt the rest.
1454
1455\f
0f1aa0d3
WD
1456NEWS for rsync 2.6.0 (1 Jan 2004)
1457Protocol: 27 (changed)
1458Changes since 2.5.7:
1459
1460 ENHANCEMENTS:
1461
1462 * "ssh" is now the default remote shell for rsync. If you want to
1463 change this, configure like this: "./configure --with-rsh=rsh".
1464
1465 * Added --files-from, --no-relative, --no-implied-dirs, and --from0.
1466 Note that --from0 affects the line-ending character for all the
1467 files read by the --*-from options. (Wayne Davison)
1468
1469 * Length of csum2 is now per-file starting with protocol version
1470 27. (J.W. Schultz)
1471
1472 * Per-file dynamic block size is now sqrt(file length). The
1473 per-file checksum size is determined according to an algorithm
1474 provided by Donovan Baarda which reduces the probability of rsync
1475 algorithm corrupting data and falling back using the whole md4
1476 checksums. (J.W. Schultz, Donovan Baarda)
1477
1478 * The --stats option no longer includes the (debug) malloc summary
1479 unless the verbose option was specified at least twice.
1480
1481 * Added a new error/warning code for when files vanish from the
1482 sending side. Made vanished source files not interfere with the
1483 file-deletion pass when --delete-after was specified.
1484
1485 * Various trailing-info sections are now preceded by a newline.
1486
1487 BUG FIXES:
1488
1489 * Fixed several exclude/include matching bugs when using wild-cards.
1490 This has a several user-visible effects, all of which make the
1491 matching more consistent and intuitive. This should hopefully not
1492 cause anyone problems since it makes the matching work more like
1493 what people are expecting. (Wayne Davison)
1494
1495 - A pattern with a "**" no longer causes a "*" to match slashes.
1496 For example, with "/*/foo/**", "foo" must be 2 levels deep.
1497 [If your string has BOTH "*" and "**" wildcards, changing the
1498 "*" wildcards to "**" will provide the old behavior in all
1499 versions.]
1500
1501 - "**/foo" now matches at the base of the transfer (like /foo
1502 does). [Use "/**/foo" to get the old behavior in all versions.]
1503
1504 - A non-anchored wildcard term floats to match beyond the base of
1505 the transfer. E.g. "CVS/R*" matches at the end of the path,
1506 just like the non-wildcard term "CVS/Root" does. [Use "/CVS/R*"
1507 to get the old behavior in all versions.]
1508
1509 - Including a "**" in the match term causes it to be matched
1510 against the entire path, not just the name portion, even if
1511 there aren't any interior slashes in the term. E.g. "foo**bar"
1512 would exclude "/path/foo-bar" (just like before) as well as
1513 "/foo-path/baz-bar" (unlike before). [Use "foo*bar" to get the
1514 old behavior in all versions.]
1515
1516 * The exclude list specified in the daemon's config file is now
1517 properly applied to the pulled items no matter how deep the
1518 user's file-args are in the source tree. (Wayne Davison)
1519
1520 * For protocol version >= 27, mdfour_tail() is called when the
1521 block size (including checksum_seed) is a multiple of 64.
1522 Previously it was not called, giving the wrong MD4 checksum.
1523 (Craig Barratt)
1524
1525 * For protocol version >= 27, a 64 bit bit counter is used in
1526 mdfour.c as required by the RFC. Previously only a 32 bit bit
1527 counter was used, causing incorrect MD4 file checksums for
1528 file sizes >= 512MB - 4. (Craig Barratt)
1529
1530 * Fixed a crash bug when interacting with older rsync versions and
1531 multiple files of the same name are destined for the same dir.
1532 (Wayne Davison)
1533
1534 * Keep tmp names from overflowing MAXPATHLEN.
1535
1536 * Make --link-dest honor the absence of -p, -o, and -g.
1537
1538 * Made rsync treat a trailing slash in the destination in a more
1539 consistent manner.
1540
1541 * Fixed file I/O error detection. (John Van Essen)
1542
1543 * Fixed bogus "malformed address {hostname}" message in rsyncd log
1544 when checking IP address against hostnames from "hosts allow"
1545 and "hosts deny" parameters in config file.
1546
1547 * Print heap statistics when verbose >= 2 instead of when >= 1.
1548
1549 * Fixed a compression (-z) bug when syncing a mostly-matching file
1550 that contains already-compressed data. (Yasuoka Masahiko and
1551 Wayne Davison)
1552
1553 * Fixed a bug in the --backup code that could cause deleted files
1554 to not get backed up.
1555
1556 * When the backup code makes new directories, create them with mode
1557 0700 instead of 0755 (since the directory permissions in the
1558 backup tree are not yet copied from the main tree).
1559
1560 * Call setgroups() in a more portable manner.
1561
1562 * Improved file-related error messages to better indicate exactly
1563 what pathname failed. (Wayne Davison)
1564
1565 * Fixed some bugs in the handling of --delete and --exclude when
1566 using the --relative (-R) option. (Wayne Davison)
1567
1568 * Fixed bug that prevented regular files from replacing
1569 special files and caused a directory in --link-dest or
1570 --compare-dest to block the creation of a file with the
1571 same path. A directory still cannot be replaced by a
1572 regular file unless --delete specified. (J.W. Schultz)
1573
1574 * Detect and report when open or opendir succeed but read and
1575 readdir fail caused by network filesystem issues and truncated
1576 files. (David Norwood, Michael Brown, J.W. Schultz)
1577
1578 * Added a fix that should give ssh time to restore the tty settings
1579 if the user presses Ctrl-C at an ssh password prompt.
1580
1581 INTERNAL:
1582
1583 * Eliminated vestigial support for old versions that we stopped
1584 supporting. (J.W. Schultz)
1585
1586 * Simplified some of the option-parsing code. (Wayne Davison)
1587
1588 * Some cleanup made to the exclude code, as well as some new
1589 defines added to enhance readability. (Wayne Davison)
1590
1591 * Changed the protocol-version code so that it can interact at a
1592 lower protocol level than the maximum supported by both sides.
1593 Added an undocumented option, --protocol=N, to force the value
1594 we advertise to the other side (primarily for testing purposes).
1595 (Wayne Davison)
1596
1597\f
276877cf
WD
1598NEWS for rsync 2.5.7 (4 Dec 2003)
1599Protocol: 26 (unchanged)
1600Changes since 2.5.6:
1601
1602 SECURITY FIXES:
1603
1604 * Fix buffer handling bugs. (Andrew Tridgell, Martin Pool, Paul
1605 Russell, Andrea Barisani)
1606
1607\f
1608NEWS for rsync 2.5.6, aka "the dwd-between-jobs release" (26 Jan 2003)
1609Protocol: 26 (unchanged)
1610Changes since 2.5.5:
1611
1612 ENHANCEMENTS:
1613
1614 * The --delete-after option now implies --delete. (Wayne Davison)
1615
1616 * The --suffix option can now be used with --backup-dir. (Michael
1617 Zimmerman)
1618
1619 * Combining "::" syntax with the -rsh/-e option now uses the
1620 specified remote-shell as a transport to talk to a (newly-spawned)
1621 server-daemon. This allows someone to use daemon features, such
1622 as modules, over a secure protocol, such as ssh. (JD Paul)
1623
1624 * The rsync:// syntax for daemon connections is now accepted in the
1625 destination field.
1626
1627 * If the file name given to --include-from or --exclude-from is "-",
1628 rsync will read from standard input. (J.W. Schultz)
1629
1630 * New option --link-dest which is like --compare-dest except that
1631 unchanged files are hard-linked in to the destination directory.
1632 (J.W. Schultz)
1633
1634 * Don't report an error if an excluded file disappears during an
1635 rsync run. (Eugene Chupriyanov and Bo Kersey)
1636
1637 * Added .svn to --cvs-exclude list to support subversion. (Jon
1638 Middleton)
1639
1640 * Properly support IPv6 addresses in the rsyncd.conf "hosts allow"
1641 and "hosts deny" fields. (Hideaki Yoshifuji)
1642
1643 * Changed exclude file handling to permit DOS or MAC style line
1644 terminations. (J.W. Schultz)
1645
1646 * Ignore errors from chmod when -p/-a/--preserve-perms is not set.
1647 (Dave Dykstra)
1648
1649 BUG FIXES:
1650
1651 * Fix "forward name lookup failed" errors on AIX 4.3.3. (John
1652 L. Allen, Martin Pool)
1653
1654 * Generate each file's rolling-checksum data as we send it, not
1655 in a separate (memory-eating) pass before hand. This prevents
1656 timeout errors on really large files. (Stefan Nehlsen)
1657
1658 * Fix compilation on Tru64. (Albert Chin, Zoong Pham)
1659
1660 * Better handling of some client-server errors. (Martin Pool)
1661
1662 * Fixed a crash that would occur when sending a list of files that
1663 contains a duplicate name (if it sorts to the end of the file
1664 list) and using --delete. (Wayne Davison)
1665
1666 * Fixed the file-name duplicate-removal code when dealing with multiple
1667 dups in a row. (Wayne Davison)
1668
1669 * Fixed a bug that caused rsync to lose the exit status of its child
1670 processes and sometimes return an exit code of 0 instead of showing
1671 an error. (David R. Staples, Dave Dykstra)
1672
1673 * Fixed bug in --copy-unsafe-links that caused it to be completely
1674 broken. (Dave Dykstra)
1675
1676 * Prevent infinite recursion in cleanup code under certain circumstances.
1677 (Sviatoslav Sviridov and Marc Espie)
1678
1679 * Fixed a bug that prevented rsync from creating intervening directories
1680 when --relative-paths/-R is set. (Craig Barratt)
1681
1682 * Prevent "Connection reset by peer" messages from Cygwin. (Randy O'Meara)
1683
1684 INTERNAL:
1685
1686 * Many code cleanups and improved internal documentation. (Martin
1687 Pool, Nelson Beebe)
1688
1689 * Portability fixes. (Dave Dykstra and Wayne Davison)
1690
1691 * More test cases. (Martin Pool)
1692
1693 * Some test-case fixes. (Brian Poole, Wayne Davison)
1694
1695 * Updated included popt to the latest vendor drop, version 1.6.4.
1696 (Jos Backus)
1697
1698 * Updated config.guess and config.sub to latest versions; this
1699 means rsync should build on more platforms. (Paul Green)
1700
1701\f
1702NEWS for rsync 2.5.5, aka Snowy River (2 Apr 2002)
1703Protocol: 26 (unchanged)
1704Changes since 2.5.4:
54c7298c
MP
1705
1706 ENHANCEMENTS:
1707
1708 * With --progress, when a transfer is complete show the time taken;
1709 otherwise show expected time to complete. (Cameron Simpson)
1710
1711 * Make "make install-strip" works properly, and "make install"
1712 accepts a DESTDIR variable for help in building binary packages.
1713 (Peter Breitenlohner, Greg Louis)
1714
1715 * If configured with --enable-maintainer-mode, then on receipt of
1716 a fatal signal rsync will try to open an xterm running gdb,
1717 similarly to Samba's "panic action" or GNOME's bug-buddy.
1718 (Martin Pool)
1719
1720
1721 BUG FIXES:
1722
1723 * Fix situation where failure to fork (e.g. because out of process
1724 slots) would cause rsync to kill all processes owned by the
1725 current user. Yes, really! (Paul Haas, Martin Pool)
1726
1727 * Fix test suite on Solaris. (Jos Backus, Martin Pool)
1728
1729 * Fix minor memory leak in socket code. (Dave Dykstra, Martin
1730 Pool.)
1731
1732 * Fix --whole-file problem that caused it to be the default even
1733 for remote connections. (Martin Pool, Frank Schulz)
1734
1735 * Work around bug in Mac OS X mkdir(2), which cannot handle
1736 trailing slashes.
1737 <http://www.opensource.apple.com/bugs/X/BSD%20Kernel/2734739.html>
1738 (Martin Pool)
1739
1740 * Improved network error handling. (Greg A. Woods)
1741
1742\f
276877cf
WD
1743NEWS for rsync 2.5.4, aka "Imitation lizard skin" (13 Mar 2002)
1744Protocol: 26 (unchanged)
1745Changes since 2.5.3:
c9a66d41
MP
1746
1747 BUG FIXES:
1748
1749 * Additional fix for zlib double-free bug. (Martin Pool, Andrew
1750 Tridgell) (CVE CAN-2002-0059)
276877cf 1751
c9a66d41
MP
1752 ENHANCEMENTS:
1753
1754 * Merge in changes from zlib 1.1.3 to zlib 1.1.4. (Jos Backus)
1755 (Note that rsync still uses a custom version of zlib; you can
1756 not just link against a system library. See zlib/README.rsync)
1757
1758 * Additional test cases for --compress. (Martin Pool)
1759
1760\f
276877cf
WD
1761NEWS for rsync 2.5.3, aka "Happy 26" (11 Mar 2002)
1762Protocol: 26 (unchanged)
1763Changes since 2.5.2:
d40fb723
MP
1764
1765 SECURITY FIXES:
1766
1767 * Make sure that supplementary groups are removed from a server
1768 process after changing uid and gid. (Ethan Benson) (Debian bug
1769 #132272, CVE CAN-2002-0080)
1770
1771 BUG FIXES:
1772
1773 * Fix zlib double-free bug. (Owen Taylor, Mark J Cox) (CVE
1774 CAN-2002-0059)
1775
276877cf 1776 * Fixed problem that in many cases caused the error message
d40fb723
MP
1777 unexpected read size of 0 in map_ptr
1778 and resulted in the wrong data being copied.
1779
1780 * Fixed compilation errors on some systems caused by the use of
1781 "unsigned int64" in rsync.h.
1782
1783 * Fixed problem on systems such as Sunos4 that do not support realloc
1784 on a NULL pointer; error was "out of memory in flist_expand".
1785
1786 * Fix for rsync server processes hanging around after the client
1787 unexpectedly disconnects. (Colin Walters) (Debian bug #128632)
1788
1789 * Cope with BSD systems on which mkdir() will not accept a trailing
1790 slash.
1791
1792 ENHANCEMENTS:
1793
1794 * Merge in changes from zlib 1.1.2 to zlib 1.1.3. (Note that
1795 rsync still uses a custom version of zlib; you can not just link
1796 against a system library. See zlib/README.rsync)
276877cf 1797
d40fb723
MP
1798 * Command to initiate connections is only shown with -vv, rather
1799 than -v as in 2.5.2. Output from plain -v is more similar to
1800 what was historically used so as not to break scripts that try
1801 to parse the output.
1802
1803 * Added --no-whole-file and --no-blocking-io options (Dave Dykstra)
1804
1805 * Made the --write-batch and --read-batch options actually work
1806 and added documentation in the man page (Jos Backus)
1807
1808 * If the daemon is unable to fork a child to accept a connection,
1809 print an error message. (Colin Walters)
1810
276877cf
WD
1811\f
1812NEWS for rsync 2.5.2 (26 Jan 2002)
1813Protocol: 26 (changed)
1814Changes since 2.5.1:
97efa5c3
MP
1815
1816 SECURITY FIXES:
1817
1818 * Signedness security patch from Sebastian Krahmer
1819 <krahmer@suse.de> -- in some cases we were not sufficiently
1820 careful about reading integers from the network.
1821
1822 BUG FIXES:
1823
1824 * Fix possible string mangling in log files.
1825
1826 * Fix for setting local address of outgoing sockets.
1827
1828 * Better handling of hardlinks and devices on platforms with
1829 64-bit dev_t or ino_t.
1830
1831 * Name resolution on machines supporting IPv6 is improved.
1832
1833 * Fix for device nodes. (dann frazier) (Debian #129135)
1834
1835 ENHANCEMENTS:
1836
1837 * With -v, rsync now shows the command used to initiate an ssh/rsh
1838 connection.
1839
1840 * --statistics now shows memory heap usage on platforms that
276877cf 1841 support mallinfo().
97efa5c3
MP
1842
1843 * "The Ted T'so school of program optimization": make progress
1844 visible and people will think it's faster. (With --progress,
1845 rsync will show you how many files it has seen as it builds the
1846 file_list, giving some indication that it has not hung.)
1847
1848 * Improvements to batch mode support. This is still experimental
1849 but testing would be welcome. (Jos Backus)
276877cf 1850
97efa5c3
MP
1851 * New --ignore-existing option, patch previously distributed with
1852 Vipul's Razor. (Debian #124286)
1853
276877cf
WD
1854\f
1855NEWS for rsync 2.5.1 (3 Jan 2002)
1856Protocol: 25 (unchanged)
1857Changes since 2.5.0:
1858
1859 BUG FIXES:
499957d9 1860
499957d9
MP
1861 * Fix for segfault in --daemon mode configuration parser. (Paul
1862 Mackerras)
1863
1864 * Correct string<->address parsing for both IPv4 and 6.
1865 (YOSHIFUJI Hideaki, SUMIKAWA Munechika and Jun-ichiro "itojun"
1866 Hagino)
1867
1868 * Various fixes for IPv6 support. (Dave Dykstra)
1869
1870 * rsync.1 typo fix. (Matt Kraai)
1871
1872 * Test suite typo fixes. (Tom Schmidt)
1873
1874 * rsync.1 grammar and clarity improvements. (Edward
1875 Welbourne)
1876
1877 * Correction to ./configure tests for inet_ntop. (Jeff Garzik)
1878
1879 ENHANCEMENTS:
1880
1881 * --progress and -P now show estimated data transfer rate (in a
276877cf
WD
1882 multiple of bytes/s) and estimated time to completion. (Rik
1883 Faith)
1884
499957d9 1885 * --no-detach option, required to run as a W32 service and also
276877cf
WD
1886 useful when running on Unix under daemontools, AIX's SRC, or a
1887 debugger. (Max Bowsher, Jos Backus)
499957d9
MP
1888
1889 * Clearer error messages for some conditions.
1890
c9a66d41 1891\f
276877cf
WD
1892NEWS for rsync 2.5.0 (30 Nov 2001)
1893Protocol: 25 (changed)
1894Changes since 2.4.6:
d313ae7d
MP
1895
1896 ANNOUNCEMENTS
1897
1898 * Martin Pool <mbp@samba.org> is now a co-maintainer.
1899
1900 NEW FEATURES
1901
1902 * Support for LSB-compliant packaging <http://www.linuxbase.org/>
1903
1904 * Shell wildcards are allowed in "auth users" lines.
1905
1906 * Merged UNC rsync+ patch to support creation of standalone patch
1907 sets. By Bert J. Dempsey and Debra Weiss, updated by Jos
1908 Backus. <http://www.ils.unc.edu/i2dsi/unc_rsync+.html>
1909
1910 * IPv6 support based on a patch from KAME.net, on systems
1911 including modern versions of Linux, Solaris, and HP-UX. Also
1912 includes IPv6 compatibility functions for old OSs by the
1913 Internet Software Consortium, Paul Vixie, the OpenSSH
1914 portability project, and OpenBSD.
1915
1916 ENHANCEMENTS
1917
1918 * Include/exclude cluestick: with -vv, print out whether files are
1919 included or excluded and why.
1920
1921 * Many error messages have more friendly explanations and more
1922 details.
1923
1924 * Manual page improvements plus scanty protocol documentation.
1925
1926 * When running as --daemon in the background and using a "log
1927 file" rsyncd.conf directive, close the log file every time it is
1928 open when going to sleep on the socket. This allows the log
1929 file to get cleaned out by another process.
1930
1931 * Change to using libpopt rather than getopt for processing
1932 options. This makes the code cleaner and the behaviour more
1933 consistent across platforms. popt is included and built if not
1934 installed on the platform.
1935
1936 * More details in --version, including note about whether 64-bit
1937 files, symlinks and hardlinks are supported.
1938
1939 * MD4 code may use less CPU cycles.
1940
1941 * Use mkstemp on systems where it is secure. If we use mktemp,
1942 explain that we do it in a secure way.
1943
1944 * --whole-file is the default when source and target are on the
1945 local machine.
1946
1947 BUG FIXES:
1948
1949 * Fix for various bugs causing rsync to hang.
1950
1951 * Attempt to fix Large File Summit support on AIX.
1952
1953 * Attempt to fix error handling lockup bug.
1954
1955 * Give a non-0 exit code if *any* of the files we have been asked
276877cf 1956 to transfer fail to transfer.
d313ae7d
MP
1957
1958 * For log messages containing ridiculously long strings that might
1959 overflow a buffer rsync no longer aborts, but rather prints an
1960 ellipsis at the end of the string. (Patch from Ed Santiago.)
1961
1962 PLATFORMS:
1963
1964 * Improved support for UNICOS (tested on Cray T3E and Cray SV1)
1965
1966 * autoconf2.52 (or later) is now required to rebuild the autoconf
276877cf 1967 scripts. It is not required to simply build rsync.
d313ae7d
MP
1968
1969 * Platforms thought to work in this release:
1970
1971 Cray SV1 UNICOS 10.0.0.8 cc
1972 Debian Linux 2.2 UltraSparc gcc
1973 Debian Linux testing/unstable ARM gcc
1974 FreeBSD 3.3-RELEASE i386 cc
1975 FreeBSD 4.1.1-RELEASE i386 cc
1976 FreeBSD 4.3-STABLE i386 cc
1977 HP PA-RISC HP-UX 10.20 gcc
1978 HP PA-RISC HP-UX 11.11 cc
1979 IRIX 6.5 MIPS cc
1980 IRIX 6.5 MIPS gcc
1981 Mac OS X PPC (--disable-ipv6) cc
1982 NetBSD 1.5 i386 gcc
1983 NetBSD Current i386 cc
1984 OpenBSD 2.5 Sparc gcc
1985 OpenBSD 2.9 i386 cc
1986 OpenBSD Current i386 cc
1987 RedHat 6.2 i386 gcc
1988 RedHat 6.2 i386 insure++
1989 RedHat 7.0 i386 gcc
1990 RedHat 7.1 i386 (Kernel 2.4.10) gcc
1991 Slackware 8.0 i686 (Kernel 2.4.10)
1992 Solaris 8 UltraSparc cc
1993 Solaris 8 UltraSparc gcc
1994 Solaris 8 i386 gcc
1995 SuSE 7.1 i386 gcc2.95.2
1996 SuSE 7.1 ppc gcc2.95.2
1997 i386-pc-sco3.2v5.0.5 cc
1998 i386-pc-sco3.2v5.0.5 gcc
1999 powerpc-ibm-aix4.3.3.0 cc
2000 i686-unknown-sysv5UnixWare7.1.0 gcc
2001 i686-unknown-sysv5UnixWare7.1.0 cc
2002
2003 TESTING:
2004
2005 * The existing test.sh script by Phil Hands has been merged into a
2006 test framework that works from both "make check" and the Samba
2007 build farm.
3742bf3a
S
2008\f
2009Partial Protocol History
f7e48a5c 2010 RELEASE DATE VER. DATE OF COMMIT* PROTOCOL
a058cbc4 2011 11 Mar 2006 2.6.7 29
cbc63b9b 2012 28 Jul 2005 2.6.6 29
2dfe1c37 2013 01 Jun 2005 2.6.5 29
f7e48a5c 2014 30 Mar 2005 2.6.4 17 Jan 2005 29
6fcedb7d 2015 30 Sep 2004 2.6.3 28
c7be6dec
WD
2016 30 Apr 2004 2.6.2 28
2017 26 Apr 2004 2.6.1 08 Jan 2004 28
276877cf
WD
2018 01 Jan 2004 2.6.0 10 Apr 2003 27 (MAX=40)
2019 04 Dec 2003 2.5.7 26
2020 26 Jan 2003 2.5.6 26
2021 02 Apr 2002 2.5.5 26
2022 13 Mar 2002 2.5.4 26
2023 11 Mar 2002 2.5.3 26
2024 26 Jan 2002 2.5.2 11 Jan 2002 26
2025 03 Jan 2002 2.5.1 25
2026 30 Nov 2001 2.5.0 23 Aug 2001 25
2027 06 Sep 2000 2.4.6 24
2028 19 Aug 2000 2.4.5 24
2029 29 Jul 2000 2.4.4 24
2030 09 Apr 2000 2.4.3 24
2031 30 Mar 2000 2.4.2 24
2032 30 Jan 2000 2.4.1 29 Jan 2000 24
2033 29 Jan 2000 2.4.0 28 Jan 2000 23
2034 25 Jan 2000 2.3.3 23 Jan 2000 22
2035 08 Nov 1999 2.3.2 26 Jun 1999 21
2036 06 Apr 1999 2.3.1 20
2037 15 Mar 1999 2.3.0 15 Mar 1999 20
2038 25 Nov 1998 2.2.1 19
2039 03 Nov 1998 2.2.0 19
2040 09 Sep 1998 2.1.1 19
2041 20 Jul 1998 2.1.0 19
2042 17 Jul 1998 2.0.19 19
2043 18 Jun 1998 2.0.17 19
2044 01 Jun 1998 2.0.16 19
2045 27 May 1998 2.0.13 27 May 1998 19
2046 26 May 1998 2.0.12 18
2047 22 May 1998 2.0.11 18
2048 18 May 1998 2.0.9 18 May 1998 18
2049 17 May 1998 2.0.8 17
2050 15 May 1998 2.0.1 17
2051 14 May 1998 2.0.0 17
2052 17 Apr 1998 1.7.4 17
2053 13 Apr 1998 1.7.3 17
2054 05 Apr 1998 1.7.2 17
2055 26 Mar 1998 1.7.1 17
2056 26 Mar 1998 1.7.0 26 Mar 1998 17 (MAX=30)
2057 13 Jan 1998 1.6.9 13 Jan 1998 15 (MAX=20)
2058
2059* DATE OF COMMIT is the date the protocol change was committed to CVS.