rsync.git
18 years agoPrint strerror when a system error occurs; add a new function rsyserr
Martin Pool [Thu, 26 Oct 2000 07:24:18 +0000 (07:24 +0000)]
Print strerror when a system error occurs; add a new function rsyserr
to do this.  This is not used in every case yet -- I've just changed a
few cases that were causing trouble.  Please convert others as you see them.

18 years agoMake sure the log file is always opened before root privileges (if any)
David Dykstra [Wed, 25 Oct 2000 19:57:42 +0000 (19:57 +0000)]
Make sure the log file is always opened before root privileges (if any)
are given up.

18 years agoWhen running as --daemon in the background and using a "log file" rsyncd.conf
David Dykstra [Tue, 24 Oct 2000 18:50:08 +0000 (18:50 +0000)]
When running as --daemon in the background and using a "log file" rsyncd.conf
directive, close the log file every time it is open when going to sleep on
the socket.  This allows the log file to get cleaned out by another process.

18 years agodon't clobber argv[0], so ps shows the right thing
Andrew Tridgell [Thu, 19 Oct 2000 00:47:48 +0000 (00:47 +0000)]
don't clobber argv[0], so ps shows the right thing

18 years agoAdd note in "secrets file" section to see "strict modes".
David Dykstra [Fri, 13 Oct 2000 13:49:31 +0000 (13:49 +0000)]
Add note in "secrets file" section to see "strict modes".

18 years agoClear up conditions for running as root.
Martin Pool [Fri, 13 Oct 2000 03:28:12 +0000 (03:28 +0000)]
Clear up conditions for running as root.

18 years agoOops: manpage updates should go into the yodl source.
Martin Pool [Fri, 13 Oct 2000 03:25:07 +0000 (03:25 +0000)]
Oops: manpage updates should go into the yodl source.

18 years agoQuick list of things to do.
Martin Pool [Wed, 11 Oct 2000 00:57:27 +0000 (00:57 +0000)]
Quick list of things to do.

18 years agoClearer "nothing to do" message.
Martin Pool [Tue, 10 Oct 2000 01:26:55 +0000 (01:26 +0000)]
Clearer "nothing to do" message.

18 years agoGet rid of const modifiers; they're problematic with old compilers.
Martin Pool [Mon, 9 Oct 2000 03:48:47 +0000 (03:48 +0000)]
Get rid of const modifiers; they're problematic with old compilers.

18 years agoinclude/exclude cluestick: with -vv, print out whether files are
Martin Pool [Mon, 9 Oct 2000 03:46:38 +0000 (03:46 +0000)]
include/exclude cluestick: with -vv, print out whether files are
included or excluded and why.

18 years agoAdded provision for packaging for Linux Standards Base compliant Linux systems.
John H Terpstra [Mon, 11 Sep 2000 18:04:35 +0000 (18:04 +0000)]
Added provision for packaging for Linux Standards Base compliant Linux systems.

18 years agoneater getconf test
Andrew Tridgell [Wed, 6 Sep 2000 07:15:37 +0000 (07:15 +0000)]
neater getconf test

18 years agopreparing for release of 2.4.6 v2.4.6
rsync-bugs [Wed, 6 Sep 2000 02:47:00 +0000 (02:47 +0000)]
preparing for release of 2.4.6

18 years agoREADME update
Andrew Tridgell [Wed, 6 Sep 2000 02:39:45 +0000 (02:39 +0000)]
README update

18 years agoadded --modify-window option from David Bolen <db3l@fitlinxx.com>
Andrew Tridgell [Wed, 6 Sep 2000 02:12:13 +0000 (02:12 +0000)]
added --modify-window option from David Bolen <db3l@fitlinxx.com>

18 years agominor man page update
Andrew Tridgell [Wed, 6 Sep 2000 01:27:46 +0000 (01:27 +0000)]
minor man page update

18 years agoremoved spurious error message
Andrew Tridgell [Wed, 6 Sep 2000 00:48:52 +0000 (00:48 +0000)]
removed spurious error message

18 years agoadded LFS support for Solaris 8
Andrew Tridgell [Tue, 5 Sep 2000 23:21:27 +0000 (23:21 +0000)]
added LFS support for Solaris 8

