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