Andrew Tridgell [Sat, 19 Aug 2000 13:04:29 +0000 (13:04 +0000)]
allow 0.0.0.0/0 syntax in hosts allow/deny
patch from Charles Levert <charles@comm.polymtl.ca>
Andrew Tridgell [Sat, 19 Aug 2000 12:53:51 +0000 (12:53 +0000)]
added msleep() function
Andrew Tridgell [Sat, 19 Aug 2000 12:53:24 +0000 (12:53 +0000)]
sleep for a smaller time while waiting for a process to exit
Andrew Tridgell [Sat, 19 Aug 2000 12:53:00 +0000 (12:53 +0000)]
added "ignore nonreadable" option (useful for hiding files in public archives)
Andrew Tridgell [Sat, 19 Aug 2000 12:52:39 +0000 (12:52 +0000)]
added an explicit noexcludes flag to make_file()
this fixes a bug with --backup-dir and -x
added "ignore nonreadable" option (useful for hiding files in public archives)
Andrew Tridgell [Sat, 19 Aug 2000 12:51:26 +0000 (12:51 +0000)]
added an explicit noexcludes flag to make_file()
Andrew Tridgell [Sat, 19 Aug 2000 12:51:00 +0000 (12:51 +0000)]
I don't like automatic header dependencies
Andrew Tridgell [Sat, 19 Aug 2000 12:09:52 +0000 (12:09 +0000)]
added MacOS support to config.guess (from wsanchez@apple.com)
Andrew Tridgell [Sat, 19 Aug 2000 11:06:04 +0000 (11:06 +0000)]
fixed backup_dir bug introduced with recent memory handling patches
Andrew Tridgell [Wed, 16 Aug 2000 08:34:18 +0000 (08:34 +0000)]
fixed timing problem with cleanup and io_flush() by using non-blocking
waitpid()
David Dykstra [Fri, 4 Aug 2000 21:26:17 +0000 (21:26 +0000)]
Undo last setting of blocking_io. I hadn't reviewed the code well enough;
turns out that when client is talking to a server daemon it never executes
this leg of code. Oops. The people who said it made a difference when
they changed the code must have been wrong.
David Dykstra [Fri, 4 Aug 2000 21:18:23 +0000 (21:18 +0000)]
Turn on blocking_io when starting client of rsync server daemon.
David Dykstra [Fri, 4 Aug 2000 21:11:46 +0000 (21:11 +0000)]
Enable --compare-dest to work in combination with --always-checksum.
Problem and suggested patch from Dean Scothern dino@cricinfo.com (although
I re-wrote the patch).
rsync-bugs [Sat, 29 Jul 2000 05:05:38 +0000 (05:05 +0000)]
preparing for release of 2.4.4
Andrew Tridgell [Sat, 29 Jul 2000 04:58:24 +0000 (04:58 +0000)]
fix from T.J.Adye@rl.ac.uk for final goodbye message with new protocol
Andrew Tridgell [Sat, 29 Jul 2000 04:52:05 +0000 (04:52 +0000)]
optimisations from Rich Salz <rsalz@caveosystems.com>
Andrew Tridgell [Sat, 29 Jul 2000 04:41:19 +0000 (04:41 +0000)]
added blocking-io docs
Andrew Tridgell [Sat, 24 Jun 2000 13:20:21 +0000 (13:20 +0000)]
added *.bz2 and *.tbz to default dont compress list
Andrew Tridgell [Sat, 24 Jun 2000 13:19:53 +0000 (13:19 +0000)]
added insure debug support
Andrew Tridgell [Sat, 24 Jun 2000 13:19:25 +0000 (13:19 +0000)]
if the remote shell is rsh then use blocking IO
Andrew Tridgell [Fri, 23 Jun 2000 13:54:29 +0000 (13:54 +0000)]
added some comments on blocking-io
Andrew Tridgell [Fri, 23 Jun 2000 13:54:08 +0000 (13:54 +0000)]
get rid of annoying symlink error messages
Andrew Tridgell [Fri, 23 Jun 2000 13:50:18 +0000 (13:50 +0000)]
added --blocking-io option
David Dykstra [Tue, 6 Jun 2000 21:13:05 +0000 (21:13 +0000)]
Add --bwlimit option contributed by Matthew Demicco and Jamie Gritton.
David Dykstra [Fri, 19 May 2000 14:58:28 +0000 (14:58 +0000)]
Do better job at describing exclude/include in man page. Based on suggestions
from Harry Putnam <reader@newsguy.com>.
Andrew Tridgell [Wed, 19 Apr 2000 05:49:15 +0000 (05:49 +0000)]
fixed bug in replacement inet_aton()
Andrew Tridgell [Wed, 19 Apr 2000 05:44:43 +0000 (05:44 +0000)]
test was the wrong way around
Andrew Tridgell [Wed, 19 Apr 2000 05:33:39 +0000 (05:33 +0000)]
autoconf test for broken solaris inet_aton()
Andrew Tridgell [Wed, 19 Apr 2000 05:33:06 +0000 (05:33 +0000)]
by default don't gzip .iso images
rsync-bugs [Sun, 9 Apr 2000 02:53:57 +0000 (02:53 +0000)]
preparing for release of 2.4.3
Andrew Tridgell [Sun, 9 Apr 2000 02:32:57 +0000 (02:32 +0000)]
use 1 second sleeps in the sleep loop as some OSes (NT for example)
don't get interrupted during a sleep.
Andrew Tridgell [Sun, 9 Apr 2000 02:32:18 +0000 (02:32 +0000)]
don't pprint the IO timeout message if we are a server or daemon (can
cause recursive error messages)
Andrew Tridgell [Sun, 9 Apr 2000 02:16:42 +0000 (02:16 +0000)]
a very simple fix - if I'd only thought if it last week :)
rsh relies on stdin being blocking
ssh relies on stdout being non-blocking
what we've done before is to set both stdin and stdout to either
blocking or non-blocking. Now I set stdin to blocking and stdout to
non-blocking. This seems to fix all cases I've tested.
rsync-bugs [Thu, 30 Mar 2000 14:24:37 +0000 (14:24 +0000)]
preparing for release of 2.4.2
Andrew Tridgell [Thu, 30 Mar 2000 14:15:00 +0000 (14:15 +0000)]
went back to non-blokcing IO
it looks like ssh is willing to accept a non-blocking fd when used as
a transport, this seems to avoid the Solaris socketpair bug
Andrew Tridgell [Tue, 21 Mar 2000 04:06:04 +0000 (04:06 +0000)]
add a --ignore-errors option
David Dykstra [Fri, 25 Feb 2000 17:02:45 +0000 (17:02 +0000)]
Describe symbolic link handling when writing to a "use chroot = no" module.
David Dykstra [Tue, 22 Feb 2000 19:47:44 +0000 (19:47 +0000)]
Somebody was confused into thinking that "Here are some examples" in the
section on exclude/include was supposed to be about "+/-" so I changed
the statement to "Here are some exclude/include examples".
David Dykstra [Tue, 22 Feb 2000 15:55:40 +0000 (15:55 +0000)]
Change socketpair test to verify that it works rather than just exists,
because I have an obscure system (Amdahl's UTS 2.1.2) in which socketpair()
exists but is broken.
David Dykstra [Tue, 15 Feb 2000 22:44:18 +0000 (22:44 +0000)]
Move the checking for -lsocket -lnsl ahead of the checking for most of
the functions, especially "socketpair" so that socket-related functions will
be properly discovered on SVR4-based systems such as Solaris. Problem
discovered by Kenji Miyake <kenji@miyake.org>
rsync-bugs [Sun, 30 Jan 2000 01:02:59 +0000 (01:02 +0000)]
preparing for release of 2.4.1
Andrew Tridgell [Sun, 30 Jan 2000 00:56:43 +0000 (00:56 +0000)]
patch from Jim Delahanty <mail_us@swbell.net> to ensure files are
deleted after being backed up in a rename operation
Andrew Tridgell [Sun, 30 Jan 2000 00:50:19 +0000 (00:50 +0000)]
another hang-at-end fix. It looks like we are more sensiitive to
these with socketpairs. The receiver now sleeps until it gets a signal
to tell it to exit
also fixed test.sh to use the current version remotely
Andrew Tridgell [Sat, 29 Jan 2000 23:49:36 +0000 (23:49 +0000)]
damn.
with the new error handling code it is possible for rsync to get stuck
on the final transaction, leaving it hung.
looks like 2.4.1 will be pretty soon
rsync-bugs [Sat, 29 Jan 2000 11:35:39 +0000 (11:35 +0000)]
preparing for release of 2.4.0
Andrew Tridgell [Sat, 29 Jan 2000 05:25:53 +0000 (05:25 +0000)]
change version to 2.4.0pre2
Andrew Tridgell [Sat, 29 Jan 2000 05:16:13 +0000 (05:16 +0000)]
use full buffer length, not strlen
Andrew Tridgell [Sat, 29 Jan 2000 05:02:23 +0000 (05:02 +0000)]
move the read only daemon test to after the protocol setup
Andrew Tridgell [Sat, 29 Jan 2000 04:50:01 +0000 (04:50 +0000)]
damn!
the last pre-release had a bug that didn't setup the multiplexing
correctly. This means that pre-release will get "unexpected tag -7"
whenm talking to the fixed code.
Andrew Tridgell [Sat, 29 Jan 2000 03:11:07 +0000 (03:11 +0000)]
I've decided that this release will be 2.4.0, updated version to 2.4.0pre1
Andrew Tridgell [Sat, 29 Jan 2000 02:56:36 +0000 (02:56 +0000)]
don't need PIPE_BUF any more
Andrew Tridgell [Sat, 29 Jan 2000 02:49:03 +0000 (02:49 +0000)]
fixed some logcode warnings
Andrew Tridgell [Sat, 29 Jan 2000 02:39:52 +0000 (02:39 +0000)]
fixed a bug in test suite that I introduced yesterday
Andrew Tridgell [Sat, 29 Jan 2000 02:35:01 +0000 (02:35 +0000)]
runtime detect fnmatch() bug if ** is used.
its all too common to compile with a working libc and run on a broken
one.
Andrew Tridgell [Fri, 28 Jan 2000 15:35:08 +0000 (15:35 +0000)]
changed version to 2.3.3pre2
Andrew Tridgell [Fri, 28 Jan 2000 15:29:59 +0000 (15:29 +0000)]
- switched on multiplexing for all connections, not just daemon
connections (this fixes the stderr/stdout problem). Upped
protocol version for backward compat
- use multiplexing on error fd
- upped minimal protocol version
- got rid of some ugly code in the write buffering
Andrew Tridgell [Fri, 28 Jan 2000 12:37:58 +0000 (12:37 +0000)]
switch to using socketpair instead of pipe if possible. This fixes the
ssh clag problems as long as you also fix the same problem in sshd
removed all the old read buffering code from io.c as this was only
there to try to reduce the chance of clagging up sshd.
Andrew Tridgell [Thu, 27 Jan 2000 04:54:02 +0000 (04:54 +0000)]
report exit code when failing a test
Andrew Tridgell [Thu, 27 Jan 2000 04:53:39 +0000 (04:53 +0000)]
fixed the error code problem with test.sh
(was a minor bug in send_file_list)
Andrew Tridgell [Thu, 27 Jan 2000 02:45:56 +0000 (02:45 +0000)]
patch from James Delahanty <jimd@gie.com> to make --backup-dir work
cross-filesystem
Andrew Tridgell [Tue, 25 Jan 2000 14:17:21 +0000 (14:17 +0000)]
the convoluted nest of #ifdefs that is fnmatch.c caught us again. On
my system the LIBC tests meant it never compiled and we used the
broken system one.
hacked it so it does compile
Andrew Tridgell [Tue, 25 Jan 2000 13:16:42 +0000 (13:16 +0000)]
fix segv bug in --progress handling
Andrew Tridgell [Tue, 25 Jan 2000 06:39:33 +0000 (06:39 +0000)]
patch from David Murn to make sure the final 100% is always printed
when using --progress
Andrew Tridgell [Tue, 25 Jan 2000 01:33:05 +0000 (01:33 +0000)]
updated version.h
Andrew Tridgell [Mon, 24 Jan 2000 13:12:20 +0000 (13:12 +0000)]
updated config.guess from latest autoconf CVS tree
Andrew Tridgell [Mon, 24 Jan 2000 12:28:45 +0000 (12:28 +0000)]
updated --password-file docs
Andrew Tridgell [Mon, 24 Jan 2000 12:23:39 +0000 (12:23 +0000)]
reinstated the MAX_READ_BUFFER code. Its a nasty tradeoff - using lots
of memory vs. ssh bugs. uggh.
Andrew Tridgell [Mon, 24 Jan 2000 12:22:58 +0000 (12:22 +0000)]
updated a debug message
Andrew Tridgell [Mon, 24 Jan 2000 12:02:44 +0000 (12:02 +0000)]
make the replacement inet_aton() function independent of
inet_addr(). Some systems were detecting a missing inet_aton(), but
actually had it and inet_addr() called it, causing infinite recursion
Andrew Tridgell [Mon, 24 Jan 2000 11:41:08 +0000 (11:41 +0000)]
fixed a rare SEGV that can happen when a file disappears (due to
another program) during an update
Andrew Tridgell [Mon, 24 Jan 2000 11:20:25 +0000 (11:20 +0000)]
moved file deletion to before the fork() to prevent a race condition
pointed out by byrnes@curl.com
Andrew Tridgell [Mon, 24 Jan 2000 09:19:44 +0000 (09:19 +0000)]
don't use stderr after we become a daemon
Andrew Tridgell [Mon, 24 Jan 2000 09:13:39 +0000 (09:13 +0000)]
I can't believe it - solaris allows unlink of a non-empty directory as
root, leaving a corrupt filesystem. Are those guys on drugs?
try to avoid the problem as best we can.
Andrew Tridgell [Mon, 24 Jan 2000 08:16:57 +0000 (08:16 +0000)]
added some more debug info to the "buffer overflow in
receive_file_entry" message
Andrew Tridgell [Mon, 24 Jan 2000 05:52:44 +0000 (05:52 +0000)]
-a now implies -o and -D whether you are root or not
Andrew Tridgell [Mon, 24 Jan 2000 04:58:53 +0000 (04:58 +0000)]
added --backup-dir option from Bob Edwards
this is very useful for incremental backups
Andrew Tridgell [Sun, 23 Jan 2000 13:16:30 +0000 (13:16 +0000)]
removed Daves include-only optimisation. One of the bug reports turned
out to be caused by it and it seems rather a lot of extra effort for
what must really be a minor optimisation in most cases
Andrew Tridgell [Sun, 23 Jan 2000 12:30:34 +0000 (12:30 +0000)]
fix a problem with files > 2GB
(thanks to T.J.Adye@rl.ac.uk)
Andrew Tridgell [Sun, 23 Jan 2000 11:43:04 +0000 (11:43 +0000)]
added --max-delete option
Andrew Tridgell [Sun, 23 Jan 2000 11:26:10 +0000 (11:26 +0000)]
fixed mdfour code on Cray (64 bit problems)
Thanks to roebel@kgw.tu-berlin.de
Andrew Tridgell [Sun, 23 Jan 2000 07:38:20 +0000 (07:38 +0000)]
removed u_sleep() as it is no longer used anywhere
Andrew Tridgell [Sun, 23 Jan 2000 07:36:56 +0000 (07:36 +0000)]
added some really ugly code to allow errors to propogate to
clients when writing to a rsync server
it works like this:
- we have an extra pipe from the receiver to the generator
- the server always runs with multiplexing on
- errors from the generator go down the multiplexed connection
- errors from the receiver go over the pipe, and from there to
the multiplexed conn
it required some incredibly ugly code. damn.
Andrew Tridgell [Sun, 23 Jan 2000 03:00:27 +0000 (03:00 +0000)]
open on paths starting with // fails on win32
Andrew Tridgell [Sun, 23 Jan 2000 02:16:51 +0000 (02:16 +0000)]
handle systems that don't take a 2nd argument to gettimeofday()
Andrew Tridgell [Sun, 23 Jan 2000 01:53:18 +0000 (01:53 +0000)]
added --existing option, similar to one suggested by Gildas Quiniou <gildas@stip.fr>
Andrew Tridgell [Sun, 23 Jan 2000 01:11:43 +0000 (01:11 +0000)]
don't try to write errors to a dead socket
David Dykstra [Mon, 10 Jan 2000 22:39:45 +0000 (22:39 +0000)]
Make all the rsync objects dependent on all the header files except the
zlib header fiels in Makefile.in. I've been burned several times because
objects did not get rebuilt when header files changed.
David Dykstra [Mon, 10 Jan 2000 20:36:20 +0000 (20:36 +0000)]
Needed to comment out the inclusion of headers in fnmatch.c because it
couldn't find some of them (especially <fnmatch.h>, because it wasn't
looking in the current directory). The header files are included better
from ../rsync.h.
Andrew Tridgell [Mon, 10 Jan 2000 04:49:51 +0000 (04:49 +0000)]
make --address work for a client connecting to a server
David Dykstra [Fri, 7 Jan 2000 17:58:44 +0000 (17:58 +0000)]
Upgrade lib/fnmatch.[ch] to the latest from glibc-2.1.2 because the
FNM_PATHNAME flag (to stop at slashes in path names) was not working.
Ironically, the bug in glibc's fnmatch was reported on the rsync mailing
list in late October, and rsync's configure.in was changed to detect the
bad glibc and use the internal fnmatch, but the internal fnmatch was based
on the same buggy glibc!
David Dykstra [Thu, 6 Jan 2000 16:15:36 +0000 (16:15 +0000)]
If a destination file cannot be opened, pretend it doesn't exist rather
than skipping it and thus not updating it. For example, the ownership or
mode on a file may prevent opening it, but the directory may still be
writable so the file could be completely replaced.
Andrew Tridgell [Thu, 6 Jan 2000 00:26:00 +0000 (00:26 +0000)]
when we do a lchown() on a file we have to flush the cached perms on
the file if the file has the setuid or setgid bits set as the chown
has a side effect of removing the setuid and setgid bits.
we re-do the stat in this case
David Dykstra [Wed, 29 Dec 1999 21:11:57 +0000 (21:11 +0000)]
Define the WEXITSTATUS macro for systems that don't have it.
David Dykstra [Wed, 29 Dec 1999 20:50:48 +0000 (20:50 +0000)]
When writing to a daemon with read only = false and uid = root and -g,
was not preserving group permisions. Bug was introduced March 1 in
version 1.100 of rsync.c with an error in re-ordering of the boolean
expressions. In order to completely preserve the earlier semantics,
change_gid should depend on "(am_root || !am_daemon)", but I don't see why
group ownership should behave differently in a non-root daemon.
David Dykstra [Wed, 29 Dec 1999 20:45:23 +0000 (20:45 +0000)]
When not using -p and file being copied to already existed, was mistakenly
using all the mode bits of the existing file rather than just the permissions,
including the file type.
Andrew Tridgell [Thu, 9 Dec 1999 06:46:11 +0000 (06:46 +0000)]
fixed a bug with waitpid() - I'd forgotten about WEXITSTATUS !
Andrew Tridgell [Fri, 3 Dec 1999 04:24:25 +0000 (04:24 +0000)]
fixed man page typo
Andrew Tridgell [Thu, 2 Dec 1999 05:50:09 +0000 (05:50 +0000)]
fixed a segv bug when handling symlinks.
thanks to taver@otenet.gr
Andrew Tridgell [Tue, 23 Nov 1999 08:43:16 +0000 (08:43 +0000)]
don't write more than PIPE_BUF bytes in any one write() in io.c
this makes sure that the write never blocks.
Andrew Tridgell [Mon, 15 Nov 1999 01:32:20 +0000 (01:32 +0000)]
removed old non-blocking fd code (a hangover from a earlier version of
io.c). Thanks to Theo for pointing out this brokenness.