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