Wayne Davison
ebfd1a1cf7
Changed add_filter() to parse_rule() and add_filter_file()
...
to parse_filter_file().
2005-02-04 21:13:00 +00:00
Wayne Davison
0a68f869d7
Call add_filter() and add_filter_file() with their new flag args.
2005-02-03 19:00:17 +00:00
Wayne Davison
4ccfd96cfe
Tweaked one or more warning messages.
2005-01-31 19:13:19 +00:00
Wayne Davison
211bc43b6e
- Moved the module_id definition from options.c to here.
...
- Use the new XFLG_ANCHORED2ABS name for the old XFLG_ABS_PATH
define.
2005-01-29 20:48:14 +00:00
Wayne Davison
25ff04417e
Use "#if" (not "#ifdef") for configure-defined macros.
2005-01-28 18:50:49 +00:00
Wayne Davison
186387301f
- Moved read_only variable here from options.c
...
- Set read_only to 1 if the module is read-only.
- Make sure that the verbose level is 0 before we parse the client's
options.
2005-01-28 17:10:16 +00:00
Wayne Davison
7842418b7b
Renamed several exclude-related functions/variables using new
...
filter terminology.
2005-01-25 10:39:14 +00:00
Wayne Davison
e7bf7c0161
Some exclude changes for the new --filter option, including:
...
- Added module_dirlen var.
- Call set_excludes_dir() instead of setting exclude_path_prefix.
- Use the newest XFLG_* options.
2005-01-25 00:52:44 +00:00
Wayne Davison
9bcb25958d
- Mustn't override a user-specified list_only value.
...
- Moved the computing of the options for the server down until
after we've figured out the protocol_version for the transfer.
- If we're talking to a protocol-29 server in list-only mode,
force the new --list-only mode (which avoids the -r with
--exclude="/*/*" kluge).
- Output the options we sent to the daemon if verbose > 1.
2005-01-22 22:48:27 +00:00
Wayne Davison
3dfe6e97a7
Since lp_bind_address() can't return NULL, we need to check if it is
...
an empty string and ignore it when it is.
2004-12-31 09:41:04 +00:00
Wayne Davison
43bab4035b
A minor improvement to the just-committed code.
2004-12-31 00:41:32 +00:00
Wayne Davison
ad54dcc827
Set select_timeout if the per-module timeout value was lower than
...
the default select_timeout value.
2004-12-31 00:35:03 +00:00
Wayne Davison
3add5835db
If rsync_port is 0, set it to RSYNC_PORT.
2004-12-08 17:11:15 +00:00
Wayne Davison
986aaaaa4b
Check the global option "address" if the user didn't specify
...
an --address option when starting the daemon.
2004-12-06 22:45:03 +00:00
Wayne Davison
0c56b1add7
Allow "port" to be specified in the rsyncd.conf file.
2004-11-27 18:24:12 +00:00
Wayne Davison
bf4679e8a0
If we need to return an error during the startup phase and the other
...
side is expecting us to send them a files-from list, send the list
terminator before sending the error.
2004-07-31 19:55:42 +00:00
Wayne Davison
c0422cea9f
If someone is denied access to a "list = no" module, lie and tell them
...
that the module is "Unknown" (so the user can't probe to find unlisted
modules).
2004-07-30 20:07:52 +00:00
Wayne Davison
da3478b2a7
- Got rid of the arg to the io_start_multiplex_{in,out}() calls.
...
- Call io_set_sock_fds().
2004-07-17 15:19:54 +00:00
Wayne Davison
b9f592fbf5
My modified version of Chris Shoemaker's improved batch-file handling.
2004-07-15 02:20:08 +00:00
Wayne Davison
7e5614383d
Added a short msleep() after option_error() before we exit. This
...
ensures that the remote client has time to read our error message
while it is trying to write data to us before it gets a socket
error.
2004-06-13 14:18:48 +00:00
Wayne Davison
1732b6c037
- Changed some FERROR log calls to FLOG.
...
- Improved the option-error-reporting to actually get the error back
to the user (by getting I/O multiplexing started).
2004-06-12 18:22:39 +00:00
Wayne Davison
b7061c82b4
Allow the argv list the daemon uses for globbing its args to grow.
2004-06-09 21:51:07 +00:00
Wayne Davison
9e5a5ddb4c
Changed a few FINFO messages to FLOG.
2004-06-07 22:33:01 +00:00
Wayne Davison
2e94e70e2b
Some superficial code tweaks.
2004-06-05 19:59:03 +00:00
Wayne Davison
d62bcc17f3
Changed rprintf() calls that included strerror() to use rsyserr().
2004-05-15 19:31:10 +00:00
Wayne Davison
495723bb26
Updated the exclude-list code to handle the new linked-list
...
structure format.
2004-04-14 23:33:34 +00:00
Wayne Davison
df5cd107a5
Moved (and expanded) a verbose message from clientserver.c to socket.c
...
to solve an old FIXME comment.
2004-04-14 16:51:48 +00:00
Wayne Davison
357406ecb2
Use the new XFLG_* flags to call the add_exclude*() functions.
2004-04-12 17:42:29 +00:00
Wayne Davison
75a64762c2
The args are now sanitized in parse_arguments() instead of here.
2004-03-27 09:44:01 +00:00
Wayne Davison
6fe05820ff
Use MY_UID() instead of getuid().
2004-02-04 17:06:07 +00:00
Wayne Davison
33e9d10d2a
Use the new lp_max_verbosity() value to limit the server's "verbose"
...
value.
2004-02-04 07:32:12 +00:00
Wayne Davison
05b7bab8e1
Better pid handling.
2004-01-27 07:57:12 +00:00
Wayne Davison
6e195fe975
Tweaked the externs.
2004-01-27 07:48:19 +00:00
Wayne Davison
59187666b9
Use new push_dir() syntax.
2004-01-20 17:46:31 +00:00
Wayne Davison
5a8543b8b8
In two places: needed to use protocol_version, not PROTOCOL_VERSION.
2004-01-15 08:39:25 +00:00
Wayne Davison
3f55bd5dad
Got rid of support for protocols 17 and 18.
2004-01-08 00:45:41 +00:00
Wayne Davison
e80a765412
If lp_path() returns "/", set exclude_path_prefix to "" (because the
...
exclude code doesn't want any trailing slashes).
2003-09-11 04:00:19 +00:00
Wayne Davison
daa598df11
Changed most instances of "remote_version" to "protocol_version", and
...
others to "remote_protocol". Downgrade the protocol_version if the
remote_protocol is lower.
2003-09-09 15:58:50 +00:00
Wayne Davison
6969ebcfcf
Call setgroups(1, &gid) after setting the gid (rather than calling
...
setgroups(0, NULL) before).
2003-08-20 23:25:52 +00:00
Wayne Davison
837cbad97f
We now put the excludes from the config file into a "server_exclude_list"
...
using the revised add_exclude_line() arg syntax.
2003-07-01 21:45:13 +00:00
Wayne Davison
4a7144ee7e
Cleaned up whitespace/indentation.
2003-05-10 08:33:08 +00:00
Wayne Davison
7c2a9e766c
Support the new --files-from option.
2003-03-30 23:00:33 +00:00
Wayne Davison
0090cbdba6
Got rid of O_TEXT_STR change.
2003-01-26 20:07:55 +00:00
David Dykstra
536b84680b
Open config files in text mode when O_TEXT is defined. This helps on
...
Cygwin when the config files are on a filesystem that is mounted in
binary mode. Patch from Ville Herva.
2003-01-26 03:46:54 +00:00
David Dykstra
30e8c8e1e4
When using daemon mode over a remote shell program and not running as root,
...
default the config file to just "rsyncd.conf" in the current directory
instead of /etc/rsyncd.conf. Also, fix problems with logging messages when
running daemon mode over a remote shell program: it was pretty much doing
the opposite of what it should have, sending early error messages to the
log and later messages to the client. Switched it around so the very early
error messages go to the client and the later ones go to the log.
2002-08-30 23:27:26 +00:00
David Dykstra
09021eabb5
Fix to correctly identify remote IP address and host name when using
...
-e ssh and :: together. Uses $SSH_CLIENT to locate the IP address
(was attempting to before but it didn't always work) and then uses
inet_pton() on that and getnameinfo() to find the name.
2002-08-01 19:17:00 +00:00
Wayne Davison
68f40ebba9
Moved the end of start_socket_client() into a new function called
...
start_inband_exchange() and made several functions take two fds
(for the daemon via remote-shell support). The start_daemon()
function is no longer static and now works on non-socket fds.
2002-08-01 00:36:56 +00:00
Martin Pool
f49a7b227f
When -e is specified along with an rsyncd url, the client should get a
...
warning but it should not be treated as an error. (Bill Nottingham)
http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=62489
2002-04-15 07:50:18 +00:00
Martin Pool
32f761755e
Try to fix ctype issues by always calling these functions as
...
if (!isdigit(* (unsigned char *) p)) {
so that the argument is always in the range of unsigned char when
coerced to an int.
(See digit 1.)
2002-04-11 02:25:53 +00:00
Martin Pool
136ac7ecec
Receiving an @ERROR line from the server is (I think) always fatal, so
...
the client should exit upon receiving one and not be surprised that
the socket closes.
2002-04-11 01:56:35 +00:00