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
Martin Pool
a358449ab1
Set rsync version in configure.in
...
Show IPv6 availability in --version.
2001-11-24 04:57:41 +00:00
Martin Pool
06963d0fca
Merge KAME.net IPv6 patch: you can now (in theory) pass IPv6 hostnames
...
or literal IP addresses to rsync, and if your platform supports them
they will be used. Also there are -4 and -6 command-line options to
choose the default address type. Thankyou!
2001-11-23 07:35:49 +00:00
Martin Pool
b52c1d9d3a
Document chroot confusion.
2001-11-09 06:58:39 +00:00
Martin Pool
3ef526f5fa
Add comment about handling of 'use chroot'
2001-08-31 08:08:42 +00:00
Martin Pool
eecd22ff7b
Merge in the LIBSMB_PROG idea from samba, so that you can do
...
RSYNC_CONNECT_PROG='./rsync --daemon' ./rsync -vvvvvv localhost::
to test as a daemon without actually having to listen on a port.
2001-08-31 07:06:13 +00:00
Martin Pool
063393d62d
Only use the "@RSYNC EXIT" tag if we're talking to a client about
...
version 25. This prevents it appearing and messing up the module list
when an old client connects to a 2.4.7 server.
2001-08-23 06:14:54 +00:00
Martin Pool
7a55d06e0d
Allow the server to terminate the module list by just closing the
...
socket, rather than sending a proper EXIT command. Keep the
global-variable hack to do this, but try to make it only apply in the
specific case where that occurs, not on all lines we read.
2001-08-22 04:15:50 +00:00
Martin Pool
08a740ff43
Fix casts when some variables are printed out.
2001-08-15 06:41:24 +00:00
Andrew Tridgell
8f04bb36e7
prevent nasty error msgs when listing shares
2001-07-17 10:45:54 +00:00
Andrew Tridgell
8950ac03f8
imported new snprintf.c from samba, got rid of slprintf
2001-05-07 06:59:37 +00:00
Andrew Tridgell
ff81e809f4
new error handling system
...
we now give a non-0 exit code if *any* of the files we have been asked
to transfer fail to transfer
2001-03-22 07:36:51 +00:00
Andrew Tridgell
fd2dd2aa23
better error msg for "invalid uid" and "invalid gid"
2001-03-21 23:44:48 +00:00
Martin Pool
2af27ad9aa
More accurately, the uid/gid is set to -2, not "nobody".
2001-03-17 01:35:59 +00:00
Martin Pool
3b2b534567
Add some todo comments.
2001-03-17 01:34:22 +00:00
Martin Pool
15b7b73d7d
Change from getopt to popt.
...
Add comments.
Show listening port number in startup log message.
2001-02-23 01:44:04 +00:00
Martin Pool
bc363ea983
Display a warning about pointlessly using --rsh with clientserver mode.
2000-10-31 01:05:42 +00:00