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
Wayne Davison
93465f51bc
Improved var-checker and tweaked all the issues it found.
2008-07-21 00:10:22 -07:00
Wayne Davison
b791d6802b
Include the array-size in array externs so that IBM's code-checker
...
can do more checking for us.
2008-07-20 22:41:29 -07:00
Wayne Davison
951e826b75
Added the --info=FLAGS an --debug=FLAGS options, which allows
...
fine-grained output control (in addition to the coarse -v).
2008-07-13 20:51:08 -07:00
Wayne Davison
1c3e6e8b26
Moved the setting of the socket options before the connect().
2008-04-15 08:34:17 -07:00
Wayne Davison
29a89172f7
Improved the chdir() code:
...
- 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().
2008-03-30 15:44:46 -07:00
Wayne Davison
f5aeb6ff9b
Added XFLG_DIR2WILD3 flag that the daemon uses to transform any
...
config-file dir/ exclude rule into a dir/*** rule.
2008-03-22 14:02:34 -07:00
Wayne Davison
819bfe4599
Changed the name of the server_filter_list to be
...
daemon_filter_list, for improved clarity.
2008-03-20 10:42:43 -07:00
Wayne Davison
d4c5cb2b01
A couple more changes for dealing with "checker" warnings.
2008-03-17 10:50:11 -07:00
Wayne Davison
aa0e6b9977
Attempting to silence some more "checker" warnings.
2008-03-17 07:35:19 -07:00
Wayne Davison
18f3cb6957
Changed stat() call to do_stat().
2008-03-16 21:44:33 -07:00
Wayne Davison
53936ef935
Fixed the use of --protect-args (-s) with a daemon.
2008-03-15 11:56:18 -07:00
Wayne Davison
cbbd8e2e8b
The --fake-super option conflicts with -XX (which copies internal
...
rsync xattrs literally).
2008-03-07 15:23:39 -08:00