18 years agoa simple fix to the memory problems with the string pool patch. The
Andrew Tridgell [Thu, 31 Aug 2000 23:01:28 +0000 (23:01 +0000)]
a simple fix to the memory problems with the string pool patch. The
string pools conflict with the lastdir memory saving tricks.

18 years agomake sure we don't chew too much CPU when the outgoing fd is full
Andrew Tridgell [Tue, 29 Aug 2000 05:07:08 +0000 (05:07 +0000)]
make sure we don't chew too much CPU when the outgoing fd is full

18 years agosome string_area cleanups
Andrew Tridgell [Tue, 29 Aug 2000 04:47:39 +0000 (04:47 +0000)]
some string_area cleanups

18 years agodetect list_only a bit earlier
Andrew Tridgell [Tue, 29 Aug 2000 04:46:50 +0000 (04:46 +0000)]
detect list_only a bit earlier

18 years agothe 2nd half of the hack
Andrew Tridgell [Tue, 29 Aug 2000 04:46:27 +0000 (04:46 +0000)]
the 2nd half of the hack

18 years agoa hack to make listing remote sites (by leaving off a target) more
Andrew Tridgell [Tue, 29 Aug 2000 04:45:49 +0000 (04:45 +0000)]
a hack to make listing remote sites (by leaving off a target) more
useful

19 years agogot rid of some unused variables
Andrew Tridgell [Sat, 19 Aug 2000 15:25:05 +0000 (15:25 +0000)]
got rid of some unused variables

19 years agopreparing for release of 2.4.5 v2.4.5
rsync-bugs [Sat, 19 Aug 2000 13:10:57 +0000 (13:10 +0000)]
preparing for release of 2.4.5

19 years agoman page updates
Andrew Tridgell [Sat, 19 Aug 2000 13:04:48 +0000 (13:04 +0000)]
man page updates

19 years agoallow 0.0.0.0/0 syntax in hosts allow/deny
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>

19 years agoadded msleep() function
Andrew Tridgell [Sat, 19 Aug 2000 12:53:51 +0000 (12:53 +0000)]
added msleep() function

19 years agosleep for a smaller time while waiting for a process to exit
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

19 years agoadded "ignore nonreadable" option (useful for hiding files in public archives)
Andrew Tridgell [Sat, 19 Aug 2000 12:53:00 +0000 (12:53 +0000)]
added "ignore nonreadable" option (useful for hiding files in public archives)

19 years agoadded an explicit noexcludes flag to make_file()
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)

19 years agoadded an explicit noexcludes flag to make_file()
Andrew Tridgell [Sat, 19 Aug 2000 12:51:26 +0000 (12:51 +0000)]
added an explicit noexcludes flag to make_file()

19 years agoI don't like automatic header dependencies
Andrew Tridgell [Sat, 19 Aug 2000 12:51:00 +0000 (12:51 +0000)]
I don't like automatic header dependencies

19 years agoadded MacOS support to config.guess (from wsanchez@apple.com)
Andrew Tridgell [Sat, 19 Aug 2000 12:09:52 +0000 (12:09 +0000)]
added MacOS support to config.guess (from wsanchez@apple.com)

19 years agofixed backup_dir bug introduced with recent memory handling patches
Andrew Tridgell [Sat, 19 Aug 2000 11:06:04 +0000 (11:06 +0000)]
fixed backup_dir bug introduced with recent memory handling patches

19 years agofixed timing problem with cleanup and io_flush() by using non-blocking
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()

19 years agoUndo last setting of blocking_io. I hadn't reviewed the code well enough;
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.

19 years agoTurn on blocking_io when starting client of rsync server daemon.
David Dykstra [Fri, 4 Aug 2000 21:18:23 +0000 (21:18 +0000)]
Turn on blocking_io when starting client of rsync server daemon.

19 years agoEnable --compare-dest to work in combination with --always-checksum.
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).

19 years agopreparing for release of 2.4.4 v2.4.4
rsync-bugs [Sat, 29 Jul 2000 05:05:38 +0000 (05:05 +0000)]
preparing for release of 2.4.4

