Wayne Davison
1732b6c037
- Changed some FERROR log calls to FLOG.
...
- Improved the option-error-reporting to actually get the error back
to the user (by getting I/O multiplexing started).
2004-06-12 18:22:39 +00:00
Wayne Davison
b7061c82b4
Allow the argv list the daemon uses for globbing its args to grow.
2004-06-09 21:51:07 +00:00
Wayne Davison
9e5a5ddb4c
Changed a few FINFO messages to FLOG.
2004-06-07 22:33:01 +00:00
Wayne Davison
2e94e70e2b
Some superficial code tweaks.
2004-06-05 19:59:03 +00:00
Wayne Davison
d62bcc17f3
Changed rprintf() calls that included strerror() to use rsyserr().
2004-05-15 19:31:10 +00:00
Wayne Davison
495723bb26
Updated the exclude-list code to handle the new linked-list
...
structure format.
2004-04-14 23:33:34 +00:00
Wayne Davison
df5cd107a5
Moved (and expanded) a verbose message from clientserver.c to socket.c
...
to solve an old FIXME comment.
2004-04-14 16:51:48 +00:00
Wayne Davison
357406ecb2
Use the new XFLG_* flags to call the add_exclude*() functions.
2004-04-12 17:42:29 +00:00
Wayne Davison
75a64762c2
The args are now sanitized in parse_arguments() instead of here.
2004-03-27 09:44:01 +00:00
Wayne Davison
6fe05820ff
Use MY_UID() instead of getuid().
2004-02-04 17:06:07 +00:00
Wayne Davison
33e9d10d2a
Use the new lp_max_verbosity() value to limit the server's "verbose"
...
value.
2004-02-04 07:32:12 +00:00
Wayne Davison
05b7bab8e1
Better pid handling.
2004-01-27 07:57:12 +00:00
Wayne Davison
6e195fe975
Tweaked the externs.
2004-01-27 07:48:19 +00:00
Wayne Davison
59187666b9
Use new push_dir() syntax.
2004-01-20 17:46:31 +00:00
Wayne Davison
5a8543b8b8
In two places: needed to use protocol_version, not PROTOCOL_VERSION.
2004-01-15 08:39:25 +00:00
Wayne Davison
3f55bd5dad
Got rid of support for protocols 17 and 18.
2004-01-08 00:45:41 +00:00
Wayne Davison
e80a765412
If lp_path() returns "/", set exclude_path_prefix to "" (because the
...
exclude code doesn't want any trailing slashes).
2003-09-11 04:00:19 +00:00
Wayne Davison
daa598df11
Changed most instances of "remote_version" to "protocol_version", and
...
others to "remote_protocol". Downgrade the protocol_version if the
remote_protocol is lower.
2003-09-09 15:58:50 +00:00
Wayne Davison
6969ebcfcf
Call setgroups(1, &gid) after setting the gid (rather than calling
...
setgroups(0, NULL) before).
2003-08-20 23:25:52 +00:00
Wayne Davison
837cbad97f
We now put the excludes from the config file into a "server_exclude_list"
...
using the revised add_exclude_line() arg syntax.
2003-07-01 21:45:13 +00:00
Wayne Davison
4a7144ee7e
Cleaned up whitespace/indentation.
2003-05-10 08:33:08 +00:00
Wayne Davison
7c2a9e766c
Support the new --files-from option.
2003-03-30 23:00:33 +00:00
Wayne Davison
0090cbdba6
Got rid of O_TEXT_STR change.
2003-01-26 20:07:55 +00:00
David Dykstra
536b84680b
Open config files in text mode when O_TEXT is defined. This helps on
...
Cygwin when the config files are on a filesystem that is mounted in
binary mode. Patch from Ville Herva.
2003-01-26 03:46:54 +00:00
David Dykstra
30e8c8e1e4
When using daemon mode over a remote shell program and not running as root,
...
default the config file to just "rsyncd.conf" in the current directory
instead of /etc/rsyncd.conf. Also, fix problems with logging messages when
running daemon mode over a remote shell program: it was pretty much doing
the opposite of what it should have, sending early error messages to the
log and later messages to the client. Switched it around so the very early
error messages go to the client and the later ones go to the log.
2002-08-30 23:27:26 +00:00
David Dykstra
09021eabb5
Fix to correctly identify remote IP address and host name when using
...
-e ssh and :: together. Uses $SSH_CLIENT to locate the IP address
(was attempting to before but it didn't always work) and then uses
inet_pton() on that and getnameinfo() to find the name.
2002-08-01 19:17:00 +00:00
Wayne Davison
68f40ebba9
Moved the end of start_socket_client() into a new function called
...
start_inband_exchange() and made several functions take two fds
(for the daemon via remote-shell support). The start_daemon()
function is no longer static and now works on non-socket fds.
2002-08-01 00:36:56 +00:00
Martin Pool
f49a7b227f
When -e is specified along with an rsyncd url, the client should get a
...
warning but it should not be treated as an error. (Bill Nottingham)
http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=62489
2002-04-15 07:50:18 +00:00
Martin Pool
32f761755e
Try to fix ctype issues by always calling these functions as
...
if (!isdigit(* (unsigned char *) p)) {
so that the argument is always in the range of unsigned char when
coerced to an int.
(See digit 1.)
2002-04-11 02:25:53 +00:00
Martin Pool
136ac7ecec
Receiving an @ERROR line from the server is (I think) always fatal, so
...
the client should exit upon receiving one and not be surprised that
the socket closes.
2002-04-11 01:56:35 +00:00
Martin Pool
d0829892c6
Doc start_socket_client
2002-04-09 05:23:07 +00:00
Martin Pool
fdf88d7574
Doc start_socket_client
2002-04-09 05:20:30 +00:00
Martin Pool
cae95647a4
Doc.
2002-04-09 05:07:15 +00:00
Martin Pool
a254fd9798
Doc.
2002-04-09 05:03:45 +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
9098bbf3b3
Improved network error handling. (Greg A. Woods)
2002-03-27 01:03:13 +00:00
Martin Pool
be2961da2c
If there's an error in start_socket_client, print an explanation as
...
well as failing.
Doc.
Trying to work out why daemon-gzip-download.test fails on SCO with
rsync error: unexplained error (code 190) at main.c(886)
2002-03-22 05:19:19 +00:00
Martin Pool
604f343c49
Doc: "opening tcp connection to %s port %d" is kind of misleading when
...
running the test case.
2002-03-14 02:55:11 +00:00
David Dykstra
e3bdb76326
Cygwin doesn't have setgroups() so probe for the function in configure
...
and don't try to call it if it doesn't exist.
2002-02-27 23:15:55 +00:00
Martin Pool
1264288cb5
With -vv, client shows a message when opening a daemon connection.
...
This parallels the recent addition of a log message for opening ssh
connections.
2002-02-23 00:57:30 +00:00
Martin Pool
7583ded808
Make setgroups(0,0) unconditional -- accidentally thinking we have
...
don't it on a machine that does have supplementary groups would be a
security hole. If this breaks anything we'll fix it later.
2002-02-21 00:45:48 +00:00
David Dykstra
c613d37048
If a daemon prints an error message of @ERROR, have the client treat the
...
message as an FERROR rather than an FINFO.
2002-02-18 18:29:48 +00:00
Martin Pool
715d1f4504
Oops -- have to call setgroups() before giving up root.
...
Doc some of the peculiarities about starting rsyncd as root vs
non-root.
2002-02-09 03:30:22 +00:00
Martin Pool
4f092bee9f
Make sure we call setgroups() after setuid(). (Ethan Benson)
2002-02-09 02:18:42 +00:00
David Dykstra
1bbd10fe07
Remove the "rsync:" prefixes on FINFO messages. Return the "building file
...
list ... done" to the way it was in 2.5.1 and before when not using -P.
Apply the file list progress messages when receiving files in addition to
sending files.
2002-02-07 16:36:12 +00:00
Martin Pool
31ec50d7da
rsync_module: If host-based access fails, show the exact name/address
...
used for the check in the error message. (Just in case...)
2002-01-24 04:41:09 +00:00
Martin Pool
13e29995f5
Get rid of global_opts struct as suggested by Dave -- too many
...
problems with initialization.
Change the algorithm from trying to open an inbound socket with
getaddrinfo: keep trying suggested addresses until we find one on
which we can both get a socket and bind. Not convinced this is the
best, but it's probably better.
2001-12-18 05:54:57 +00:00
Martin Pool
a538066d5a
Add --no-detach option for W32, daemontools, etc.
2001-12-05 13:03:16 +00:00
Martin Pool
431efc8979
Doc.
2001-12-05 12:56:06 +00:00
Martin Pool
d5d4b28220
Put the new address family option into an options struct. We have too
...
many globals already.
Better error messages for network-related failures.
2001-11-26 04:52:19 +00:00