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 ::
Andrew Tridgell [Thu, 27 Aug 1998 05:17:21 +0000 (05:17 +0000)]
fixed a small memory leak when using -C
thanks to kalt@research.bell-labs.com for this fix.
Andrew Tridgell [Thu, 27 Aug 1998 05:07:52 +0000 (05:07 +0000)]
removed the limit on the read buffer size until I fully understand the
interactions with ssh. The old ssh freezes have shown up again and
some debugging (with help from James Welborn) showed that the cause
was the read buffer hitting maximum size. I think this means that ssh
must be misbehaving about blocking IO.
This change gets rid of the freezes at the expense of memory
usage. Where it would have frozen it uses more memory instead.
Andrew Tridgell [Thu, 27 Aug 1998 05:05:14 +0000 (05:05 +0000)]
a couple of changes to where the nonblocking settings are called.
Andrew Tridgell [Sat, 25 Jul 1998 09:20:33 +0000 (09:20 +0000)]
fix PATTERN/FILE in --help output
Andrew Tridgell [Sat, 25 Jul 1998 02:25:22 +0000 (02:25 +0000)]
c was getting a bit unwieldy so I split the code into 3 modules,
for the 3 logical stages of rsync; generator, sender and receiver.
Andrew Tridgell [Thu, 23 Jul 1998 03:09:14 +0000 (03:09 +0000)]
fixed the relative paths bug pointed out by Alberto Accomazzi
rsync-bugs [Mon, 20 Jul 1998 05:43:51 +0000 (05:43 +0000)]
preparing for release of 2.1.0
Andrew Tridgell [Mon, 20 Jul 1998 05:36:25 +0000 (05:36 +0000)]
I think I might havefinally fixed the rsync hanging bug. It was caused
by a read during an io_flush() triggered during a readfd(). A simple
logic bug in the io code :(
Andrew Tridgell [Sun, 19 Jul 1998 10:51:26 +0000 (10:51 +0000)]
always use a timeout to select, even if --timeout is not
specified. This makes things easier to debug.
Andrew Tridgell [Sun, 19 Jul 1998 05:22:05 +0000 (05:22 +0000)]
- defer the error message from the options parsing until after the
socket is multiplexed. This allows clients sending new options which
the remote server doesn't understand to get a sensible error message.
Andrew Tridgell [Sun, 19 Jul 1998 04:50:48 +0000 (04:50 +0000)]
- close stdout and stderr and reopen then as /dev/null when running as
a daemon. This prevents library functions (such as getopt) stuffing up
our protocol stream when errors are detected.
- defer the error message from the options parsing until after the
socket is multiplexed. This allows clients sending new options which
the remote server doesn't understand to get a sensible error message.
rsync-bugs [Fri, 17 Jul 1998 14:53:00 +0000 (14:53 +0000)]
preparing for release of 2.0.19
Andrew Tridgell [Fri, 17 Jul 1998 14:42:59 +0000 (14:42 +0000)]
handle hard links on systems with 16 bit ino_t
Andrew Tridgell [Fri, 17 Jul 1998 14:25:14 +0000 (14:25 +0000)]
added a bit in the man page about the clean shell error
Andrew Tridgell [Fri, 17 Jul 1998 14:05:57 +0000 (14:05 +0000)]
check whether there is a / before a : in the rsync command line. If
there is then assume that the : is from a filename, not a host:dir
separator. This allows you to copy files with a : in them. (suggestion
from pfeifer@wait.de)
Andrew Tridgell [Fri, 17 Jul 1998 13:18:32 +0000 (13:18 +0000)]
make rsync behave more like GNU cp with regard to file permissions
when -p (preserve permissions) isn't set.
It works by taking the sending file permissions and masking them with
the umask to create the destination file permissions. (There is really
no "correct" way of doing this but at least we now behave like GNU cp
which fits the principle of least surprise.)
also fixed a race condition in copy_file()
Andrew Tridgell [Fri, 17 Jul 1998 10:00:48 +0000 (10:00 +0000)]
added the --safe-links option to disallow symlinks outside the
destination tree
Andrew Tridgell [Fri, 17 Jul 1998 10:00:43 +0000 (10:00 +0000)]
added the --safe-links option to disallow symlinks outside the
destination tree
Andrew Tridgell [Fri, 17 Jul 1998 07:42:04 +0000 (07:42 +0000)]
some code reformatting
Andrew Tridgell [Fri, 17 Jul 1998 07:26:08 +0000 (07:26 +0000)]
removed old "make dist" target
Andrew Tridgell [Fri, 17 Jul 1998 07:25:42 +0000 (07:25 +0000)]
changed wording of an error message
Andrew Tridgell [Fri, 17 Jul 1998 07:17:11 +0000 (07:17 +0000)]
moved getopt.h above unistd.h to prevent problems with uwin on NT
Andrew Tridgell [Fri, 17 Jul 1998 07:07:23 +0000 (07:07 +0000)]
fixed a problem with rsync buffering the debug output when redirected
to a file.
Andrew Tridgell [Fri, 17 Jul 1998 05:38:51 +0000 (05:38 +0000)]
make a function static
Andrew Tridgell [Fri, 17 Jul 1998 05:38:21 +0000 (05:38 +0000)]
remove a useless debug message
Andrew Tridgell [Fri, 17 Jul 1998 05:37:56 +0000 (05:37 +0000)]
code style change
Andrew Tridgell [Fri, 17 Jul 1998 05:37:18 +0000 (05:37 +0000)]
use error to detect lockfile open failures vs. max connections reached
and report an appropriate error message
Andrew Tridgell [Thu, 2 Jul 1998 10:57:20 +0000 (10:57 +0000)]
- use explicit flushes instead of setlinebuf. I've had reports of
verbose info not being line buffered to files.
- add a call to localtime() in open_log() in order to prime the C
libraries timezone cache before the chroot(). This should fix the
problem of rsyncd log entries being in GMT time.
Andrew Tridgell [Thu, 2 Jul 1998 03:02:14 +0000 (03:02 +0000)]
remove a redundent continue statement
Andrew Tridgell [Thu, 2 Jul 1998 02:59:04 +0000 (02:59 +0000)]
prioritise reading over writing in the select loop. (this is another
ssh-friendly attempt)
Andrew Tridgell [Thu, 2 Jul 1998 02:48:09 +0000 (02:48 +0000)]
fix the problem of --timeout waiting for twice the specified time.
Andrew Tridgell [Thu, 2 Jul 1998 02:08:55 +0000 (02:08 +0000)]
- don't show "created directory" message unless verbose is selected
- check for null buf in show_progress
Andrew Tridgell [Thu, 2 Jul 1998 01:28:39 +0000 (01:28 +0000)]
output progress % every 1k instead of every 1%, this is better for
large files.
Andrew Tridgell [Thu, 2 Jul 1998 01:27:51 +0000 (01:27 +0000)]
the recv_generator can be static
Andrew Tridgell [Thu, 2 Jul 1998 01:27:14 +0000 (01:27 +0000)]
enable output buffering in the recv generator. This makes a
significant difference when the transport is ssh as ssh will otherwise
output a complete frame for each checksum record, which increases the
checksum data in size by a factor of around 4.