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
Wayne Davison
92b9eb978e
Moved a few externs and made a couple formatting tweaks.
2004-03-23 16:50:40 +00:00
Wayne Davison
1e82e2cea6
Got rid of an ancient (and no longer relevant) comment.
2004-03-23 16:36:00 +00:00
Wayne Davison
c338460d66
Got rid of some superfluous parens.
2004-02-27 08:03:49 +00:00
Wayne Davison
cb869c26d9
Tweaked an if.
2004-02-10 17:28:59 +00:00
J.W. Schultz
9935066b70
Make idev, hlink and file_struct + strings use allocation
...
pools.
2004-02-10 03:23:37 +00:00
J.W. Schultz
bd6abc4939
Corrected sizeof usage:
...
sizeof obj
sizeof (type)
2004-02-03 03:42:49 +00:00
Wayne Davison
a53426441b
Use the new names for the transmit-flag defines.
2004-01-27 01:05:12 +00:00
Wayne Davison
f746dda0a0
Moved the call to do_hard_links() and the final directory-permissions
...
scan from recv_files() into generate_files().
2004-01-25 22:32:08 +00:00
Wayne Davison
f91e01d9a5
Replaced an snprintf() call with pathjoin().
2004-01-24 22:12:58 +00:00
Wayne Davison
a24639bb36
Tweaked an argv-type variable so that it's a little clearer what
...
the code is doing. Also added a comment.
2004-01-22 04:40:33 +00:00
Wayne Davison
3fef53645d
Use the new f_name_to() calling syntax.
2004-01-22 04:38:18 +00:00