Andrew Tridgell [Wed, 30 Dec 1998 14:48:45 +0000 (14:48 +0000)]
no longer use mmap() in rsync because of the risk of a SIGBUS when
another program (such as a mailer) truncates a file.
To offset the speed loss I have rewritten the map_ptr() code to make
much better use of read().
David Dykstra [Mon, 7 Dec 1998 18:48:46 +0000 (18:48 +0000)]
steve.ingram@icl-gis.com noticed several mistakes in 1. Some of
them had already been fixed but yodl2man hadn't been run, and a couple
others were new.
David Dykstra [Mon, 7 Dec 1998 14:51:32 +0000 (14:51 +0000)]
Fix minor man page typo, suggested by jbm@jbm.org.
Andrew Tridgell [Sat, 5 Dec 1998 01:56:45 +0000 (01:56 +0000)]
paranoia change - treat list_only like read_only and refuse all
syscalls that might change the filesystem. This shouldn't be needed,
but I like paranoid coding :)
Andrew Tridgell [Sat, 5 Dec 1998 01:55:37 +0000 (01:55 +0000)]
- slprintf() takes sizeof(buf) not sizeof(buf)-1
- fixed incorrect format string in rename error
David Dykstra [Tue, 1 Dec 1998 16:13:25 +0000 (16:13 +0000)]
Support newer rpm's which define $RPM_OPT_FLAGS as a set of options
separated by spaces. Suggested by pavel_roskin@geocities.com.
David Dykstra [Tue, 1 Dec 1998 16:11:40 +0000 (16:11 +0000)]
Minor documentation change suggested by pavel_roskin@geocities.com.
rsync-bugs [Wed, 25 Nov 1998 16:24:56 +0000 (16:24 +0000)]
preparing for release of 2.2.1
David Dykstra [Wed, 25 Nov 1998 15:37:50 +0000 (15:37 +0000)]
Back out change that treated "refuse options = compress" the same as
"dont compress = *", by request of Tridge. Instead, mention the difference
in the man page. Also, put in a shortcut in set_compression() to recognize
"*" earlier instead of going through malloc/strtok/fnmatch/free cycle.
David Dykstra [Tue, 24 Nov 1998 22:03:16 +0000 (22:03 +0000)]
When "refuse options = compress" is set in rsyncd.conf, silently send files
at compression level 0 instead of printing an error and exitting. This is
the same effect as "dont compress = *".
David Dykstra [Tue, 24 Nov 1998 21:26:38 +0000 (21:26 +0000)]
Always include "." when processing exclude lists. This avoids confusion
when people do --exclude "*". Also, add an example to the man page that
shows explicitly including parent directories when itemizing specific
paths to include followed by --exclude "*".
David Dykstra [Tue, 24 Nov 1998 20:54:56 +0000 (20:54 +0000)]
Update the README file to reflect current usage options.
David Dykstra [Tue, 24 Nov 1998 20:51:45 +0000 (20:51 +0000)]
Don't list cleaned-out duplicate file names as "<NULL>" when doing
list_only mode; skip them instead.
David Dykstra [Tue, 24 Nov 1998 20:18:11 +0000 (20:18 +0000)]
Change sanitize_path() function to not malloc a copy since it only shrinks
paths and it is only used in places that have already just done a copy.
David Dykstra [Tue, 24 Nov 1998 19:52:35 +0000 (19:52 +0000)]
Make sure secrets file is not other-accessible, and owned by root if the
daemon is running as root. Suggested by
Mike Richardson <mike@quaking.demon.co.uk>
David Dykstra [Tue, 24 Nov 1998 19:10:21 +0000 (19:10 +0000)]
Always add the O_BINARY flag in do_open if it is defined, for Windows.
Suggestion from Mart.Laak@hansa.ee
David Dykstra [Tue, 24 Nov 1998 19:01:24 +0000 (19:01 +0000)]
Backup deleted files when using --delete and --backup. Based on a
suggested patch from Kanai Makoto (kanai@hallab.co.jp).
David Dykstra [Mon, 23 Nov 1998 21:54:01 +0000 (21:54 +0000)]
Add "include" and "include from" rsyncd.conf options. Contributed
by Dennis Gilbert <dennis@oit.pdx.edu>.
Andrew Tridgell [Mon, 23 Nov 1998 00:30:27 +0000 (00:30 +0000)]
updates to reflect new samba.org domain
the main web site is now http://rsync.samba.org/
Andrew Tridgell [Fri, 20 Nov 1998 22:46:42 +0000 (22:46 +0000)]
changed an example slightly
Andrew Tridgell [Fri, 20 Nov 1998 22:26:29 +0000 (22:26 +0000)]
added "dont compress" option with the default setting of
*.gz *.tgz *.zip *.z *.rpm *.deb
Andrew Tridgell [Thu, 19 Nov 1998 06:45:21 +0000 (06:45 +0000)]
improved the "refuse options" code a bit
Andrew Tridgell [Thu, 19 Nov 1998 06:35:49 +0000 (06:35 +0000)]
added "refuse options" option
David Dykstra [Wed, 18 Nov 1998 17:53:22 +0000 (17:53 +0000)]
Look for strcasecmp in -lresolv for Unixware.
David Dykstra [Wed, 18 Nov 1998 17:36:36 +0000 (17:36 +0000)]
Minor documentation patches, due mostly to
Jason Henry Parker <henry@freezer.humbug.org.au>
David Dykstra [Wed, 18 Nov 1998 16:20:22 +0000 (16:20 +0000)]
Change --log-format documentation to make it clear that it is for the client
logging to stdout.
David Dykstra [Wed, 18 Nov 1998 16:02:23 +0000 (16:02 +0000)]
Remove a debugging statement I accidentally included in the last commit.
David Dykstra [Wed, 18 Nov 1998 15:54:50 +0000 (15:54 +0000)]
Change documentation to explain that a lack of -t in effect causes -I to be
assumed on the next transfer.
David Dykstra [Tue, 17 Nov 1998 21:56:18 +0000 (21:56 +0000)]
Apply sanitize_paths() to glob expansions when use chroot = no.
Andrew Tridgell [Mon, 16 Nov 1998 23:50:28 +0000 (23:50 +0000)]
don't interpret %h and %a when using --log-format locally
Andrew Tridgell [Mon, 16 Nov 1998 03:53:43 +0000 (03:53 +0000)]
fixed a bug handling files larger than 2GB
Andrew Tridgell [Sun, 15 Nov 1998 01:21:42 +0000 (01:21 +0000)]
log filename(line) in exit_cleanup() to make tracking down problems
easier in rsync daemons.
Andrew Tridgell [Sun, 15 Nov 1998 01:04:16 +0000 (01:04 +0000)]
use native strlcat() and strlcpy() if available
Andrew Tridgell [Sat, 14 Nov 1998 23:49:08 +0000 (23:49 +0000)]
compile with optimisation by default on all compilers
(the mdfour code really needs it)
Andrew Tridgell [Sat, 14 Nov 1998 23:31:58 +0000 (23:31 +0000)]
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
David Dykstra [Fri, 6 Nov 1998 17:07:07 +0000 (17:07 +0000)]
Change sanitize_path() to not use clean_fname() because it removes the
trailing slash. This caused a problem when using "use chroot" and sources
that contained a trailing slash (which prevents the last filename component
of the source from being included in the destination). Instead, have
sanitize_path() remove "." components and duplicated slashes ("//") itself.
Andrew Tridgell [Fri, 6 Nov 1998 10:37:10 +0000 (10:37 +0000)]
fixed typo
David Dykstra [Thu, 5 Nov 1998 14:33:38 +0000 (14:33 +0000)]
Add comment before call to mktemp saying it is deliberately chosen over
mkstemp.
David Dykstra [Wed, 4 Nov 1998 16:47:33 +0000 (16:47 +0000)]
Fix confusion between RERR_NOSUPPORT and RERR_UNSUPPORTED for exit codes
that indicate a feature is not supported. Two places that are normally
ifdefed out used RERR_UNSUPPORTED whereas one other place and errcode.h
used RERR_NOSUPPORT. Changed them all to consistently use RERR_UNSUPPORTED.
The two things that had the bad values were #ifndef SUPPORT_LINKS and
#ifdef NO_INT64. The former is probably for non-Unix operating systems
and the latter was at least on the default Unixware compiler.
Andrew Tridgell [Wed, 4 Nov 1998 03:14:22 +0000 (03:14 +0000)]
added timeout option in rsyncd.conf
Andrew Tridgell [Wed, 4 Nov 1998 02:35:18 +0000 (02:35 +0000)]
use macros to make mdfour faster on systems that don't do inlining
well. Also helps when optimisation level is low.
David Dykstra [Tue, 3 Nov 1998 22:30:52 +0000 (22:30 +0000)]
Remove statement in 1 that a URL can only be used if
a username is not needed.
rsync-bugs [Tue, 3 Nov 1998 22:00:59 +0000 (22:00 +0000)]
preparing for release of 2.2.0
David Dykstra [Tue, 3 Nov 1998 21:58:08 +0000 (21:58 +0000)]
Document the fact that you can use [USER@] in an rsync URL.
Note: the same thing works for ftp and http URLs in netscape.
David Dykstra [Tue, 3 Nov 1998 21:49:38 +0000 (21:49 +0000)]
Call clean_fname() in sanitize_path() to catch some more strange but
legal file name syntaxes.
David Dykstra [Tue, 3 Nov 1998 21:17:40 +0000 (21:17 +0000)]
Add support for optional ":PORT" in rsync URL.
Andrew Tridgell [Tue, 3 Nov 1998 07:08:27 +0000 (07:08 +0000)]
patch from Alberto Accomazzi <aaccomazzi@cfa.harvard.edu> to add
different exit codes for different conditions.
Andrew Tridgell [Tue, 3 Nov 1998 05:14:41 +0000 (05:14 +0000)]
documented --delete disabling on IO errors
Andrew Tridgell [Tue, 3 Nov 1998 03:48:47 +0000 (03:48 +0000)]
added the --log-format option to allow users to request arbitrary
per-file logging of interactive rsync sessions.
Andrew Tridgell [Mon, 2 Nov 1998 07:26:36 +0000 (07:26 +0000)]
remove double / from filenames in display
Andrew Tridgell [Mon, 2 Nov 1998 06:40:11 +0000 (06:40 +0000)]
the logging wasn't showing the full prefix for filenames
Andrew Tridgell [Mon, 2 Nov 1998 04:17:56 +0000 (04:17 +0000)]
Jason told me that's its very important for his site to log exactly
how many bytes were needed to be transferred for each file. I added %b
and %c log format options to cover this. See the man page for details.
Andrew Tridgell [Mon, 2 Nov 1998 00:55:21 +0000 (00:55 +0000)]
- document the rsync:// URL format
Andrew Tridgell [Mon, 2 Nov 1998 00:52:01 +0000 (00:52 +0000)]
if no local destination is provided for the transfer then provide
a "ls -l" style listing of the files that would be transferred
Andrew Tridgell [Sat, 31 Oct 1998 04:35:44 +0000 (04:35 +0000)]
added copyright notice from Patrick Powell
Andrew Tridgell [Sat, 31 Oct 1998 00:12:59 +0000 (00:12 +0000)]
get the date comparison the right way around
Andrew Tridgell [Fri, 30 Oct 1998 23:50:12 +0000 (23:50 +0000)]
use the orig_umask when choosing perms for the log file.
Andrew Tridgell [Fri, 30 Oct 1998 23:03:08 +0000 (23:03 +0000)]
fixed perms on rsyncd log file
Andrew Tridgell [Fri, 30 Oct 1998 11:18:38 +0000 (11:18 +0000)]
move the time init before the logfile opening.
Andrew Tridgell [Fri, 30 Oct 1998 06:12:14 +0000 (06:12 +0000)]
added a perl script to summarise the rsyncd log format
Andrew Tridgell [Fri, 30 Oct 1998 05:53:05 +0000 (05:53 +0000)]
added %m, %P and %u options to logging
Andrew Tridgell [Fri, 30 Oct 1998 02:52:42 +0000 (02:52 +0000)]
need BIG_ENDIAN test for inet_ntoa replacement
Andrew Tridgell [Fri, 30 Oct 1998 02:50:02 +0000 (02:50 +0000)]
check for a broken inet_ntoa() on IRIX
Andrew Tridgell [Fri, 30 Oct 1998 02:43:10 +0000 (02:43 +0000)]
get null termination right in logging
Andrew Tridgell [Fri, 30 Oct 1998 02:36:05 +0000 (02:36 +0000)]
get null termination right in logging
Andrew Tridgell [Fri, 30 Oct 1998 02:32:29 +0000 (02:32 +0000)]
hopefuly fix logging of "transfer interrupted" messages
Andrew Tridgell [Fri, 30 Oct 1998 02:24:47 +0000 (02:24 +0000)]
added "log format" option to allow admins to choose the format for
rsyncd log file entries
Andrew Tridgell [Fri, 30 Oct 1998 02:23:01 +0000 (02:23 +0000)]
hanle null strings in -vvv output
Andrew Tridgell [Thu, 29 Oct 1998 23:44:30 +0000 (23:44 +0000)]
fixed cacheing of some values (using code from Samba)
David Dykstra [Thu, 29 Oct 1998 22:28:56 +0000 (22:28 +0000)]
Fix for systems such as Unixware that have a cc that does not support -o
with -c.
Andrew Tridgell [Thu, 29 Oct 1998 11:16:51 +0000 (11:16 +0000)]
put the pid on each line of the log file to facilitate
auto-parsing. Requested by Jarkko Hietaniemi (jhi@iki.fi)
Andrew Tridgell [Thu, 29 Oct 1998 11:11:38 +0000 (11:11 +0000)]
put the pid on each line of the log file to facilitate
auto-parsing. Requested by Jarkko Hietaniemi (jhi@iki.fi)
Andrew Tridgell [Thu, 29 Oct 1998 06:39:43 +0000 (06:39 +0000)]
some minor optimisations
Andrew Tridgell [Thu, 29 Oct 1998 06:10:31 +0000 (06:10 +0000)]
a change I made yesterday corrupted the displayed filename in some
cases. cosmetic fix.
Andrew Tridgell [Thu, 29 Oct 1998 05:48:11 +0000 (05:48 +0000)]
final change needed to get rsync working on a CRAY J90
Andrew Tridgell [Thu, 29 Oct 1998 05:06:51 +0000 (05:06 +0000)]
kfixed char* casts
Andrew Tridgell [Thu, 29 Oct 1998 05:01:47 +0000 (05:01 +0000)]
changes to get rsync working on a CRAY J90. This machine doesn't have
a 4 byte integer type (short is 8 bytes). I needed to use a new md4
implementation (I used the portable one I wrote for Samba).
Andrew Tridgell [Wed, 28 Oct 1998 10:43:31 +0000 (10:43 +0000)]
syslog support in rsync daemon has been broken since I added the "log
file" option. I wonder why noone reported it? Or did everyone just use
"log file" ?
Andrew Tridgell [Wed, 28 Oct 1998 04:06:43 +0000 (04:06 +0000)]
fixed handling of %.0f in replacement snprintf.c
Andrew Tridgell [Wed, 28 Oct 1998 03:37:53 +0000 (03:37 +0000)]
fixed a typo
Andrew Tridgell [Wed, 28 Oct 1998 03:28:30 +0000 (03:28 +0000)]
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
David Dykstra [Tue, 27 Oct 1998 17:30:28 +0000 (17:30 +0000)]
Document the fact that --numeric-ids is implied if the source system is
a daemon using chroot.
David Dykstra [Tue, 27 Oct 1998 16:07:51 +0000 (16:07 +0000)]
- Define bindir and mandir as per gnu makefile standards
- Add install-strip target as per gnu makefile standards
Contributed by Fred Sanchez <wsanchez@apple.com>
Andrew Tridgell [Tue, 27 Oct 1998 14:19:35 +0000 (14:19 +0000)]
fixed a typecast
Andrew Tridgell [Tue, 27 Oct 1998 14:09:28 +0000 (14:09 +0000)]
handle OSes (such as Unicos) which use a different value for S_IFLNK
Andrew Tridgell [Mon, 26 Oct 1998 23:23:45 +0000 (23:23 +0000)]
added a vsnprintf() implementation from cvslock. See the notes on the
license at the top of lib/snprintf.c
David Dykstra [Mon, 26 Oct 1998 22:03:18 +0000 (22:03 +0000)]
Fix bug in --include and --include-from which didn't work as advertised;
could only include files before if "+ " was explicitly prefixed on files
from any exclude or include option. Also simplified the code by removing
the "orig" exclude_struct element, and reduced the number of bytes
transferred from client to server by never including "- " prefixes in the
transmitted exclude list because exclusion is the default.
David Dykstra [Mon, 26 Oct 1998 21:51:47 +0000 (21:51 +0000)]
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.
David Dykstra [Mon, 26 Oct 1998 21:45:23 +0000 (21:45 +0000)]
Optimize server for special case of a long list of includes ("+") followed
by a match-all exclude "- *".
David Dykstra [Mon, 26 Oct 1998 21:42:38 +0000 (21:42 +0000)]
Add --compare-dest option which enables specifying an additional destination
for comparisons when syncing. Useful for syncing into a scratch area and
doing a flash-cutover when it is completed.
rsync-bugs [Wed, 9 Sep 1998 07:07:11 +0000 (07:07 +0000)]
preparing for release of 2.1.1
Andrew Tridgell [Wed, 9 Sep 1998 07:06:44 +0000 (07:06 +0000)]
fixed timestring() bug
Andrew Tridgell [Wed, 9 Sep 1998 06:37:13 +0000 (06:37 +0000)]
don't complain about not setting times on directories
because some filesystems can't do it
Andrew Tridgell [Wed, 9 Sep 1998 06:31:13 +0000 (06:31 +0000)]
handle sstem (sco 3) with glob but not glob.h
Andrew Tridgell [Wed, 9 Sep 1998 06:23:27 +0000 (06:23 +0000)]
handle OSes where you can't rename a open file in the cleanup code.
Andrew Tridgell [Wed, 9 Sep 1998 06:06:08 +0000 (06:06 +0000)]
put the time in when using log file.
Andrew Tridgell [Wed, 9 Sep 1998 05:57:34 +0000 (05:57 +0000)]
added finddead target, removed dead code and made some functions
static
Andrew Tridgell [Wed, 9 Sep 1998 05:52:25 +0000 (05:52 +0000)]
doc updates
Andrew Tridgell [Wed, 9 Sep 1998 05:51:42 +0000 (05:51 +0000)]
added "log file" option for those systems with broken syslog (like
AIX)
Andrew Tridgell [Wed, 9 Sep 1998 05:51:08 +0000 (05:51 +0000)]
wanr people who use path names to rsync ::