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