Wayne Davison
99d24f77ed
- Mention the "list = no" change in error handling.
...
- Improved a few of the NEWS items.
2004-07-30 22:46:07 +00:00
Wayne Davison
c0422cea9f
If someone is denied access to a "list = no" module, lie and tell them
...
that the module is "Unknown" (so the user can't probe to find unlisted
modules).
2004-07-30 20:07:52 +00:00
Wayne Davison
8b6ad0193d
Don't ignore case in lp_number() because the rest of the daemon code
...
can't handle the case where the module name doesn't exactly match the
string the user provided.
2004-07-30 20:05:37 +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
65af3dab03
Document the latest changes.
2004-07-29 18:08:16 +00:00
Wayne Davison
065a605270
Got rid of bogus compare_dest scan in skip_file() -- it must checksum
...
the same file that we used for the stat() (in the parent routine).
2004-07-29 16:45:48 +00:00
Wayne Davison
a7260c4037
Added the new --partial-dir option.
2004-07-29 16:06:38 +00:00
Wayne Davison
44cad59f2b
Document the new --partial-dir option.
2004-07-29 16:06:34 +00:00
Wayne Davison
c52461f911
Check the error return of flush_write_file().
2004-07-29 07:37:27 +00:00
Wayne Davison
7f459268d9
Added close_multiplexing_in() and renamed io_multiplexing_close()
...
to close_multiplexing_out().
2004-07-29 07:24:45 +00:00
Wayne Davison
9eeb3b9c88
Call the new close_multiplexing_in() function in the generator.
2004-07-29 07:24:00 +00:00
Wayne Davison
d1b31da71e
If we fail writing to the socket and we're receiving error messages
...
from the other side via a multiplexed input, read the socket to see
if we get some errors that would explain why they went away.
2004-07-29 07:09:46 +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
e7d13fe532
- Explicitly save the stat()'s errno so that we can be sure we're
...
testing the right thing lower down (and so that future code doesn't
always have to remember to save it off and restore it).
- Improved a chunk of link_dest code.
- Handle the removal of a non-regular file without so much duplicated
code.
2004-07-28 10:04:06 +00:00
Wayne Davison
ecc81fce17
Use the new safe_fname() function.
2004-07-26 16:36:59 +00:00
Wayne Davison
b4afd23c30
Allow safe_fname() to tweak up to two name at a time.
2004-07-26 16:34:36 +00:00
Wayne Davison
af1a3f9b6e
Use safe_fname() in full_fname().
2004-07-26 15:59:51 +00:00
Wayne Davison
820b6c9aa0
Added safe_fname() that converts any newlines in a name into '?'s.
2004-07-26 15:52:25 +00:00
Wayne Davison
3cb22c204c
Made a comment better.
2004-07-26 05:38:02 +00:00
Wayne Davison
7432ccf4ed
Some batch-mode changes.
2004-07-24 16:51:58 +00:00
Wayne Davison
6a48e792c1
Made the new option-twiddling message only output when verbose.
2004-07-24 16:51:16 +00:00
Wayne Davison
9459290ae7
Call read_stream_flags() as soon as we open the batch file for
...
reading.
2004-07-24 16:40:41 +00:00
Wayne Davison
741d654495
Call write_stream_flags() from start_write_batch().
2004-07-24 16:39:53 +00:00
Wayne Davison
d3e182af09
Added write_stream_flags() to write the state of certain flags into
...
the batchfile and read_stream_flags() to read and twiddle the same
flags. This ensures that the batchfile reading doesn't get confused
about what data to expect from the socket.
2004-07-24 16:38:49 +00:00
Wayne Davison
d9b4d267c7
Tweaked a compound line.
2004-07-23 16:59:38 +00:00
Wayne Davison
58c5c24555
Added a comment.
2004-07-23 16:59:22 +00:00
Wayne Davison
341c9a137f
Some basic batch-mode tests.
2004-07-23 02:13:34 +00:00
Wayne Davison
871446fc98
Chris added a missing "not" to a comment.
2004-07-23 01:40:22 +00:00
Wayne Davison
0abda1b176
Fixed the opening comments.
2004-07-23 01:39:19 +00:00
Wayne Davison
394bcdb5e3
If we sucessfully renamed a file that has multiple links to it, unlink()
...
it to ensure that rename() didn't lie to us (which it does if you try to
rename() a file over another link to the same file).
2004-07-22 22:52:39 +00:00
Wayne Davison
28deecca55
Changed NO_INT64 to INT64_IS_OFF_T because off_t might actually be
...
64 bits. The code now only complains if int64 is really too short.
2004-07-22 19:28:45 +00:00
Wayne Davison
4db88e5b8f
Some --help text fixes.
2004-07-22 15:43:28 +00:00
Wayne Davison
75b243a51d
Some more --inplace improvements.
2004-07-22 15:41:09 +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
077e59b769
The inplace handling in finish_transfer() now passes PERMS_SKIP_MTIME
...
to set_perms() if ok_to_set_time wasn't specified.
2004-07-22 15:30:04 +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
e344209582
Added even more double-quoting.
2004-07-22 03:23:04 +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
8c90957ff5
Got rid of read_batch special case.
2004-07-21 23:59:33 +00:00
Wayne Davison
c0d8e84c9d
Setup for read_batch mode a little differently:
...
- Avoid calling local_child().
- Create a pipe that lets the generator send us index values.
- Set batch_gen_fd for the receiver to read the pipe.
2004-07-21 23:59:31 +00:00
Wayne Davison
b0ad542928
Added batch_gen_fd.
2004-07-21 23:59:28 +00:00
Wayne Davison
727b35f665
In read_batch mode, we now let the code write out the index value
...
to the f_out pipe before we return from recv_generator(). This gives
the receiver something to sync with so that it doesn't rush ahead of
us (which could be bad if we didn't have a chance to create the
destination dirs yet).
2004-07-21 23:59:25 +00:00
Wayne Davison
aa4343211f
Don't write out the protocol_version number in read_batch mode.
2004-07-21 23:59:22 +00:00
Wayne Davison
3611989355
Complain if the user combines --read-batch with --files-from.
2004-07-21 22:50:11 +00:00
Wayne Davison
3381b77d71
Improved the test a little.
2004-07-21 21:06:13 +00:00
Wayne Davison
dce70db374
Adding a test for the --compare-dest option.
2004-07-21 20:58:32 +00:00
Wayne Davison
2adbcdc7ea
A couple am_sender checks (one negated) were not needed.
2004-07-21 20:17:02 +00:00