aboutsummaryrefslogtreecommitdiffstats
path: root/clientserver.c
Commit message (Collapse)AuthorAgeFilesLines
* Bump the year to 2014.Wayne Davison2014-01-261-1/+1
|
* Update copyright year.Wayne Davison2013-01-191-1/+1
|
* Make read_args() return the full request.Wayne Davison2012-09-231-4/+1
| | | | | | | | When a daemon is sent multiple request args, they are now joined into a single return value (separated by spaces) so that the RSYNC_REQUEST environment variable is accurate for any "pre-xfer exec". The values in RSYNC_ARG# vars are no longer truncated at the "." arg, so that all the request values are also listed (separately) in RSYNC_ARG#.
* Another asprintf() return-value-check tweak.Wayne Davison2011-11-231-1/+1
|
* Let's cast getpid() to an int instead of a long for snprintf().Wayne Davison2011-10-081-1/+1
|
* Replace another inet_ntop() call with getnameinfo().Wayne Davison2011-07-161-1/+1
|
* Add a colon if a non-empty pre-xfer exec message follows.Wayne Davison2011-06-041-2/+3
|
* Handle EINTR when reading the pre-xfer exec message.Wayne Davison2011-06-041-1/+8
|
* Send error messages from pre-xfer exec script to the user.Wayne Davison2011-06-041-27/+56
|
* Daemon supports forward-DNS lookups for simple hostnamesWayne Davison2011-01-031-1/+1
| | | | in hosts deny/allow config settings.
* Protect a remote filename that starts with a dash.Wayne Davison2010-12-231-1/+4
|
* Add @group auth and overrides to "auth user" daemon config.Wayne Davison2010-10-121-6/+4
|
* Close the socket fds in the "post-xfer exec" process.Wayne Davison2010-06-191-0/+3
|
* Don't set the umask to 0 any more: it's ugly and pointless.Matt McCutchen2010-04-241-4/+1
|
* If a module has no path setting, return an error.Wayne Davison2010-02-061-0/+5
|
* Make use of seteuid() determined by configure.Wayne Davison2009-11-081-1/+5
|
* Get rid of some unneeded externs.Wayne Davison2009-10-271-1/+0
|
* Make sure daemon's io_timeout is used as a maximum value.Wayne Davison2009-10-201-1/+1
|
* Moved a few group-related functions with some minor tweaks;Wayne Davison2009-10-201-27/+25
|
* Allow %VAR% environment references in daemon-config parameter values.Wayne Davison2009-10-171-22/+33
|
* Call seteuid() when calling setuid().Wayne Davison2009-10-171-1/+1
|
* Change the msg pipe to use a real multiplexed IO modeWayne Davison2009-10-021-3/+3
| | | | for the data that goes from the receiver to the generator.
* Refactorings to the filter code, most notably:Matt McCutchen2009-05-231-6/+6
| | | | | | | | | | | | | | | | | | | | | | - Improve function name: parse_rule -> parse_filter_str (to make the similarity with parse_filter_file clearer, and better indicate that it can parse multiple rules when FILTRULE_WORD_SPLIT is specified). - In preparation for rule prefixes containing information beyond the rflags, change the code to pass around a full "template" filter_rule instead of just rflags. Callers of parse_filter_{str,file} that want to specify only rflags can use rule_template(rflags) . - Remove the MODIFIERS_* strings and instead hand-code the condition under which each modifier is valid. This should make it easier to see that the conditions are correct. - Tighten up default modifiers on merge rules: - Disallow "!" because it isn't useful. - If the merge rule specifies a side via "s" or "r", the rules in the file cannot also specify a side via "s", "r", "hide", etc. [Patch was changed by Wayne a bit prior to application.]
* Use typedefs for the filter structures.Wayne Davison2009-05-231-1/+1
|
* Change filter MATCHFLGs to FILTRULEs.Wayne Davison2009-05-231-4/+4
|
* Enhance name_to_{u,g}id() to optionally parse numbers and renameWayne Davison2009-05-071-14/+8
| | | | to {user,group}_to_*(). Based on a patch by Matt McCutchen.
* Properly indent some lines.Wayne Davison2009-02-191-10/+10
|
* Added a way for supplementary groups to be specified in the rsyncd.confWayne Davison2009-02-191-36/+112
| | | | | file. Also made explicitly-set uid/gid values no longer ignored by a daemon that was not run by a super-user.
* Change some args from "char *" to "const char *" in order to get rid ofWayne Davison2009-01-151-2/+2
| | | | | a compiler warning that was just introduced. Also avoids changing the host string to lower-case in access.c (by using iwildmatch()).
* Added the "reverse lookup" daemon-config parameter.Matt McCutchen2009-01-151-1/+9
|
* Update the copyright year.Wayne Davison2009-01-031-1/+1
|
* Fixed a bunch of "warn_unused_result" compiler warnings.Wayne Davison2008-11-091-3/+7
|
* Convey the cleaned-up module-path to the user in all cases.Wayne Davison2008-09-111-31/+33
| | | | Fixed a just-introduced problem with a relative module-path.
* Fix the %P logfile escape inside a chroot.Wayne Davison2008-09-101-36/+32
|
* Split up the ifuncs.h file into 3 .h files.Wayne Davison2008-09-011-1/+1
|
* Added a client --munge-links option that works like the daemonWayne Davison2008-07-281-4/+11
| | | | "munge symlinks" parameter.
* Added a command-line override for daemon config parameters:Wayne Davison2008-07-271-0/+1
| | | | --dparam=PARAMETER=VALUE (-M PARAMETER=VALUE).
* Change the references to "service" to be either "section" or "module".Wayne Davison2008-07-261-1/+1
|
* Improved var-checker and tweaked all the issues it found.Wayne Davison2008-07-211-1/+0
|
* Include the array-size in array externs so that IBM's code-checkerWayne Davison2008-07-201-1/+1
| | | | can do more checking for us.
* Added the --info=FLAGS an --debug=FLAGS options, which allowsWayne Davison2008-07-131-5/+3
| | | | fine-grained output control (in addition to the coarse -v).
* Moved the setting of the socket options before the connect().Wayne Davison2008-04-151-6/+0
|
* Improved the chdir() code:Wayne Davison2008-03-301-5/+5
| | | | | | | | | | | | | - Renamed push_dir() to change_dir() and revised it a little so that it can chdir() to a relative path without an intervening chdir() back to the staring path. - Renamed push_pathname() to change_pathname() and revised it to take different args and to only call path_is_daemon_excluded() on a new path (not a revisit of a file's already-checked path). - Fixed change_pathname() to set the right pathname value when a chdir() call fails. - Set orig_dir once outside of the change_pathname() function. - Got rid of pop_dir().
* Added XFLG_DIR2WILD3 flag that the daemon uses to transform anyWayne Davison2008-03-221-5/+5
| | | | config-file dir/ exclude rule into a dir/*** rule.
* Changed the name of the server_filter_list to beWayne Davison2008-03-201-6/+6
| | | | daemon_filter_list, for improved clarity.
* A couple more changes for dealing with "checker" warnings.Wayne Davison2008-03-171-1/+1
|
* Attempting to silence some more "checker" warnings.Wayne Davison2008-03-171-1/+1
|
* Changed stat() call to do_stat().Wayne Davison2008-03-161-1/+1
|
* Fixed the use of --protect-args (-s) with a daemon.Wayne Davison2008-03-151-9/+38
|
* The --fake-super option conflicts with -XX (which copies internalWayne Davison2008-03-071-2/+5
| | | | rsync xattrs literally).