Wayne Davison
2a40b503c0
Make sure that the am_server variable is non-zero after parsing the
...
options we received over the socket. (Thanks, Matt!)
2007-02-16 01:20:29 +00:00
Wayne Davison
ba2133d6ad
Further modifications to the copyright comment section.
2007-02-04 14:54:58 +00:00
Wayne Davison
3162ea6f67
Set ignore_errors variable based on lp_ignore_errors(module_id).
2006-12-25 17:49:19 +00:00
Wayne Davison
d02363609a
If the pre-xfer exec failed with -1, output the strerror()
...
from the waitpid() call.
2006-12-06 16:56:19 +00:00
Wayne Davison
9d33e6f7cf
Use rwrite() to output the err_msg string.
2006-11-19 04:37:52 +00:00
Wayne Davison
4a19c3b254
Added "const" to appropriate char pointers.
2006-11-19 00:23:21 +00:00
Wayne Davison
2dc7b8bd0e
Got rid of type-casting into isFOO() and toFOO() functions by
...
using static inline functions that take a signed char pointer.
2006-11-09 02:39:29 +00:00
Wayne Davison
9ce7fc3887
Obey the new --no-motd option.
2006-10-24 00:36:42 +00:00
Wayne Davison
6f3684ffb5
Call push_dir() with its new boolean arg.
2006-10-08 20:57:01 +00:00
Wayne Davison
503114a782
Added the RSYNC_PID environment variable for the pre-/post-xfer
...
commands so that the pre-xfer command has a unique ID it can
use to cache information for the post-xfer command.
2006-09-09 17:59:02 +00:00
Wayne Davison
6dc9b74bc6
Call log_init() with its new "restart" (0 or 1) arg.
2006-06-07 23:05:24 +00:00
Wayne Davison
10ae3406ee
Allow the --log-file-format=FMT option (if given when starting a daemon)
...
to override the "log format" setting.
2006-05-30 17:15:24 +00:00
Wayne Davison
ecc7623e7f
Some demon_log_* variables changed into logfile_* variables that are
...
also used by the new --log-file option.
2006-05-09 18:31:06 +00:00
Wayne Davison
e7c67065c0
Updated the FSF's address to an even newer one.
2006-04-25 23:51:12 +00:00
Wayne Davison
0f78b81511
- Updated the address for the FSF in the opening comment.
...
- Standardized the format of the opening comment, including adding a
brief description of what's in the file for those that lacked it.
- Added some missing copyright lines.
- Some minor whitespace tweaks (in a few of the files).
2006-04-25 20:23:34 +00:00
Wayne Davison
08e0a62956
Tweaked a comment.
2006-04-11 00:28:02 +00:00
Wayne Davison
374c3e1278
Moved the calls to client_addr() and client_name() below the lp_load()
...
call so that their potential to output log messages can't cause the
log-file to initialize before we know what "log name" to use.
2006-04-08 16:03:16 +00:00
Wayne Davison
2a7d9fe9b8
A slightly better fix than the last version.
2006-04-06 07:38:54 +00:00
Wayne Davison
91d324b4ea
Log the connect message after calling log_init().
2006-03-31 17:37:21 +00:00
Wayne Davison
c5b7aa1532
The orig_umask value is now a mode_t.
2006-02-24 01:56:26 +00:00
Wayne Davison
439a198d02
Log every connect to the daemon.
2006-02-21 17:09:23 +00:00
Wayne Davison
f041b02557
Added a comment.
2006-02-21 00:29:55 +00:00
Wayne Davison
d749eb6896
When starting up a transfer, substitute the remember_children()
...
SIGCHLD handler in place of the minimal one that socket.c enabled.
2006-02-20 17:17:51 +00:00
Wayne Davison
8840ec0f49
Set a new daemon_chmod_modes pointer with the daemon's chmod
...
(incoming or outgoing) changes.
2006-02-20 00:00:35 +00:00
Wayne Davison
b3e15181ae
Log when someone requests a module list.
2006-02-03 20:28:19 +00:00
Wayne Davison
7a6653bc6c
Ignore the --quiet option if someone sent it to us (which doesn't
...
happen when talking to a normal client).
2006-02-01 19:36:37 +00:00
Wayne Davison
aaccaa887d
Added support for the new "outgoing chmod" daemon option.
2006-01-30 21:47:02 +00:00
Wayne Davison
730df9d222
If the module has defined an "incoming chmod" option, call
...
parse_chmod() on it.
2006-01-30 17:53:38 +00:00
Wayne Davison
34937987a6
Make use of the new sockopts variable.
2006-01-26 12:31:47 +00:00
Wayne Davison
45c49b52a4
Got rid of calls to (the soon to vanish) safe_fname() function.
2006-01-13 21:17:09 +00:00
Wayne Davison
141c62659e
We now send all the option args to the pre-exec command.
2006-01-12 19:15:31 +00:00
Wayne Davison
c95ca2a228
Enhanced the "pre-xfer exec" handling so that it gets the user's
...
request info and puts that into the environment as RSYNC_REQUEST.
2005-10-24 21:03:50 +00:00
Wayne Davison
2c8c8bbaad
Pass XFLG_ABS_IF_SLASH instead of XFLG_ANCHORED2ABS for server excludes.
2005-10-07 18:40:30 +00:00
Wayne Davison
fed1f3f4fe
Make use of the per-module "temp dir" setting.
2005-09-03 16:50:20 +00:00
Wayne Davison
c9dc1300ba
Got rid of the argp var that is not needed now that argv is no
...
longer a literal array.
2005-08-03 04:42:56 +00:00
Wayne Davison
20accf4d06
- Use BIGPATHBUFLEN for the length of two line buffers.
...
- Improved the handling of the start_glob variable.
- Made the line buffer in start_daemon() a little bigger.
2005-07-29 18:31:10 +00:00
Wayne Davison
9d0d18b590
If the user has specified "pre-xfer exec" or "post-xfer exec", run
...
the indicated command(s), each at the appropriate time.
2005-07-28 17:15:47 +00:00
Wayne Davison
59b0e7a82d
Changed the "max verbosity" setting from global to per-module.
2005-06-10 16:57:43 +00:00
Wayne Davison
3e6ddb3738
- Call the new set_io_timeout() function to set the timeout value.
...
- If the user specified a shorter timeout than the config-file,
don't override the shorter value.
2005-05-19 08:52:19 +00:00
Wayne Davison
45c5b903eb
- Call auth_server() with its new "host" arg.
...
- Don't log an auth-failed error -- auth_server() now handles that.
2005-04-09 18:11:25 +00:00
Wayne Davison
180443af42
The "@ERROR" handler in start_inband_exchange() was not returning
...
the right value.
2005-04-09 16:49:51 +00:00
Wayne Davison
46bffd98cb
Fix the setting of module_dirlen for a module path of "/".
...
This fixes a crash in the exclude code when chroot is off.
2005-04-01 00:18:40 +00:00
Wayne Davison
624d6be2a5
Use new log_format_has() function instead of strstr().
2005-03-31 00:21:15 +00:00
Wayne Davison
b31c92edcc
- Look for last '@' in a user@host spec.
2005-03-01 03:39:32 +00:00
Wayne Davison
b03c719f04
Enhanced the option-parsing failure mode to handle the situation
...
where the parser didn't get a chance to parse the --files-from
option yet, but we still need to know it was there in order to get
the error message back to the client.
2005-03-01 00:42:32 +00:00
Wayne Davison
8dad7fc6ea
Explicitly set kluge_around_eof to a 1 when it is needed.
2005-02-26 20:58:01 +00:00
Wayne Davison
f39b2060fe
We now set daemon_log_format_has_i and daemon_log_format_has_o_or_i
...
instead of itemize_daemon_changes.
2005-02-19 22:16:35 +00:00
Wayne Davison
c0814b813f
If the "log format" has a %i in it, set itemize_daemon_changes.
2005-02-19 17:37:40 +00:00
Wayne Davison
4f5b0756df
John E. Malmberg convinced me to standardize on #ifs for defined
...
values instead of non-zero.
2005-02-14 00:53:43 +00:00
Wayne Davison
4875d6b64d
Adding more calls to safe_fname().
2005-02-07 20:36:43 +00:00