Wayne Davison
882e689312
- Ensure in make_file() that we can't make a name that overflows
...
our buffers (note that receive_file_entry() already does this).
- Changed f_name_to() to not do any length checking since it is
now redundant.
2004-01-22 04:38:17 +00:00
Wayne Davison
808c57c343
- Use the new push_dir() and pop_dir() calling syntax.
...
- The "olddir" handling changed to accommodate the above, and to
avoid using malloc()/free().
2004-01-20 17:46:30 +00:00
Wayne Davison
eddd5d129e
A few minor string optimizations and a new complaint if we try to
...
send a truncated filename.
2004-01-17 19:45:26 +00:00
Wayne Davison
57469f6c31
Items read from a per-directory .cvsignore file should be added to the
...
local_exclude_list, not the exclude_list.
2004-01-17 01:16:49 +00:00
Wayne Davison
785db4ced0
Merged a couple more f != -1 if sections.
2004-01-13 06:27:30 +00:00
Wayne Davison
983b1ed321
Merged some "if (f != -1)" checks, put the clean_flist() call in the
...
right spot, and moved some externs.
2004-01-13 05:11:56 +00:00
Wayne Davison
92cc9dd7c2
Use the new dev+inode union in the flist_struct.
2004-01-11 07:56:14 +00:00
Wayne Davison
728d092201
Use the new union-ified flist_struct values.
2004-01-11 07:28:45 +00:00
Wayne Davison
5911fee567
A slightly better reset mechanism for send_file_entry() and
...
receive_file_entry().
2004-01-10 22:13:19 +00:00
Wayne Davison
7b1a0c19b8
Allow the send_file_entry() and receive_file_entry() routines to be
...
called by the batch processor.
2004-01-10 20:15:55 +00:00
Wayne Davison
7c4f063b13
Got rid of tmpsum[].
2004-01-09 18:35:41 +00:00
Wayne Davison
fea4db62bd
- Never allocate a useless sum array for a non-regular flist item.
...
- Don't transmit the sum array for non-regular files (p28 onward).
- Tweaked a couple comments.
2004-01-09 18:19:32 +00:00
Wayne Davison
0c42946536
Added an extra comment.
2004-01-09 16:53:55 +00:00
J.W. Schultz
dd7fb70f6e
Finished the last_* renameing and fixed a cast..
2004-01-09 13:55:56 +00:00
Wayne Davison
30f337c9ef
Updated the send_file_name() and receive_file_entry() functions to make
...
some of the variable names more logical in the new program flow. Also
improved the setting of the new last_rdev value that only remembers the
high 3 bytes.
2004-01-08 22:45:12 +00:00
Wayne Davison
c4b4df4fb4
Optimized the sending of dev+inode data for hard-linking support
...
(but only when speaking protocol 28).
2004-01-08 11:29:50 +00:00
Wayne Davison
75bc860093
Implemented an extended-flag-byte in the transfer protocol by moving
...
the SAME_RDEV bit into the next 8 bits and adding an EXTENDED_FLAG
bit. Also modified the meaning of this bit for protocol 28 and above:
SAME_HIGH_RDEV indicates that all but the lowest byte matches. The
older protocols get OLD_SAME_RDEV set (with the old semantics) for
compatibility. Note also that protocol 28 isn't turned on yet.
2004-01-08 11:08:30 +00:00
Wayne Davison
1ef00d2072
Improved the code in send_file_entry() and receive_file_entry() to
...
make it a little easier to read and a little more optimized. Also
made the flag size in our function calls match the size of the flags
in the flist_struct. These changes will make it easier for me to
optimize the sending of the hard-link data in a future commit.
2004-01-08 04:56:27 +00:00
J.W. Schultz
fa45cda1aa
Cosmetic changes to file_compare() for readability and to
...
match hlink_compare()
2004-01-07 09:11:56 +00:00
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