summaryrefslogtreecommitdiff
path: root/clientserver.c
Commit message (Collapse)AuthorAgeFilesLines
* Updated the exclude-list code to handle the new linked-listWayne Davison2004-04-141-1/+1
| | | | structure format.
* Moved (and expanded) a verbose message from clientserver.c to socket.cWayne Davison2004-04-141-9/+1
| | | | to solve an old FIXME comment.
* Use the new XFLG_* flags to call the add_exclude*() functions.Wayne Davison2004-04-121-4/+7
|
* The args are now sanitized in parse_arguments() instead of here.Wayne Davison2004-03-271-13/+0
|
* Use MY_UID() instead of getuid().Wayne Davison2004-02-041-2/+2
|
* Use the new lp_max_verbosity() value to limit the server's "verbose"Wayne Davison2004-02-041-1/+2
| | | | value.
* Better pid handling.Wayne Davison2004-01-271-2/+2
|
* Tweaked the externs.Wayne Davison2004-01-271-17/+15
|
* Use new push_dir() syntax.Wayne Davison2004-01-201-2/+2
|
* In two places: needed to use protocol_version, not PROTOCOL_VERSION.Wayne Davison2004-01-151-2/+2
|
* Got rid of support for protocols 17 and 18.Wayne Davison2004-01-081-2/+2
|
* If lp_path() returns "/", set exclude_path_prefix to "" (because theWayne Davison2003-09-111-0/+2
| | | | exclude code doesn't want any trailing slashes).
* Changed most instances of "remote_version" to "protocol_version", andWayne Davison2003-09-091-12/+14
| | | | | others to "remote_protocol". Downgrade the protocol_version if the remote_protocol is lower.
* Call setgroups(1, &gid) after setting the gid (rather than callingWayne Davison2003-08-201-10/+9
| | | | setgroups(0, NULL) before).
* We now put the excludes from the config file into a "server_exclude_list"Wayne Davison2003-07-011-8/+14
| | | | using the revised add_exclude_line() arg syntax.
* Cleaned up whitespace/indentation.Wayne Davison2003-05-101-49/+48
|
* Support the new --files-from option.Wayne Davison2003-03-301-0/+4
|
* Got rid of O_TEXT_STR change.Wayne Davison2003-01-261-1/+1
|
* Open config files in text mode when O_TEXT is defined. This helps onDavid Dykstra2003-01-261-1/+1
| | | | | Cygwin when the config files are on a filesystem that is mounted in binary mode. Patch from Ville Herva.
* When using daemon mode over a remote shell program and not running as root,David Dykstra2002-08-301-0/+2
| | | | | | | | | 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.
* Fix to correctly identify remote IP address and host name when usingDavid Dykstra2002-08-011-20/+2
| | | | | | -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.
* Moved the end of start_socket_client() into a new function calledWayne Davison2002-08-011-78/+114
| | | | | | 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.
* When -e is specified along with an rsyncd url, the client should get aMartin Pool2002-04-151-1/+1
| | | | | | warning but it should not be treated as an error. (Bill Nottingham) http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=62489
* Try to fix ctype issues by always calling these functions asMartin Pool2002-04-111-2/+2
| | | | | | | | | 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.)
* Receiving an @ERROR line from the server is (I think) always fatal, soMartin Pool2002-04-111-2/+6
| | | | | the client should exit upon receiving one and not be surprised that the socket closes.
* Doc start_socket_clientMartin Pool2002-04-091-0/+1
|
* Doc start_socket_clientMartin Pool2002-04-091-1/+6
|
* Doc.Martin Pool2002-04-091-1/+7
|
* Doc.Martin Pool2002-04-091-20/+25
|
* Split code out into separate files and remove some global variables toMartin Pool2002-04-081-1/+1
| | | | | | 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.
* Improved network error handling. (Greg A. Woods)Martin Pool2002-03-271-1/+2
|
* If there's an error in start_socket_client, print an explanation asMartin Pool2002-03-221-4/+13
| | | | | | | | | | 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)
* Doc: "opening tcp connection to %s port %d" is kind of misleading whenMartin Pool2002-03-141-0/+3
| | | | running the test case.
* Cygwin doesn't have setgroups() so probe for the function in configureDavid Dykstra2002-02-271-0/+2
| | | | and don't try to call it if it doesn't exist.
* With -vv, client shows a message when opening a daemon connection.Martin Pool2002-02-231-0/+2
| | | | | This parallels the recent addition of a log message for opening ssh connections.
* Make setgroups(0,0) unconditional -- accidentally thinking we haveMartin Pool2002-02-211-2/+0
| | | | | 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.
* If a daemon prints an error message of @ERROR, have the client treat theDavid Dykstra2002-02-181-1/+4
| | | | message as an FERROR rather than an FINFO.
* Oops -- have to call setgroups() before giving up root.Martin Pool2002-02-091-10/+20
| | | | | Doc some of the peculiarities about starting rsyncd as root vs non-root.
* Make sure we call setgroups() after setuid(). (Ethan Benson)Martin Pool2002-02-091-0/+10
|
* Remove the "rsync:" prefixes on FINFO messages. Return the "building fileDavid Dykstra2002-02-071-0/+2
| | | | | | 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.
* rsync_module: If host-based access fails, show the exact name/addressMartin Pool2002-01-241-2/+2
| | | | used for the check in the error message. (Just in case...)
* Get rid of global_opts struct as suggested by Dave -- too manyMartin Pool2001-12-181-2/+4
| | | | | | | | | 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.
* Add --no-detach option for W32, daemontools, etc.Martin Pool2001-12-051-1/+2
|
* Doc.Martin Pool2001-12-051-1/+2
|
* Put the new address family option into an options struct. We have tooMartin Pool2001-11-261-1/+2
| | | | | | many globals already. Better error messages for network-related failures.
* Set rsync version in configure.inMartin Pool2001-11-241-1/+2
| | | | Show IPv6 availability in --version.
* Merge KAME.net IPv6 patch: you can now (in theory) pass IPv6 hostnamesMartin Pool2001-11-231-3/+3
| | | | | | 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!
* Document chroot confusion.Martin Pool2001-11-091-4/+12
|
* Add comment about handling of 'use chroot'Martin Pool2001-08-311-0/+4
|
* Merge in the LIBSMB_PROG idea from samba, so that you can doMartin Pool2001-08-311-1/+1
| | | | | | RSYNC_CONNECT_PROG='./rsync --daemon' ./rsync -vvvvvv localhost:: to test as a daemon without actually having to listen on a port.