Wayne Davison
b1df18d76f
We now conditionally turn on whole_file in do_cmd() right before
...
calling local_child().
2004-07-13 01:44:03 +00:00
Wayne Davison
e1f67417d7
Some simple whitespace tweaks.
2004-06-30 07:27:30 +00:00
Wayne Davison
e7a392c77c
A few more improvements to the anti-overflow args[] checking.
2004-06-28 17:45:40 +00:00
Wayne Davison
887e553f05
Make sure that do_cmd() doesn't overflow its arg-pointer array
...
(which was also made larger).
2004-06-28 17:25:14 +00:00
Wayne Davison
3a69fad0f6
Some trivial format tweaks.
2004-06-20 21:48:06 +00:00
Wayne Davison
d16c245fc4
Some helpful comments from Chris Shoemaker.
2004-06-18 16:50:20 +00:00
Wayne Davison
83926d3cae
Make sure that keep_dirlinks is turned off for the sender.
2004-06-11 07:40:54 +00:00
Wayne Davison
6fb812f747
Removed some excessive parens.
2004-06-09 21:43:28 +00:00
Wayne Davison
7a92ded39a
Added the "write only" option to the daemon config file.
2004-05-19 22:19:19 +00:00
Wayne Davison
982e05bbd5
Changed rprintf() calls that included strerror() to use rsyserr().
2004-05-15 19:31:10 +00:00
Wayne Davison
1082b52bd4
Changing if (!write_batch) in front of send_exclude_list() to
...
if (!read_batch) -- fixes hang.
2004-05-15 18:51:21 +00:00
J.W. Schultz
3e4916822d
Dropped support for protocol versions less than 20 (2.3.0
...
released 15 Mar 1999) and activated warnings for protocols
less than 25 (2.5.0 released 23 Aug 2001)
2004-02-10 03:54:47 +00:00
Wayne Davison
6c2e5b56e4
Die if we overflowed the args[] array when building up the remote
...
command in do_cmd().
2004-02-09 21:22:59 +00:00
J.W. Schultz
7b74bba15e
Added a total memory allocated (allmem) line to
...
show_malloc_stats.
2004-02-06 01:56:25 +00:00
J.W. Schultz
e5fbaa713a
Cause all three processes to report memory stats when -vv --stats
2004-02-05 03:27:54 +00:00
Wayne Davison
6fe05820ff
Use MY_UID() instead of getuid().
2004-02-04 17:06:07 +00:00
Wayne Davison
44e9e221f3
- Call init_flist().
...
- Got rid of the symbolic-links-warning code (it was not right, and it is
now handled in options.c).
2004-02-02 21:33:06 +00:00
Wayne Davison
b695f2423d
Set the am_generator flag. Use who_am_i().
2004-01-27 23:13:14 +00:00
Wayne Davison
45e08edb08
Cast getpid() to a long for output.
2004-01-27 08:02:31 +00:00
Wayne Davison
40da904230
Tweaked a comment.
2004-01-25 22:32:05 +00:00
Wayne Davison
59187666b9
Use new push_dir() syntax.
2004-01-20 17:46:31 +00:00
Wayne Davison
6fc048f438
Find last '@' in the user@site string, just in case the username has
...
a '@' in it.
2004-01-20 05:27:09 +00:00
Wayne Davison
26f76b7912
Got rid of an extra call to io_start_buffering_out().
2004-01-17 05:04:04 +00:00
Wayne Davison
32eda0961e
Unified the externs.
2004-01-17 04:58:24 +00:00
Wayne Davison
f1e3656ee2
- Call io_flush() with its new FULL_FLUSH/NORMAL_FLUSH arg.
...
- Got rid of the recv_pipe between the receiver and the generator.
- Use new send_msg(MSG_DONE,...) call to signal the generator
when the receiver is done.
- Use the new get_redo_num() call in the generator to read the
final -1 from the receiver.
2004-01-15 07:42:21 +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
64c3523a6f
Got rid of /* dw */ comments.
2004-01-02 07:42:20 +00:00
Wayne Davison
ce67256218
Output a newline before the heap statistics.
2003-12-20 16:57:24 +00:00
Wayne Davison
90e22f4b51
Backed out the RSYNC_RSH_IO support for now.
2003-12-17 09:28:45 +00:00
Wayne Davison
9af87151ec
We now support an environment variable named RSYNC_RSH_IO which lets the
...
user set the blocking-IO value for the shell specified by RSYNC_RSH.
2003-12-16 23:06:25 +00:00
Wayne Davison
66b711633f
Improved the default-blocking-I/O code to discern rsh from ssh
...
properly.
2003-12-16 18:02:03 +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
067669dac7
Made the UNUSED(parameter) macro calls read a little nicer.
2003-08-22 05:04:13 +00:00
Wayne Davison
0f5a04e3ff
Use "return" at the end of main() to silence some compilers.
2003-07-04 15:11:46 +00:00
Wayne Davison
87cc45e136
Made my last change a little better.
2003-04-24 16:26:09 +00:00
Wayne Davison
f6b8d591f7
If the user specifies a trailing slash on the destination, make sure
...
that we treat it as a directory reference.
2003-04-24 16:14:33 +00:00
Wayne Davison
7bb7058e8d
Made a slight tweak to the previous --stats change.
2003-04-18 20:03:41 +00:00
Wayne Davison
577ab12ce5
Only display the malloc stats if we're at least double-verbose (and
...
--stats was specified, of course). Also made the output of the short
(2-line) transfer summary get prefixed with an empty line in all
cases (not just with --stats).
2003-04-17 23:44:25 +00:00
Wayne Davison
7c2a9e766c
Support the new --files-from option.
2003-03-30 23:00:33 +00:00
Wayne Davison
d9c7edf63f
- Fixed lots of line-indentation problems, including a really huge section
...
of non-batch-mode code that was indented at the same level as its
surrounding "if" statement.
- Moved the heavily-used am_* flags into global extern vars instead of
externing them again and again in individual functions.
- Got rid of line-ending whitespace.
2003-03-21 18:33:48 +00:00
David Dykstra
7d085960eb
Remove the Cygwin msleep(100) before the generator kills the receiver,
...
because it caused the testsuite/unsafe-links test to hang.
2003-01-28 05:05:53 +00:00
David Dykstra
089a2435f8
Ack! I had accidentally ifdefed out the kill from the generator to the
...
receiver process for every platform except Cygwin.
2003-01-28 03:03:55 +00:00
David Dykstra
8ed16deb24
Change so the delay before generator signals receiver is only done on Cygwin.
2003-01-28 02:51:03 +00:00
David Dykstra
787568f371
Insert a 100ms sleep just before sending the USR2 signal to the
...
child receiver process to prevent some hangs on Cygwin. Anthony
Heading discovered the workaround first and suggested 30ms, and
Greger Cronquist had better luck with 100ms.
2003-01-27 03:52:42 +00:00
Wayne Davison
b5ae4aba38
Reset the io_error_fd right before the generator kills off the receiver
...
(because the death of the receiver will close the fd and cause the
generator to fail in any subsequent IO).
2003-01-10 08:32:09 +00:00
David Dykstra
ee7118a816
Fixed bug that caused rsync to lose exit status of its child processes.
...
Based on patch submited by David R. Staples. Todd Vander Does contributed
the following test which showed the problem:
> mkdir /tmp/nowrite
> chmod -w /tmp/nowrite
> rsync /etc/group /tmp/nowrite || echo $status
mkstemp .group.cUaaeY failed
rsync error: partial transfer (code 23) at main.c(518)
23
> rsync -e ssh loki:/etc/group /tmp/nowrite || echo $status
mkstemp .group.1rayeY failed
> rsync -e ssh loki:/etc/group /tmp/nowrite && echo $status
mkstemp .group.fbaGiY failed
0
The remote copy should have returned non-zero exit code like the local copy.
2003-01-09 19:04:06 +00:00
Wayne Davison
bb4aa89c10
Don't pass "-l user" to the remote shell if we're starting a server-daemon
...
and the command already has a "-l user" option.
2002-08-01 20:46:59 +00:00
Wayne Davison
a125c82ad2
Allow the rsync:// URL syntax in the destination field.
2002-08-01 17:53:38 +00:00
Wayne Davison
75aeac44e8
Handle the new server-daemon via remote-shell mode.
2002-08-01 00:36:59 +00:00