Wayne Davison
e844a4a8a8
When listing a bare module name w/o -r, make sure we list the
...
contents of the module's root directory.
2007-10-27 02:19:49 +00:00
Wayne Davison
65f6b6b0ef
Got rid of a useless list_only tweak.
2007-10-07 03:52:17 +00:00
Wayne Davison
dd589118d0
- Set config_file to a default filename if it is NULL.
...
- Changed create_pid_file() to fail if the pidfile already exists,
which makes the daemon exit with an error.
- Output errors about a failure to open the config file or the lock
file to (a still open) stderr.
- We now notice (and complain) if fork() fails.
2007-10-01 02:25:54 +00:00
Wayne Davison
a1d2685b08
- Moved become_daemon() here from socket.c and made it static.
...
- Call lp_load() before we call become_daemon().
- Output an error to stderr if we fail to open/parse the config file.
- Added a create_pid_file() static function and call it earlier in
the startup sequence.
2007-09-30 06:57:07 +00:00
Wayne Davison
19531e1f74
Got rid of some unneeded externs.
2007-09-23 02:03:20 +00:00
Wayne Davison
1b42f628f4
Moved inline functions from rsync.h into ifuncs.h.
2007-09-22 16:52:58 +00:00
Wayne Davison
0b515981fc
Changed print_child_argv() to take its prefix message as an arg.
2007-09-16 21:41:42 +00:00
Wayne Davison
7909e65f83
- Made start_socket_client() and start_inband_exchange() take a variable
...
number of remote args.
- We now exchange a "VERSION.SUBVERSION" value in the initial @RSYNCD
message. This is backward compatible with pre-protocol 30 rsyncs,
and fixes a problem where rsync daemons weren't checking if they were
speaking a compatible pre-release protocol.
- Moved the protocol-handling code (which was in two places) into a new
function: exchange_protocols().
- Protocol 30 now sends/receives the daemon args using NULLs as a separator
rather than a newline.
- Moved the arg-reading code into a new function in io.c: read_args().
2007-09-09 07:53:05 +00:00
Wayne Davison
8e41b68e8f
Tweaking the license text a bit more.
2007-07-10 13:55:49 +00:00
Wayne Davison
4fd842f98d
Switching to GPL 3.
2007-07-07 05:33:14 +00:00
Wayne Davison
33cbd577ad
If a module's path is not absolute, make it absolute.
2007-07-02 22:02:14 +00:00
Wayne Davison
332cf6df7c
The --iconv option has now made it to the trunk.
2007-04-26 05:53:13 +00:00
Wayne Davison
9439c0cb5a
Adding the --fake-super option.
2007-04-24 07:32:44 +00:00
Wayne Davison
875a13b42c
No need to reset quiet, since we tell parse_arguments() that it
...
should prevent quiet from getting set.
2007-04-23 18:40:00 +00:00
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