Wayne Davison
dc3afaf6aa
Changed "char" to "uchar" in delayed_bits's new_array() call.
2005-01-28 20:24:23 +00:00
Wayne Davison
25ff04417e
Use "#if" (not "#ifdef") for configure-defined macros.
2005-01-28 18:50:49 +00:00
Wayne Davison
48e1c8c69d
Implement the new --delay-updates option.
2005-01-27 22:46:36 +00:00
Wayne Davison
7842418b7b
Renamed several exclude-related functions/variables using new
...
filter terminology.
2005-01-25 10:39:14 +00:00
Wayne Davison
3ab56a20ee
Moved some of the delete code into flist.c since the generator now
...
calls it for the delete-during handling.
2005-01-24 01:41:45 +00:00
Wayne Davison
b98f040ef2
Go back to requiring -r for deletes to happen.
2005-01-23 07:27:01 +00:00
Wayne Davison
032dcf74b0
Check the "keep_dirs" var instead of "recurse" to decide if
...
delete-after is appropriate.
2005-01-22 22:48:37 +00:00
Wayne Davison
71e27c463d
- Changed XMIT_TOP_DIR to XMIT_DEL_START.
...
- Changed FLAG_TOP_DIR to FLAG_DEL_START.
2005-01-21 00:34:37 +00:00
Wayne Davison
d97fd43a72
Decided that delete_in_dir()'s call to delete_file() would be
...
better using DEL_RECURSE.
2005-01-20 23:51:55 +00:00
Wayne Davison
d336388403
Got rid of delete_one() since we can (and do) use the updated
...
delete_file() call now.
2005-01-19 20:10:53 +00:00
Wayne Davison
80264051d8
Tweaked the read_size var (formerly map_size) that gets passed to
...
map_file().
2005-01-17 22:51:27 +00:00
Wayne Davison
c56595d749
Make sure that the generator sent us a valid index into basis_dir[].
2005-01-15 21:14:27 +00:00
Wayne Davison
aec6b9f86f
- Call finish_transfer() with its new arg. This ensures that we only
...
create a backup file if we're about to overwrite the basis file.
- Only clear make_backups for the redo phase if partial_dir isn't set.
2005-01-10 10:03:10 +00:00
Wayne Davison
6c495e0da4
- Use an int32 for the each block-size variable.
...
- Fixed a potential overflow in the map_size calculation.
2005-01-01 21:08:17 +00:00
Wayne Davison
85f14172dc
Check the return value of flush_write_file() and report an error
...
if it reports failure.
2004-12-02 17:16:19 +00:00
Wayne Davison
ee29752217
Added support for multiple --*-dest options.
2004-11-27 17:56:58 +00:00
Wayne Davison
41cfde6be3
Checking in the g2r-basis-filename patch that ensures that the receiver
...
uses the same basis file that the generator used (avoiding a duplicate
check that could cause a hang if a compare-dest file was a named pipe).
2004-11-03 20:30:31 +00:00
Wayne Davison
f80a8520e8
Don't ever call make_backup() if we're removing a destination directory
...
(just remove it).
2004-10-27 06:34:13 +00:00
Wayne Davison
08b1b4860f
Fixed an off-by-one error in the handling of --max-delete=N.
2004-10-18 20:41:57 +00:00
Wayne Davison
9f004a9ea9
The delete_one() function no longer needs to handle the case where
...
it thinks it is removing a directory and it is really removing a
symlink.
2004-09-21 09:24:06 +00:00
Wayne Davison
dc55d7bdab
If we're making backups with --inplace, use the backup file as the
...
basis file while still updating the real destination file inplace.
2004-09-07 21:34:26 +00:00
Wayne Davison
96d910c770
Call map_file() with its new args, including a suggested window
...
size.
2004-08-03 08:05:27 +00:00
Wayne Davison
acd0299243
Got rid of unused externs.
2004-08-02 04:50:33 +00:00
Wayne Davison
33eff8bfd6
If we reject a name due to a server-exclude, someone is trying to hack
...
rsync (because the generator would not have included this file). Respond
with an exit.
2004-07-30 07:02:37 +00:00
Wayne Davison
a7260c4037
Added the new --partial-dir option.
2004-07-29 16:06:38 +00:00
Wayne Davison
c52461f911
Check the error return of flush_write_file().
2004-07-29 07:37:27 +00:00
Wayne Davison
89e540e638
One more inplace code tweak.
2004-07-29 06:59:30 +00:00
Wayne Davison
fab65a5bc2
Some minor fixes and improvements for the inplace code.
2004-07-29 06:40:26 +00:00
Wayne Davison
ecc81fce17
Use the new safe_fname() function.
2004-07-26 16:36:59 +00:00
Wayne Davison
9bccfc429c
Should always call finish_transfer() for inplace handling, just like
...
for keep_partial handling.
2004-07-22 15:31:06 +00:00
Wayne Davison
007e3c0e9a
Need to output the "failed verification" error before sending the
...
MSG_REDO so that the output comes out in the right order.
2004-07-22 08:16:35 +00:00
Wayne Davison
e2bc412669
Added a warning message when a file fails to verify, letting the user
...
know if we retained it or discarded it. Especially useful for batch-
reading mode where the old code could look like it did the update when
it really silently failed.
2004-07-22 04:15:18 +00:00
Wayne Davison
e76ca1458c
No need to check both delete_after and delete_mode since the former
...
implies the latter.
2004-07-22 02:52:57 +00:00
Wayne Davison
16cc9ca2c9
In read_batch mode, we read ints from the new batch_gen_fd pipe and
...
only process the updates from the batch file when the generator has
indicated that it is ready (which ensures that all the necessary
dirs have been created).
2004-07-21 23:59:37 +00:00
Wayne Davison
7e5fa372cf
Call map_file() with the new block_size arg (had to delay the
...
call to map_file() until the block size was known).
2004-07-20 21:35:58 +00:00
Wayne Davison
8ed9d849dc
Added new function discard_receive_data().
2004-07-19 17:05:01 +00:00
Wayne Davison
5ebab6c10c
- Don't allow some crafty user to try to force us to update a
...
server-excluded file.
- If get_tmpname() fails we need to discard the update using
receive_data().
2004-07-19 16:37:30 +00:00
Wayne Davison
a3221d2ac1
My version of Mark Curtis's --inplace option.
2004-07-16 20:06:24 +00:00
Wayne Davison
d3979b025d
Committed a space-tweak from Chris Shoemaker.
2004-07-14 16:39:08 +00:00
Wayne Davison
d2a918b454
Some formatting tweaks.
2004-07-02 18:23:57 +00:00
Wayne Davison
da38e779ea
Moved the verbose message about renaming the finished file down into
...
finish_transfer() so that it only gets output when we're actually going
to rename the file.
2004-07-02 18:13:53 +00:00
Wayne Davison
e1f67417d7
Some simple whitespace tweaks.
2004-06-30 07:27:30 +00:00
Wayne Davison
f7c3ee9932
Tweaked an overly-long line.
2004-06-29 15:12:01 +00:00
Wayne Davison
4e834af140
If --partial was specified, make sure that make_backup is turned
...
off during the second (retry) phase of the transfer to avoid
making a second backup of a file (which would lose the original).
2004-06-14 15:09:36 +00:00
Wayne Davison
eb84a83b47
Changed the new code in delete_one() so that some compilers
...
don't complain about returning a value from a void function.
2004-06-12 21:30:07 +00:00
Wayne Davison
566fce3237
Made delete_one() handle a failed rmdir on a symlink when
...
--keep-dirlinks was specified.
2004-06-11 07:40:48 +00:00
Wayne Davison
ba582f753a
Changed sum_init() to take a seed value as an arg instead of always
...
using checksum_init. This fixes an authentication problem in server
mode (as pointed out by Craig Barratt).
2004-05-21 08:27:04 +00:00
Wayne Davison
d62bcc17f3
Changed rprintf() calls that included strerror() to use rsyserr().
2004-05-15 19:31:10 +00:00
Wayne Davison
55e50d890b
If the file did not transfer correctly, only save it if --partial was
...
specified. We also skip the setting of the modtime too on a partial
copy (that way the partial file won't be confused with an up-to-date
copy of the original).
2004-05-13 07:08:22 +00:00
Wayne Davison
9f27cd8ca6
Check the return code from close() and output an error if it
...
fails.
2004-04-27 19:51:33 +00:00