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