Wayne Davison
e448d31d63
Need to flush early errors before we exit.
2020-05-17 21:20:15 -07:00
Wayne Davison
c5fabfb068
Set Copyright years and make them easier to update
...
I replaced git-set-file-times with an improved version that I wrote
recently (in python3). A new script uses it to figure out the
last-modified year for each *.[ch] file and updates its copyright.
It also puts the latest year into the latest-year.h file for the
output of --version.
2020-04-09 15:11:37 -07:00
Wayne Davison
70cbc66b7f
Set RSYNC_PORT in the env for a daemon-over-rsh connection.
...
Fixes bug #14163 .
2020-04-05 19:34:27 -07:00
Wayne Davison
3e2e4b5a33
Tweak the copyright year.
2019-03-16 09:15:49 -07:00
Wayne Davison
5df9847f06
Allow some pre-/post-xfer exec shell restrictions.
...
Support both RSYNC_SHELL & RSYNC_NO_XFER_EXEC environment variables.
2018-03-25 11:02:50 -07:00
Wayne Davison
473108ae6e
Tweak copyright date.
2018-01-14 19:55:07 -08:00
Wayne Davison
17b849c97a
Set our_uid & our_gid values when changed by the daemon.
...
Fixes bug 10719.
2017-10-09 17:13:00 -07:00
Wayne Davison
881addc9e1
Add "daemon chroot|uid|gid" parameters.
...
This allows the daemon to run chrooted as any uid+gid you like
(prior to the transfer possibly changing the chroot and/or the
uid+gid further). Based on the patch in #12817 .
2017-09-04 14:20:16 -07:00
Wayne Davison
9a12959ab6
Support only splitting users/groups on commas.
...
Fixes bug 11817.
2016-04-17 15:56:11 -07:00
Wayne Davison
2a7355fb56
Change daemon's gid list to use an "item_list".
2015-08-24 11:54:00 -07:00
Wayne Davison
3da1dc4d18
Add configure option to set max daemon gid list.
...
Fixes bug 11456.
2015-08-24 10:09:57 -07:00
Wayne Davison
453914e35b
Update the copyright year.
2015-08-08 12:47:03 -07:00
Wayne Davison
dfa5b49110
Bump the year to 2014.
2014-01-26 09:29:15 -08:00
Wayne Davison
7e1a9c4d79
Update copyright year.
2013-01-19 11:05:53 -08:00
Wayne Davison
ee51a745c1
Make read_args() return the full request.
...
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#.
2012-09-23 11:15:36 -07:00
Wayne Davison
89e049ad7f
Another asprintf() return-value-check tweak.
2011-11-23 13:14:35 -08:00
Wayne Davison
3527677043
Let's cast getpid() to an int instead of a long for snprintf().
2011-10-08 09:15:36 -07:00
Wayne Davison
0a04a80d9f
Replace another inet_ntop() call with getnameinfo().
2011-07-16 16:16:04 -07:00
Wayne Davison
d80f7d6cc3
Add a colon if a non-empty pre-xfer exec message follows.
2011-06-04 12:12:49 -07:00
Wayne Davison
e3bc529de9
Handle EINTR when reading the pre-xfer exec message.
2011-06-04 12:08:18 -07:00
Wayne Davison
820f7a7b57
Send error messages from pre-xfer exec script to the user.
2011-06-04 10:46:22 -07:00
Wayne Davison
bf4170ade8
Daemon supports forward-DNS lookups for simple hostnames
...
in hosts deny/allow config settings.
2011-01-03 19:04:06 -08:00
Wayne Davison
8f30d21584
Protect a remote filename that starts with a dash.
2010-12-23 22:09:45 -08:00
Wayne Davison
5ebe9a46d7
Add @group auth and overrides to "auth user" daemon config.
2010-10-12 10:34:38 -07:00
Wayne Davison
ce571e64b6
Close the socket fds in the "post-xfer exec" process.
2010-06-19 10:50:28 -07:00
Matt McCutchen
9a54a640f7
Don't set the umask to 0 any more: it's ugly and pointless.
2010-04-24 09:28:58 -07:00
Wayne Davison
afccb3d326
If a module has no path setting, return an error.
2010-02-06 13:40:12 -08:00
Wayne Davison
cece2e3f5e
Make use of seteuid() determined by configure.
2009-11-08 20:17:02 -08:00
Wayne Davison
23a0d1e200
Get rid of some unneeded externs.
2009-10-27 12:38:30 -07:00
Wayne Davison
8b3e6fb985
Make sure daemon's io_timeout is used as a maximum value.
2009-10-20 15:05:15 -07:00
Wayne Davison
d720569422
Moved a few group-related functions with some minor tweaks;
2009-10-20 07:54:21 -07:00
Wayne Davison
0a9fbe17de
Allow %VAR% environment references in daemon-config parameter values.
2009-10-17 16:30:23 -07:00
Wayne Davison
d23cc156aa
Call seteuid() when calling setuid().
2009-10-17 15:03:11 -07:00
Wayne Davison
d8587b4690
Change the msg pipe to use a real multiplexed IO mode
...
for the data that goes from the receiver to the generator.
2009-10-02 14:18:51 -07:00
Matt McCutchen
c8fa85b23b
Refactorings to the filter code, most notably:
...
- 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.]
2009-05-23 11:20:40 -07:00
Wayne Davison
7b6c5c7794
Use typedefs for the filter structures.
2009-05-23 09:07:43 -07:00
Wayne Davison
b32d425451
Change filter MATCHFLGs to FILTRULEs.
2009-05-23 09:07:35 -07:00
Wayne Davison
56017d3150
Enhance name_to_{u,g}id() to optionally parse numbers and rename
...
to {user,group}_to_*(). Based on a patch by Matt McCutchen.
2009-05-07 07:34:42 -07:00
Wayne Davison
e8d6fe6261
Properly indent some lines.
2009-02-19 23:09:20 -08:00
Wayne Davison
7f367bb1b4
Added a way for supplementary groups to be specified in the rsyncd.conf
...
file. Also made explicitly-set uid/gid values no longer ignored by a
daemon that was not run by a super-user.
2009-02-19 23:08:48 -08:00
Wayne Davison
df694f72ed
Change some args from "char *" to "const char *" in order to get rid of
...
a compiler warning that was just introduced. Also avoids changing the
host string to lower-case in access.c (by using iwildmatch()).
2009-01-15 00:23:07 -08:00
Matt McCutchen
11ef77b76a
Added the "reverse lookup" daemon-config parameter.
2009-01-15 00:22:36 -08:00
Wayne Davison
b3bf9b9df9
Update the copyright year.
2009-01-03 10:57:14 -08:00
Wayne Davison
9411292489
Fixed a bunch of "warn_unused_result" compiler warnings.
2008-11-09 18:56:21 -08:00
Wayne Davison
26e21efc5a
Convey the cleaned-up module-path to the user in all cases.
...
Fixed a just-introduced problem with a relative module-path.
2008-09-11 07:35:40 -07:00
Wayne Davison
433c6753a8
Fix the %P logfile escape inside a chroot.
2008-09-10 16:45:06 -07:00
Wayne Davison
5dd14f0c33
Split up the ifuncs.h file into 3 .h files.
2008-09-01 19:11:36 -07:00
Wayne Davison
41adbcec9f
Added a client --munge-links option that works like the daemon
...
"munge symlinks" parameter.
2008-07-28 16:35:03 -07:00
Wayne Davison
2206abf884
Added a command-line override for daemon config parameters:
...
--dparam=PARAMETER=VALUE (-M PARAMETER=VALUE).
2008-07-27 12:13:35 -07:00
Wayne Davison
b583594ac7
Change the references to "service" to be either "section" or "module".
2008-07-26 19:11:32 -07:00