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
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
3e8369b6dc
Correction from Nelson Beebe: argument to functions such as isspace()
...
must be an int, not a char. This could cause sign-extension problems.
2002-04-09 06:32:07 +00:00
Martin Pool
94f34ca10a
Doc.
2002-03-25 04:04:23 +00:00
Martin Pool
4366275bab
Doc: Debian uses "nogroup" instead of group "nobody", so our defaults
...
are not so good.
2002-03-15 12:53:21 +00:00
Martin Pool
1179355dab
Revert change from 1.39, because it causes a crash because of
...
attempting to free a static string. (Thankyou to Paul Mackerras.)
There's still a small leak here.
2001-12-02 08:16:15 +00:00
Martin Pool
3d2e458a4d
Fix a small memory leak that was causing an Insure warning.
2001-11-26 07:58:47 +00:00
Andrew Tridgell
ae682c3e11
got rid of some unused variables
2000-08-19 15:25:05 +00:00
Andrew Tridgell
60cb2f9016
added "ignore nonreadable" option (useful for hiding files in public archives)
2000-08-19 12:53:00 +00:00
Andrew Tridgell
69c6522734
added *.bz2 and *.tbz to default dont compress list
2000-06-24 13:20:21 +00:00
Andrew Tridgell
07a14ef8b2
by default don't gzip .iso images
2000-04-19 05:33:06 +00:00
Andrew Tridgell
cda2ae84b3
added "ignore errors" option in rsyncd.conf
1999-10-31 02:19:24 +00:00
David Dykstra
3ca8e68f58
Added "strict modes" option. When set false (default is true), it allows
...
the secrets file to be readable by other users. Added to support the Windows
port under cygwin. Problem reported by Martin Krumpolec krumpo@pobox.sk
1999-02-09 19:27:15 +00:00
David Dykstra
d41c7d025c
Use MAXHOSTNAMELEN (256) for the array holding the host_name in socket.c
...
instead of 200. Move the defines of True and False to rsync.h. Eliminate
the defines of BOOL in loadparm.c and params.c because it is already
defined in rsync.h. Changes suggested by Roman Gollent roman.gollent@wdr.com
1999-02-09 18:35:29 +00:00
Andrew Tridgell
5e71c4446e
made the "max connections" and "lock file" local rather than global
...
options so you can set them on a per-module basis (requested by
kernel.org mirror maintiner)
1999-01-08 07:51:25 +00:00
David Dykstra
cd64343a7a
Add "include" and "include from" rsyncd.conf options. Contributed
...
by Dennis Gilbert <dennis@oit.pdx.edu >.
1998-11-23 21:54:01 +00:00
Andrew Tridgell
83fff1aa60
added "dont compress" option with the default setting of
...
*.gz *.tgz *.zip *.z *.rpm *.deb
1998-11-20 22:26:29 +00:00
Andrew Tridgell
cd8185f2bd
added "refuse options" option
1998-11-19 06:35:49 +00:00
Andrew Tridgell
37f9805dab
changed strlcat() and strlcpy() to have the same semantics as the
...
OpenBSD functions of the same name.
changed slprintf() to take buffer length rather than buffer length -1
1998-11-14 23:31:58 +00:00
Andrew Tridgell
81791cfccb
added timeout option in rsyncd.conf
1998-11-04 03:14:22 +00:00
Andrew Tridgell
654175798b
patch from Alberto Accomazzi <aaccomazzi@cfa.harvard.edu> to add
...
different exit codes for different conditions.
1998-11-03 07:08:27 +00:00
Andrew Tridgell
2c51d5deec
added a perl script to summarise the rsyncd log format
1998-10-30 06:12:14 +00:00
Andrew Tridgell
97cb8dc29b
added %m, %P and %u options to logging
1998-10-30 05:53:05 +00:00
Andrew Tridgell
e08bfe1248
added "log format" option to allow admins to choose the format for
...
rsyncd log file entries
1998-10-30 02:24:47 +00:00
Andrew Tridgell
11a5a3c704
and I thought I wasn't going to do any rsync coding for a while ...
...
Jason Andrade convinced me to add ftpd style logging of transfers,
enabled with a "transfer logging" option in rsyncd.conf
you can customise the format in log.c
1998-10-28 03:28:30 +00:00
David Dykstra
8638dd48f7
Add "use chroot" and "pid file" rsyncd.conf options. The former allows one
...
to disable the use of chroot so rsync --daemon can be run as a non-root
user (if a non-privileged --port is used). The latter allows one to
specify a file in which to write the process id of the daemon, which is
useful when rsync --daemon is not run from inetd.
1998-10-26 21:51:47 +00:00
Andrew Tridgell
4f6325c362
added "log file" option for those systems with broken syslog (like
...
AIX)
1998-09-09 05:51:42 +00:00
Andrew Tridgell
f578043391
for consistency use memcpy/memset everywhere instead of bcopy/bzero
1998-06-18 09:51:44 +00:00
Andrew Tridgell
fe8c0a9824
use Realloc instead of realloc
1998-05-28 06:40:25 +00:00
Andrew Tridgell
6cdc6b1344
fix realloc call for systems that don't handle realloc(NULL, ...)
1998-05-28 06:29:57 +00:00
Andrew Tridgell
a6801c3977
added a "socket options" option to rsyncd.conf. This option will
...
provide hours of fun for those people who like to tune their systems
to the utmost degree.
1998-05-15 13:25:19 +00:00
Andrew Tridgell
f9e940efc7
load just the globals section of the config file when the daemon
...
starts so we know the syslog facility for the "starting" message
1998-05-15 10:52:54 +00:00
Andrew Tridgell
1a016bfdec
- changed the log messages to show the requested path
...
- some more paranoid buffer size checks
- separate open syslog call
- handle systems without LOG_NDELAY
1998-05-15 10:34:07 +00:00
Andrew Tridgell
8f3a2d54a6
added "exclude" and "exclude from" options to rsyncd.conf.
...
This is useful for mirroring a web site when you don't want users to
mirror everything.
1998-05-15 01:02:49 +00:00
Andrew Tridgell
41059f75b5
documentation!
...
I've written a rsyncd.conf man page (in yodl) and updated the rsync
man page.
1998-05-14 06:51:28 +00:00
Andrew Tridgell
fabf5ea72d
now support integers or strings for syslog facility
1998-05-14 04:40:23 +00:00
Andrew Tridgell
09e13ae2dc
changed "syslog facility" to an enumerated type so the string name is
...
used in rsyncd.conf
1998-05-14 04:38:17 +00:00
Andrew Tridgell
31593dd610
improved max connections code. Now use fcntl instead of flock.
...
also started on authentication code (I'm doing a challenge response
system initially)
1998-05-13 09:38:54 +00:00
Andrew Tridgell
0c515f17c4
added two new options "max connections" and "lock file"
1998-05-13 08:52:12 +00:00
Andrew Tridgell
851dbdb775
added "syslog facility" option. It is an integer and defaults to the
...
value of LOG_DAEMON.
1998-05-13 08:12:51 +00:00
Andrew Tridgell
56c473b795
added hosts allow and hosts deny support. I ended up writing my own as
...
the tcpd code is not quite what I wanted.
1998-05-13 08:03:47 +00:00
Andrew Tridgell
e45e009309
changed a couple of places to use strlcpy()
1998-05-10 12:37:26 +00:00
Andrew Tridgell
45ccc5c08c
only call openlog once
...
fix a segv in loadparm.c
1998-05-10 08:31:50 +00:00
Andrew Tridgell
8ef4ffd698
change to allow names or numbers to be used for uid and gid.
1998-05-10 08:05:56 +00:00
Andrew Tridgell
0b76cd63ee
configuration parsing and loading code for rsyncd. This is based
...
on the Samba config code, so you'll find that the config files will
be eerily familiar if you have ever worked with Samba.
1998-05-09 14:00:55 +00:00