19 years agofix from T.J.Adye@rl.ac.uk for final goodbye message with new protocol
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

19 years agooptimisations from Rich Salz <rsalz@caveosystems.com>
Andrew Tridgell [Sat, 29 Jul 2000 04:52:05 +0000 (04:52 +0000)]
optimisations from Rich Salz <rsalz@caveosystems.com>

19 years agoadded blocking-io docs
Andrew Tridgell [Sat, 29 Jul 2000 04:41:19 +0000 (04:41 +0000)]
added blocking-io docs

19 years agoadded *.bz2 and *.tbz to default dont compress list
Andrew Tridgell [Sat, 24 Jun 2000 13:20:21 +0000 (13:20 +0000)]
added *.bz2 and *.tbz to default dont compress list

19 years agoadded insure debug support
Andrew Tridgell [Sat, 24 Jun 2000 13:19:53 +0000 (13:19 +0000)]
added insure debug support

19 years agoif the remote shell is rsh then use blocking IO
Andrew Tridgell [Sat, 24 Jun 2000 13:19:25 +0000 (13:19 +0000)]
if the remote shell is rsh then use blocking IO

19 years agoadded some comments on blocking-io
Andrew Tridgell [Fri, 23 Jun 2000 13:54:29 +0000 (13:54 +0000)]
added some comments on blocking-io

19 years agoget rid of annoying symlink error messages
Andrew Tridgell [Fri, 23 Jun 2000 13:54:08 +0000 (13:54 +0000)]
get rid of annoying symlink error messages

19 years agoadded --blocking-io option
Andrew Tridgell [Fri, 23 Jun 2000 13:50:18 +0000 (13:50 +0000)]
added --blocking-io option

19 years agoAdd --bwlimit option contributed by Matthew Demicco and Jamie Gritton.
David Dykstra [Tue, 6 Jun 2000 21:13:05 +0000 (21:13 +0000)]
Add --bwlimit option contributed by Matthew Demicco and Jamie Gritton.

19 years agoDo better job at describing exclude/include in man page. Based on suggestions
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>.

19 years agofixed bug in replacement inet_aton()
Andrew Tridgell [Wed, 19 Apr 2000 05:49:15 +0000 (05:49 +0000)]
fixed bug in replacement inet_aton()

19 years agotest was the wrong way around
Andrew Tridgell [Wed, 19 Apr 2000 05:44:43 +0000 (05:44 +0000)]
test was the wrong way around

19 years agoautoconf test for broken solaris inet_aton()
Andrew Tridgell [Wed, 19 Apr 2000 05:33:39 +0000 (05:33 +0000)]
autoconf test for broken solaris inet_aton()

19 years agoby default don't gzip .iso images
Andrew Tridgell [Wed, 19 Apr 2000 05:33:06 +0000 (05:33 +0000)]
by default don't gzip .iso images

19 years agopreparing for release of 2.4.3 v2.4.3
rsync-bugs [Sun, 9 Apr 2000 02:53:57 +0000 (02:53 +0000)]
preparing for release of 2.4.3

19 years agouse 1 second sleeps in the sleep loop as some OSes (NT for example)
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.

19 years agodon't pprint the IO timeout message if we are a server or daemon (can
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)

19 years agoa very simple fix - if I'd only thought if it last week :)
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.

19 years agopreparing for release of 2.4.2 v2.4.2
rsync-bugs [Thu, 30 Mar 2000 14:24:37 +0000 (14:24 +0000)]
preparing for release of 2.4.2

19 years agowent back to non-blokcing IO
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

19 years agoadd a --ignore-errors option
Andrew Tridgell [Tue, 21 Mar 2000 04:06:04 +0000 (04:06 +0000)]
add a --ignore-errors option

19 years agoDescribe symbolic link handling when writing to a "use chroot = no" module.
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.

19 years agoSomebody was confused into thinking that "Here are some examples" in the
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".

19 years agoChange socketpair test to verify that it works rather than just exists,
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.

19 years agoMove the checking for -lsocket -lnsl ahead of the checking for most of
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>

