- Mention the fix for lost output with 2>&1.
[rsync/rsync.git] / NEWS
CommitLineData
a3571c6c 1NEWS for rsync 2.6.3 (30 Sep 2004)
03a9ca0a
WD
2Protocol: 28 (unchanged)
3Changes since 2.6.2:
4
8fb7db24
WD
5 SECURITY FIXES:
6
7 - A bug in the sanitize_path routine (which affects a non-chrooted
d414962a
WD
8 rsync daemon) could allow a user to craft a pathname that would get
9 transformed into an absolute path for certain options (but not for
919ca3a3 10 file-transfer names). If you're running an rsync daemon with chroot
d414962a
WD
11 disabled, *please upgrade*, ESPECIALLY if the user privs you run
12 rsync under is anything above "nobody".
8fb7db24 13
f6c0d3d7
WD
14 OUTPUT CHANGES (ATTN: those using a script to parse the verbose output):
15
16 - Please note that the 2-line footer (output when verbose) now uses the
17 term "sent" instead of "wrote" and "received" instead of "read". If
18 you are not parsing the numeric values out of this footer, a script
82c6be7e 19 would be better off using the empty line prior to the footer as the
f6c0d3d7 20 indicator that the verbose output is over.
446a2987 21
f6c0d3d7
WD
22 - The output from the --stats option was similarly affected to change
23 "written" to "sent" and "read" to "received".
24
82c6be7e
WD
25 - Rsync ensures that a filename that contains a newline gets mentioned
26 with each newline transformed into a question mark (which prevents a
27 filename from causing an empty line to be output).
446a2987 28
a3571c6c
WD
29 - The "backed up ..." message that is output when at least 2 --verbose
30 options are specified is now the same both with and without the
31 --backup-dir option.
32
03a9ca0a
WD
33 BUG FIXES:
34
831f05df
WD
35 - Fixed a crash bug that might appear when --delete was used and
36 multiple source directories were specified.
03a9ca0a 37
c7b1a56b
WD
38 - Fixed the 32-bit truncation of the file length when generating the
39 checksums.
40
03a9ca0a
WD
41 - The --backup code no longer attempts to create some directories
42 over and over again (generating warnings along the way).
43
cbd85b47
WD
44 - Fixed a bug in the reading of the secrets file (by the daemon) and
45 the password file (by the client): the files no longer need to be
46 terminated by a newline for their content to be read in.
03a9ca0a 47
99d24f77
WD
48 - If a file has a read error on the sending side or the reconstructed
49 data doesn't match the expected checksum (perhaps due to the basis
50 file changing during the transfer), the receiver will no longer
51 retain the resulting file unless the --partial option was specified.
52 (Note: for the read-error detection to work, neither side can be
53 older than 2.6.3 -- older receivers will always retain the file, and
54 older senders don't tell the receiver that the file had a read
55 error.)
03a9ca0a 56
c54f5170 57 - If a file gets resent in a single transfer and the --backup option
82c6be7e
WD
58 is enabled, rsync no longer performs a duplicate backup (it used to
59 overwrite the original file in the backup area).
03a9ca0a 60
cbd85b47 61 - Files specified in the daemon's "exclude" or "exclude from" config
bd1574b2
WD
62 items are now excluded from being uploaded (assuming that the module
63 allows uploading at all) in addition to the old download exclusion.
cbd85b47 64
40e8d11e
WD
65 - Got rid of a potential hang in the receiver when near the end of a
66 phase.
67
b03bded7
WD
68 - When using --backup without a --backup-dir, rsync no longer preserves
69 the modify time on directories. This avoids confusing NFS.
70
40e8d11e
WD
71 - When --copy-links (-L) is specified, we now output a separate error
72 for a symlink that has no referent instead of claiming that a file
73 "vanished".
74
f6c0d3d7
WD
75 - The --copy-links (-L) option no longer has the side-effect of telling
76 the receiving side to follow symlinks. See the --keep-dirlinks
77 option (mentioned below) for a way to specify that behavior.
78
2c2898a3
WD
79 - Error messages from the daemon server's option-parsing (such as
80 refused options) now get sent back to the client (the server used
eae4e1f9
WD
81 to just exit because the socket wasn't in the right state to send
82 the message).
2c2898a3 83
c54f5170
WD
84 - Most errors that occur during a daemon transfer are now returned to
85 the user in addition to being logged (some messages are intended to
86 be daemon-only).
87
b03bded7
WD
88 - Fixed a bug in the daemon authentication code when using one of the
89 batch-processing options.
90
40564811
WD
91 - We try to work around some buggy IPv6 implementations that fail to
92 implement IPV6_V6ONLY. This should fix the "address in use" error
93 that some daemons get when running on an OS with a buggy IPv6
94 implementation. Also, if the new code gets this error, we might
95 suggest that the user specify --ipv4 or --ipv6 (if we think it will
96 help).
97
65af3dab 98 - When the remote rsync dies, make a better effort to recover any error
86e2f445
WD
99 messages it may have sent before dying (the local rsync used to just
100 die with a socket-write error).
65af3dab
WD
101
102 - When using --delete and a --backup-dir that contains files that are
103 hard-linked to their destination equivalents, rsync now makes sure
104 that removed files really get removed (works around a really weird
105 rename() behavior).
106
107 - Avoid a bogus run-time complaint about a lack of 64-bit integers when
99d24f77 108 the int64 type is defined as an off_t and it actually has 64-bits.
65af3dab 109
00735149
WD
110 - Added a configure check for open64() without mkstemp64() so that we
111 can avoid using mkstemp() when such a combination is encountered.
112 This bypasses a problem writing out large temp files on OSes such as
113 AIX and HP-UX.
114
82c6be7e
WD
115 - Fixed an age-old crash problem with --read-batch on a local copy
116 (rsync was improperly assuming --whole-file for the local copy).
117
118 - When --dry-run (-n) is used and the destination directory does not
119 exist, rsync now produces a correct report of files that would be
120 sent instead of dying with a chdir() error.
121
37c36e26
WD
122 - Fixed a bug that could cause a slow-to-connect rsync daemon to die
123 with an error instead of waiting for the connection to finish.
124
a3571c6c
WD
125 - Fixed an ssh interaction that could cause output to be lost when the
126 user chose to combine the output of rsync's stdout and stderr (e.g.
127 using the "2>&1").
128
03a9ca0a
WD
129 ENHANCEMENTS:
130
65af3dab
WD
131 - Added the --partial-dir=DIR option that lets you specify where to
132 (temporarily) put a partially transferred file (instead of over-
133 writing the destination file). E.g. --partial-dir=.rsync-partial
cc07f212
WD
134 Also added support for the RSYNC_PARTIAL_DIR environment variable
135 that, when found, transforms a regular --partial option (such as
136 the convenient -P option) into one that also specifies a directory.
65af3dab 137
40e8d11e 138 - Added --keep-dirlinks (-K), which allows you to symlink a directory
40564811 139 onto another partition on the receiving side and have rsync treat it
4e1f3857
WD
140 as matching a normal directory from the sender.
141
61fb21ad
WD
142 - Added the --inplace option that tells rsync to write each destination
143 file without using a temporary file. The matching of existing data
144 in the destination file can be severely limited by this, but there
99d24f77
WD
145 are also cases where this is more efficient (such as appending data).
146 Use only when needed (see the man page for more details).
61fb21ad 147
86e2f445 148 - Added the "write only" option for the daemon's config file.
cbd85b47 149
03a9ca0a 150 - Added long-option names for -4 and -6 (namely --ipv4 and --ipv6)
831f05df 151 and documented all these options in the man page.
03a9ca0a 152
ef0bc0ab
WD
153 - Improved the handling of the --bwlimit option so that it's less
154 bursty, more accurate, and works properly over a larger range of
155 values.
156
5b36173d
WD
157 - The rsync daemon-over-ssh code now looks for SSH_CONNECTION and
158 SSH2_CLIENT in addition to SSH_CLIENT to figure out the IP address.
159
bd1574b2
WD
160 - Added the --checksum-seed=N option for advanced users.
161
bb3edc3b
WD
162 - Batch writing/reading has a brand-new implementation that is simpler,
163 fixes a few weird problems with the old code (such as no longer
164 sprinkling the batch files into different dirs or even onto different
165 systems), and is much less intrusive into the code (making it easier
166 to maintain for the future). The new code generates just one data
7fbc7031 167 file instead of three, which makes it possible to read the batch on
919ca3a3 168 stdin via a remote shell. Also, the old requirement of forcing the
82c6be7e 169 same fixed checksum-seed for all batch processing has been removed.
0fac7fe8 170
99d24f77
WD
171 - If an rsync daemon has a module set with "list = no" (which hides its
172 presence in the list of available modules), a user that fails to
173 authenticate gets the same "unknown module" error that they would get
174 if the module were actually unknown (while still logging the real
86e2f445 175 error to the daemon's log file). This prevents fishing for module
99d24f77
WD
176 names.
177
86e2f445
WD
178 - The daemon's "refuse options" config item now allows you to match
179 option names using wildcards and/or the single-letter option names.
180
919ca3a3
WD
181 - Each transferred file now gets its permissions and modified-time
182 updated before the temp-file gets moved into place. Previously, the
183 finished file would have a very brief window where its permissions
184 disallowed all group and world access.
82c6be7e 185
a9ac4411
WD
186 - Added the ability to parse a literal IPv6 address in an "rsync:" URL
187 (e.g. rsync://[2001:638:500:101::21]:873/module/dir).
188
03a9ca0a
WD
189 INTERNAL:
190
0058c58e
WD
191 - Some cleanup in the exclude code has saved some per-exclude memory
192 and made the code easier to maintain.
03a9ca0a 193
82c6be7e
WD
194 - Improved the argv-overflow checking for a remote command that has a
195 lot of args.
78112d30 196
82c6be7e
WD
197 - Use rsyserr() in the various places that were still calling rprintf()
198 with strerror() as an arg.
03a9ca0a 199
c54f5170
WD
200 - If an rsync daemon is listening on multiple sockets (to handle both
201 IPv4 and IPv6 to a single port), we now close all the unneeded file
40564811 202 handles after we accept a connection (we used to close just one of
c54f5170
WD
203 them).
204
82c6be7e
WD
205 - Optimized the handling of larger block sizes (rsync used to slow to a
206 crawl if the block size got too large).
65af3dab 207
c7b1a56b
WD
208 - Optimized away a loop in hash_search().
209
82c6be7e
WD
210 - Some improvements to the sanitize_path() and clean_fname() functions
211 makes them more efficient and produce better results (while still
212 being compatible with the file-name cleaning that gets done on both
213 sides when sending the file-list).
214
215 - Got rid of alloc_sanitize_path() after adding a destination-buffer
216 arg to sanitize_path() made it possible to put all the former's
217 functionality into the latter.
218
7fbc7031
WD
219 - The file-list that is output when at least 4 verbose options are
220 specified reports the uid value on the sender even when rsync is
221 not running as root (since we might be sending to a root receiver).
222
03a9ca0a
WD
223 BUILD CHANGES:
224
bd1574b2
WD
225 - Added a "gen" target to rebuild most of the generated files,
226 including configure, config.h.in, the man pages, and proto.h.
03a9ca0a 227
bd1574b2 228 - If "make proto" doesn't find some changes in the prototypes, the
40564811 229 proto.h file is left untouched (its time-stamp used to always be
40e8d11e 230 updated).
03a9ca0a 231
c54f5170
WD
232 - The variable $STRIP (that is optionally set by the install-strip
233 target's rule) was changed to $INSTALL_STRIP because some systems
234 have $STRIP set in the environment.
235
c7b1a56b
WD
236 - Fixed a build problem when SUPPORT_HARD_LINKS isn't defined.
237
03a9ca0a
WD
238 DEVELOPER RELATED:
239
82c6be7e
WD
240 - The scripts in the testsuite dir were cleaned up a bit and a few
241 new tests added.
03a9ca0a 242
eae4e1f9 243 - Some new diffs were added to the patches dir, and some accepted
40e8d11e 244 ones were removed.
17f59e81 245