Wayne Davison
969cdffbea
Prevent a server from outputting an end-of-run message about its
...
error-code that cannot be sent successfully.
2007-09-15 15:30:45 +00:00
Wayne Davison
3b7bcaaf34
Got rid of duplicate error when push_pathname() fails.
2007-09-15 15:27:56 +00:00
Wayne Davison
4abe379c05
Added an "ndx" arg to all the finish_hard_link() calls.
2007-09-10 06:15:28 +00:00
Wayne Davison
c980db5f08
- Simplified the flist-spanning gnum logic in match_gnums().
...
- Don't use hlink_flist in hard_link_check().
- Made the prev_name logic in hard_link_check() better.
- Added an "ndx" arg to the finish_hard_link() call. Also, set the
prev value of any prior entries to the first finished item (which
ensures that any item that follows a re-shuffled item (which was
waiting for a transferred file to finish) can find the FIRST+DONE
item.
2007-09-10 06:15:25 +00:00
Wayne Davison
c35d6e3522
Added --no-protect-args and --no-s.
2007-09-09 07:58:19 +00:00
Wayne Davison
044dc29307
- Made glob_expand_one() public.
...
- Tweaking the calling syntax for glob_expand().
2007-09-09 07:53:22 +00:00
Wayne Davison
7a4addaa74
Added the --protect-args (-s) option, and made parse_arguments()
...
clear out an old popt context before starting a new one.
2007-09-09 07:53:18 +00:00
Wayne Davison
f7e5068d94
- If the user specifies a source arg with a hostspec in it in a local-
...
source transer, complain and exit. This can help to find option
problems were an arg to an option turns into a local-source arg,
and the real remote-source arg will now get rejected rather than
attempting to find a file with a colon in its name.
- We now support the ability to specify more than one remote arg using
the ":FILENAME" idiom for additional remote filenames.
- If the --protect-args (-s) option was specified, we send just the
"--server -s" options to the remote rsync when it is starting, and
then the real args are sent over the socket.
2007-09-09 07:53:15 +00:00
Wayne Davison
67b8f3dfe7
- Renamed read_line() to be read_line_old().
...
- Renamed read_filesfrom_line() to read_line() and added args to allow
the caller to control how it works.
- Added a new function, read_args(), that reads args from a file
descriptor (using read_line()) and expands any wildcards in them.
This function has relocated daemon code (from clientserver.c) and
is also used by the new --protect-args (-s) option. The new code
also got rid of an extra strdup() that wasn't needed.
2007-09-09 07:53:12 +00:00
Wayne Davison
95a44066da
Call the renamed read_line() function (was read_filesfrom_line()).
2007-09-09 07:53:08 +00:00
Wayne Davison
7909e65f83
- Made start_socket_client() and start_inband_exchange() take a variable
...
number of remote args.
- We now exchange a "VERSION.SUBVERSION" value in the initial @RSYNCD
message. This is backward compatible with pre-protocol 30 rsyncs,
and fixes a problem where rsync daemons weren't checking if they were
speaking a compatible pre-release protocol.
- Moved the protocol-handling code (which was in two places) into a new
function: exchange_protocols().
- Protocol 30 now sends/receives the daemon args using NULLs as a separator
rather than a newline.
- Moved the arg-reading code into a new function in io.c: read_args().
2007-09-09 07:53:05 +00:00
Wayne Davison
f74a3d813b
Call the renamed read_line_old() function (was read_line()).
2007-09-09 07:53:02 +00:00
Wayne Davison
ac59386027
Used a couple "#if SUBPROTOCOL_VERSION != 0" conditionals.
2007-09-09 07:52:59 +00:00
Wayne Davison
73a649b7cb
Tweaked the pretend-ssh script.
2007-09-08 20:16:28 +00:00
Wayne Davison
9b49704959
Added a remote-shell substitute for use in testing and for certain
...
other esoteric needs.
2007-09-08 20:03:42 +00:00
Wayne Davison
ffbffc647b
Improved the argv/argc variable names that are really pointers.
2007-09-08 19:42:27 +00:00
Wayne Davison
968061bb65
Clarified something in the new --hard-links text.
2007-09-04 20:10:52 +00:00
Wayne Davison
c47e3ee1b6
Fixed two flist->files[first_hlink_ndx] references.
2007-09-04 07:13:01 +00:00
Wayne Davison
549a3efbb7
Improved a sentence.
2007-09-04 06:58:19 +00:00
Wayne Davison
accf8d12bc
Added a test combining -H with -c and a hard-linked file that has only
...
one instance inside the copy hierarchy. (Used to fail with protocol 29
or --no-ir.)
2007-09-04 06:57:57 +00:00
Wayne Davison
0eeb9f5481
If we turn off FLAG_HLINKED, set FLAG_HLINK_DONE so that any
...
file-entry values affected by HLINK_BUMP() stay put.
2007-09-04 06:53:47 +00:00
Wayne Davison
7b46e30fd4
Changed HLINK_BUMP() to look for either FLAG_HLINKED or FLAG_HLINK_DONE.
2007-09-04 06:52:52 +00:00
Wayne Davison
35c8fd761f
Disabled the debug messages relating to the e_fds vars.
2007-09-03 21:51:59 +00:00
Wayne Davison
ba2d43d702
- Got rid of caveat about -H not working with incremental recursion.
...
- Talk about how inc_recurse affects -H.
- Mention --no-inc-recursive and --no-ir options.
2007-09-03 21:32:21 +00:00
Wayne Davison
29349024c4
Improved the handling of the file-status events received by
...
the generator.
2007-09-03 21:21:24 +00:00
Wayne Davison
d108e04f38
We don't disable inc_recurse due to -H anymore.
2007-09-03 21:21:21 +00:00
Wayne Davison
d4d6646aae
Changes to allow hard-linking to work in inc_recurse mode.
2007-09-03 21:21:17 +00:00
Wayne Davison
cf2d26656d
- Changes to allow hard-linking to work in inc_recurse mode.
...
- Incremented SUBPROTOCOL_VERSION to 7.
2007-09-03 21:21:12 +00:00
Wayne Davison
7918f24405
Changed some instances of \" in checkit calls to '.
2007-09-03 20:43:58 +00:00
Wayne Davison
9544261a45
Added weeding of "sending incremental file list" line to filter_outfile().
2007-09-03 19:52:35 +00:00
Wayne Davison
354c9da60d
Added hashtable.o.
2007-09-03 04:59:15 +00:00
Wayne Davison
626065702f
Removed the old version of the hashtable functions and updated
...
the code to use the structures and functions calls.
2007-09-03 04:59:12 +00:00
Wayne Davison
9863bdbc93
- Use the new hashtable structures and functions.
...
- Tweaked a {read,write}_varint30() call set that didn't need to be "30".
2007-09-03 04:59:09 +00:00
Wayne Davison
83135e8f6a
Updated hashtable structures.
2007-09-03 04:59:05 +00:00
Wayne Davison
369233927c
The hashtable routines from hlink.c modified to have more generic names,
...
to support 2 sizes of key (32 and 64 bits), and to have a non-allocating
option for the find routine (returning NULL for no match).
2007-09-03 04:46:57 +00:00
Wayne Davison
7e4b6b7bc4
Use new0() function instead of new() followed by memset().
2007-09-03 04:19:11 +00:00
Wayne Davison
a2dc4d687b
Tweaked _new_array() to handle new use_calloc parameter.
2007-09-03 04:19:02 +00:00
Wayne Davison
a4431563e8
Added new0() and new_array0() to allocate and zero the memory.
2007-09-03 04:18:58 +00:00
Wayne Davison
fbd91cae0c
One more tweak to latest omit-dir-times code.
2007-09-02 06:25:26 +00:00
Wayne Davison
eb7a6e09cb
Added --no-omit-dir-times and --no-O.
2007-09-02 06:20:42 +00:00
Wayne Davison
9889a34bf2
Don't include the checksum_seed in the full-file MD5 checksum.
2007-09-02 06:00:30 +00:00
Wayne Davison
8e1e60e98f
Bump up the SUBPROTOCOL_VERSION number.
2007-09-02 06:00:27 +00:00
Wayne Davison
f9998046a3
Made omit_dir_times a static variable in options.c by encoding
...
all the time-preserving semantics into preserve_times.
2007-09-01 16:57:01 +00:00
Wayne Davison
07bbf8703f
Document the new --append and --append-verify options.
2007-09-01 16:38:09 +00:00
Wayne Davison
77502cbade
Downgrade the new --append option to --append-verify for protocols < 30.
2007-09-01 16:38:04 +00:00
Wayne Davison
936fa865e1
Handle the new --append and --append-verify options.
2007-09-01 16:38:00 +00:00
Wayne Davison
2f188c8d96
Tweaked a comment.
2007-09-01 00:59:44 +00:00
Wayne Davison
83f5394810
Make the verbose message about the file-list expansion clearer in
...
what is being expanded.
2007-08-29 23:10:16 +00:00
Wayne Davison
24d677fc16
Don't omit the -4/-6 options if no IPv6 support was compiled into
...
rsync. Just make them a no-op.
2007-08-22 00:36:56 +00:00
Wayne Davison
65a22a5ff7
In pool_free_old(), one code path was not clearing a "next" pointer,
...
so the code could try to free an extent twice in certain circumstances.
2007-08-21 05:04:02 +00:00