19 years agopreparing for release of 2.4.1 v2.4.1
rsync-bugs [Sun, 30 Jan 2000 01:02:59 +0000 (01:02 +0000)]
preparing for release of 2.4.1

19 years agopatch from Jim Delahanty <mail_us@swbell.net> to ensure files are
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

19 years agoanother hang-at-end fix. It looks like we are more sensiitive to
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

19 years agodamn.
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

19 years agopreparing for release of 2.4.0 v2.4.0
rsync-bugs [Sat, 29 Jan 2000 11:35:39 +0000 (11:35 +0000)]
preparing for release of 2.4.0

19 years agochange version to 2.4.0pre2
Andrew Tridgell [Sat, 29 Jan 2000 05:25:53 +0000 (05:25 +0000)]
change version to 2.4.0pre2

19 years agouse full buffer length, not strlen
Andrew Tridgell [Sat, 29 Jan 2000 05:16:13 +0000 (05:16 +0000)]
use full buffer length, not strlen

19 years agomove the read only daemon test to after the protocol setup
Andrew Tridgell [Sat, 29 Jan 2000 05:02:23 +0000 (05:02 +0000)]
move the read only daemon test to after the protocol setup

19 years agodamn!
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.

19 years agoI've decided that this release will be 2.4.0, updated version to 2.4.0pre1
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

19 years agodon't need PIPE_BUF any more
Andrew Tridgell [Sat, 29 Jan 2000 02:56:36 +0000 (02:56 +0000)]
don't need PIPE_BUF any more

19 years agofixed some logcode warnings
Andrew Tridgell [Sat, 29 Jan 2000 02:49:03 +0000 (02:49 +0000)]
fixed some logcode warnings

19 years agofixed a bug in test suite that I introduced yesterday
Andrew Tridgell [Sat, 29 Jan 2000 02:39:52 +0000 (02:39 +0000)]
fixed a bug in test suite that I introduced yesterday

19 years agoruntime detect fnmatch() bug if ** is used.
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.

19 years agochanged version to 2.3.3pre2
Andrew Tridgell [Fri, 28 Jan 2000 15:35:08 +0000 (15:35 +0000)]
changed version to 2.3.3pre2

19 years ago- switched on multiplexing for all connections, not just daemon
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

19 years agoswitch to using socketpair instead of pipe if possible. This fixes the
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.

19 years agoreport exit code when failing a test
Andrew Tridgell [Thu, 27 Jan 2000 04:54:02 +0000 (04:54 +0000)]
report exit code when failing a test

19 years agofixed the error code problem with test.sh
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)

19 years agopatch from James Delahanty <jimd@gie.com> to make --backup-dir work
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

19 years agothe convoluted nest of #ifdefs that is fnmatch.c caught us again. On
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

19 years agofix segv bug in --progress handling
Andrew Tridgell [Tue, 25 Jan 2000 13:16:42 +0000 (13:16 +0000)]
fix segv bug in --progress handling

19 years agopatch from David Murn to make sure the final 100% is always printed
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

19 years agoupdated version.h
Andrew Tridgell [Tue, 25 Jan 2000 01:33:05 +0000 (01:33 +0000)]
updated version.h

19 years agoupdated config.guess from latest autoconf CVS tree
Andrew Tridgell [Mon, 24 Jan 2000 13:12:20 +0000 (13:12 +0000)]
updated config.guess from latest autoconf CVS tree

19 years agoupdated --password-file docs
Andrew Tridgell [Mon, 24 Jan 2000 12:28:45 +0000 (12:28 +0000)]
updated --password-file docs

19 years agoreinstated the MAX_READ_BUFFER code. Its a nasty tradeoff - using lots
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.

19 years agoupdated a debug message
Andrew Tridgell [Mon, 24 Jan 2000 12:22:58 +0000 (12:22 +0000)]
updated a debug message

19 years agomake the replacement inet_aton() function independent of
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

19 years agofixed a rare SEGV that can happen when a file disappears (due to
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

19 years agomoved file deletion to before the fork() to prevent a race condition
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

19 years agodon't use stderr after we become a daemon
Andrew Tridgell [Mon, 24 Jan 2000 09:19:44 +0000 (09:19 +0000)]
don't use stderr after we become a daemon