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
Martin Pool
9fb3f7a9ab
Doc rsync_panic_handler()
2002-04-08 07:46:34 +00:00
Martin Pool
734a94a20c
Clean up prototype.
...
Drop unused variables.
2002-04-08 07:42:54 +00:00
Martin Pool
4fdc39dde8
Allow panic_action to be configured through environment variable RSYNC_PANIC_ACTION.
2002-04-08 07:34:17 +00:00
Martin Pool
b35d0d8e9a
Split code out into separate files and remove some global variables to
...
reduce symbol dependencies between files and therefore make it easier
to write unit tests. The diff is large, but the actual code changes
are pretty small.
2002-04-08 04:10:20 +00:00
Martin Pool
25d34a5c80
Rearrange code slightly to avoid util.c depending on main.c.
2002-04-08 03:37:19 +00:00
Martin Pool
c053133207
If configured with --enable-maintainer-mode, then on receipt of a
...
fatal signal rsync will try to open an xterm running gdb, similarly to
Samba's "panic action" or GNOME's bug-buddy.
2002-03-27 05:10:44 +00:00
Martin Pool
9098bbf3b3
Improved network error handling. (Greg A. Woods)
2002-03-27 01:03:13 +00:00
Martin Pool
c1a04ecbfd
Doc.
2002-03-22 05:08:53 +00:00