Wayne Davison
b7736c797c
Some cosmetic tweaks.
2004-01-02 23:41:32 +00:00
Wayne Davison
e90b8acec3
Silence some compiler warnings.
2004-01-02 08:50:25 +00:00
Wayne Davison
76c2194714
Applying my updated version of Craig Barratt's buffered I/O patch.
2004-01-02 08:29:49 +00:00
Wayne Davison
8018edd3aa
Optimized f_name(), generating: (1) f_name_cmp(), which optimizes
...
comparing two file_struct elements without copying them first, and
(2) f_name_to() which lets us supply the destination buffer for a
f_name() call (to allow it to persist without an extra copy).
2004-01-02 07:57:02 +00:00
Wayne Davison
64c3523a6f
Got rid of /* dw */ comments.
2004-01-02 07:42:20 +00:00
Wayne Davison
06c28400fa
New "io_error" variable handling for RERR_VANISHED support.
2003-12-15 08:10:31 +00:00
Wayne Davison
58cadc8608
Merged in the security fixes from 2.5.7.
2003-12-06 21:07:27 +00:00
J.W. Schultz
6a7cc46cb2
Detect and report when open or opendir succeed but read and
...
readdir fail caused by network filesystems issues and
truncated files.
Thanks to David Norwood and Michael Brown
2003-09-16 02:49:59 +00:00
Wayne Davison
ea42541fe0
Improved file-related error messages by using the new
...
full_fname() function.
2003-09-11 04:53:05 +00:00
Wayne Davison
d04e9c51b4
Changed "remote_version" to "protocol_version".
2003-09-09 15:58:48 +00:00
Wayne Davison
6931c13800
- Made special exclusion-handling of '.' work in -R mode (so that we
...
can't accidentally lose the '.' dir and not transfer anything at all).
- Add a trailing '.' onto all '/'-trailing names, even '/' (fixes
skipped deletions in -R mode from '/').
- Fixed loss of FLAG_DELETE on user-specified dir when unduplicating '.'
(could happen on "./." or similar).
2003-08-17 21:29:11 +00:00
Wayne Davison
7d6879328a
Changed the syntax of a comment.
2003-07-03 18:33:53 +00:00
Wayne Davison
429f98283f
Modifications to handle the new server_exclude_list, and to use the
...
revised calling syntax and new defines for the various exclude
functions.
2003-07-01 21:45:18 +00:00
Wayne Davison
c120ff37f5
Optimized away 3 calls to strcmp().
2003-05-10 00:56:08 +00:00
J.W. Schultz
91c4da3fda
versions prior to 1.7.0 (protcol version 17) cannot talk to
...
protocol versions > 20 so bumping up the minimum protocol
version and excising the pre-17 cruft.
2003-04-10 00:13:48 +00:00
J.W. Schultz
bc63ae3f13
Removing vestigial support for protocol versions prior to 15.
2003-03-31 17:28:34 +00:00
Wayne Davison
24d0fcde7f
Support the new --files-from and --no-implied-dirs options.
2003-03-30 23:00:37 +00:00
Wayne Davison
dbda5fbf06
Get rid of eol whitespace.
2003-03-21 22:53:46 +00:00
Wayne Davison
2154309a54
Optimized the implied-directory code to avoid putting so many duplicate
...
dirs into the file list.
2003-03-21 22:10:44 +00:00
Wayne Davison
827c37f631
The sender no longer removes the duplicate names from the file list -- we
...
let the receiver do that, since they are the one that requests names and
we want to be sure the sender has any name the receiver may ask for.
2003-02-12 09:15:23 +00:00
Wayne Davison
b91b50c01f
Fixed the bug in clean_flist() where it did not get rid of all duplicate
...
names if there were more than 2 identical names in a row.
2003-01-18 18:00:23 +00:00
David Dykstra
fc63847406
Fix bug in --copy-unsafe that made it totally broken, and re-enable
...
the tests that tested it. As far as I can tell, it was always broken
since the day I put it in years ago. In my investigation into this I
was unable to figure out what in the world I was thinking back then,
to introduce a global variable with the wrong information in it rather
than using a parameter that was already available in readlink_stat
function. That still bothers me a bit but I decided to stop worrying
about it.
2003-01-15 16:14:07 +00:00
Jos Backus
1e34e4b7cd
Add "void" to some function definitions so that all declarations in proto.h
...
have full parameter lists. This helps unbreaking compilation on SCO UNIXWare.
Submitted by: Stephen Friedl
2002-12-24 07:42:04 +00:00
David Dykstra
1b85e3f1a0
When a file shows up as not existent during an rsync run, always check
...
to see if it excluded before reporting an error. Previously it was only
checking for the exclusion if copy_links was enabled, but the error can
also occur if a file disappears during an rsync run. Suggested by Eugene
V. Chupriyanov and Bo Kersey.
2002-12-11 18:48:27 +00:00
Wayne Davison
ca23c51aeb
- Fixed a crash in flist_find() when the last item in the flist has
...
been removed as a duplicate.
- Got rid of a compiler warning about mixed signed/unsigned types in a
conditional expression.
2002-07-27 18:01:21 +00:00
Martin Pool
c4fea82ff9
Doc.
2002-04-11 02:21:41 +00:00
Martin Pool
eca2adb4b3
OK, we can now get phase messages if we fail in send_file_entry
2002-04-09 04:50:25 +00:00
Martin Pool
4e5db0ad4a
Doc.
2002-04-08 05:21:51 +00:00
Martin Pool
6f2623fd69
Formatting cleanup.
2002-04-08 04:59:34 +00:00
Martin Pool
bd9e9eccbd
Doc.
2002-04-08 02:41:23 +00:00
David Dykstra
b23c290630
Eliminate extraneous "done" messages in verbose mode. Problem reported by
...
Lee Eakin.
2002-03-14 21:20:20 +00:00
Martin Pool
c7b562becf
Correct the plural in "1 file to consider." (Greg Louis)
2002-03-14 12:00:12 +00:00
David Dykstra
d27cbec598
Reversing the order of maybe_emit_filelist_progress() and
...
emit_filelist_progress() makes the native compilers on systems
including Solaris and Irix happier.
2002-02-13 18:30:27 +00:00
David Dykstra
f5be54d6ab
Some systems, notably Sunos4, do not support realloc(NULL, n), so if
...
nothing has yet been malloced in flist_expand(), call malloc instead of
realloc. Problem introduced in revision 1.106 of flist.c on January 25.
2002-02-13 18:06:36 +00:00
Martin Pool
db719fb0d7
Factor out code for filelist progress. Copy&paste considered harmful.
...
Add a little doc about potential optimization of stat() calls.
2002-02-13 02:44:31 +00:00
David Dykstra
1bbd10fe07
Remove the "rsync:" prefixes on FINFO messages. Return the "building file
...
list ... done" to the way it was in 2.5.1 and before when not using -P.
Apply the file list progress messages when receiving files in addition to
sending files.
2002-02-07 16:36:12 +00:00
Martin Pool
a261989cda
More signedness fixes; should be harmless.
2002-01-25 23:07:33 +00:00
Martin Pool
5f78da2025
Fix for device nodes. (dann frazier) (Debian #129135 )
2002-01-25 10:39:08 +00:00
Martin Pool
2119a4c462
Another DEV64_T change.
2002-01-25 10:16:11 +00:00
Martin Pool
1d5a1da9f8
With -vv, when the file list grows, show a message.
2002-01-25 10:12:36 +00:00
Martin Pool
2e7d19945c
With -vv, when the file list grows, show a message.
2002-01-25 10:12:02 +00:00
Martin Pool
5d2c5c4c73
Undo overzealous deletion.
2002-01-25 10:09:00 +00:00
Martin Pool
8694312695
Add dummy show_flist_stats().
2002-01-25 10:06:36 +00:00
Martin Pool
d9d6bc5278
Factor out code to grow the file list into a common location.
2002-01-25 10:05:49 +00:00
Martin Pool
ebed4c3af0
indent -kr -i8
2002-01-25 09:59:00 +00:00
Martin Pool
172875cf15
Add link to the message that introduced string_area.
2002-01-25 09:54:21 +00:00
Martin Pool
9dd891bb28
Signedness security patch from Sebastian Krahmer <krahmer@suse.de> --
...
in some cases we were not sufficiently careful about reading integers
from the network.
Also, make sure log messages are always nul-terminated.
2002-01-23 04:57:18 +00:00
Martin Pool
e03dfae507
Change gratuituous strlcat's into strlcpy, since we already know the
...
length of the existing string.
2002-01-15 11:50:32 +00:00
Martin Pool
582250008b
The Ted T'so school of program optimization: make progress visible and
...
people will think it's faster.
So now with --progress rsync will show you how many files it has seen
as it builds the file_list.
2002-01-15 10:43:51 +00:00
Martin Pool
6abd193fe3
Always use 64-bit ino_t and dev_t internally, so that we can detect
...
hardlinks if coming from a larger platform. Add heaps of comments
explaining why this is so.
2002-01-11 08:25:32 +00:00