rsync/rsync.git
22 years agoAnother try at socklen_t: just check for it, and otherwise use int.
Martin Pool [Wed, 8 Aug 2001 10:04:40 +0000 (10:04 +0000)]
Another try at socklen_t: just check for it, and otherwise use int.
The HP manual says this will work on old HP/UX versions; I'm not sure
about other systems.  Possibly it will break on old BSD-derived
systems with 32-bit int, 64-bit size_t and no socklen_t, if there are
any such.

22 years agodon't need to lookup our own name in open_socket_in()
Andrew Tridgell [Wed, 8 Aug 2001 08:55:24 +0000 (08:55 +0000)]
don't need to lookup our own name in open_socket_in()

22 years agoTry various different types as replacements for socklen_t until we
Martin Pool [Wed, 8 Aug 2001 08:11:50 +0000 (08:11 +0000)]
Try various different types as replacements for socklen_t until we
find one that works.  This helps on platforms like HP/UX and UNICOS
where the argument to getsockopt is neither socklen_t nor int.

22 years agoTwo more instances of socklen_t.
Martin Pool [Mon, 6 Aug 2001 12:31:23 +0000 (12:31 +0000)]
Two more instances of socklen_t.

22 years agoUse socklen_t if defined, or otherwise int. This tries to fix
Martin Pool [Mon, 6 Aug 2001 12:27:04 +0000 (12:27 +0000)]
Use socklen_t if defined, or otherwise int.  This tries to fix
warnings on platforms (e.g. AIX) where this type is defined and not
int.

22 years agoTry to fix "infinite loop" warning on AIX and other compilers. (We
Martin Pool [Mon, 6 Aug 2001 12:25:45 +0000 (12:25 +0000)]
Try to fix "infinite loop" warning on AIX and other compilers.  (We
exit on a signal.)

22 years agoCorrect over-zealous edit for UNICOS.
Martin Pool [Mon, 6 Aug 2001 12:23:50 +0000 (12:23 +0000)]
Correct over-zealous edit for UNICOS.

22 years agoFix for UNICOS CC: first argument to readlink must not be const, or we
Martin Pool [Mon, 6 Aug 2001 12:16:20 +0000 (12:16 +0000)]
Fix for UNICOS CC: first argument to readlink must not be const, or we
get an error.

22 years agoDocument autoconf updates.
Martin Pool [Mon, 6 Aug 2001 08:51:48 +0000 (08:51 +0000)]
Document autoconf updates.

22 years agoFix check for ino_t to work with both autoconf2.50 and autoconf2.13.
Martin Pool [Mon, 6 Aug 2001 08:49:19 +0000 (08:49 +0000)]
Fix check for ino_t to work with both autoconf2.50 and autoconf2.13.

22 years agoFix m4 quoting to make autoconf2.50 happy. I checked it still works
Martin Pool [Mon, 6 Aug 2001 08:41:13 +0000 (08:41 +0000)]
Fix m4 quoting to make autoconf2.50 happy.  I checked it still works
on 2.13.  See "info:(autoconf)New Macros".

22 years agoSummarize all the changes since 2.4.6 so we have them in one place.
Martin Pool [Mon, 6 Aug 2001 04:31:05 +0000 (04:31 +0000)]
Summarize all the changes since 2.4.6 so we have them in one place.

22 years agoupdated config scripts from subversion
Andrew Tridgell [Sun, 22 Jul 2001 02:39:06 +0000 (02:39 +0000)]
updated config scripts from subversion

22 years agoreap children in sigchld handler
Andrew Tridgell [Tue, 17 Jul 2001 10:48:31 +0000 (10:48 +0000)]
reap children in sigchld handler

22 years agoprevent nasty error msgs when listing shares
Andrew Tridgell [Tue, 17 Jul 2001 10:45:54 +0000 (10:45 +0000)]
prevent nasty error msgs when listing shares

22 years agoremoved remnant test code for cray
Andrew Tridgell [Thu, 28 Jun 2001 05:07:15 +0000 (05:07 +0000)]
removed remnant test code for cray

22 years agofixed md4 on 64 bit boxes
Andrew Tridgell [Tue, 26 Jun 2001 03:09:14 +0000 (03:09 +0000)]
fixed md4 on 64 bit boxes

22 years agoapplied simple nohang patch from Wayne Davison
Andrew Tridgell [Tue, 26 Jun 2001 01:20:42 +0000 (01:20 +0000)]
applied simple nohang patch from Wayne Davison

22 years agoImprove the description of --with-default-rsync.
David Dykstra [Fri, 22 Jun 2001 20:36:43 +0000 (20:36 +0000)]
Improve the description of --with-default-rsync.

22 years agoallow shell wildcards in auth users lines
Andrew Tridgell [Fri, 22 Jun 2001 10:16:04 +0000 (10:16 +0000)]
allow shell wildcards in auth users lines

22 years agoIf binding to a low-numbered port fails with EACCES, then the error
Martin Pool [Thu, 21 Jun 2001 06:19:00 +0000 (06:19 +0000)]
If binding to a low-numbered port fails with EACCES, then the error
message should explain that you probably need to be root.

(Why leave off the final S?  Kernighan must have been a *really* slow
typist.)

22 years agoFix from Wayne Davison:
Martin Pool [Thu, 21 Jun 2001 06:15:34 +0000 (06:15 +0000)]
Fix from Wayne Davison:

  The --cvs-exclude option is broken in the CVS version of rsync
  because of a cut-and-paste-induced bug in exclude.c:

  This bug could cause the sending rsync to crash when it dereferenced
  a NULL pointer.

22 years agoSimplify the --with-rsync-path option implementation. Can directly pass
David Dykstra [Wed, 13 Jun 2001 16:47:22 +0000 (16:47 +0000)]
Simplify the --with-rsync-path option implementation.  Can directly pass
the double-quotes to AC_DEFINE_UNQUOTED instead of having a separate step.

22 years agoUse 3rd parameter in AC_DEFINE and AC_DEFINE_UNQUOTED to avoid having to
David Dykstra [Tue, 12 Jun 2001 21:35:26 +0000 (21:35 +0000)]
Use 3rd parameter in AC_DEFINE and AC_DEFINE_UNQUOTED to avoid having to
manually put the defines into acconfig.h.

22 years agoAdd --with-rsync-path option.
David Dykstra [Tue, 12 Jun 2001 19:33:41 +0000 (19:33 +0000)]
Add --with-rsync-path option.

22 years agoMake --whole-file the default when source and target are on the local machine.
David Dykstra [Tue, 29 May 2001 14:37:54 +0000 (14:37 +0000)]
Make --whole-file the default when source and target are on the local machine.

22 years agoRan rsync.yo through yodl2man to produce rsync.1. I found that the string
David Dykstra [Thu, 24 May 2001 18:01:56 +0000 (18:01 +0000)]
Ran yo through yodl2man to produce rsync.1.  I found that the string
"file(s)" in rsync.yo was being improperly translated by yodl2man so I
changed it to just "files".

22 years agoAdd --ignore-errors documentation.
David Dykstra [Tue, 22 May 2001 14:33:38 +0000 (14:33 +0000)]
Add --ignore-errors documentation.

22 years agoforgot 1 place that used slprintf
Andrew Tridgell [Mon, 7 May 2001 08:59:48 +0000 (08:59 +0000)]
forgot 1 place that used slprintf

22 years agoimported new snprintf.c from samba, got rid of slprintf
Andrew Tridgell [Mon, 7 May 2001 06:59:37 +0000 (06:59 +0000)]
imported new snprintf.c from samba, got rid of slprintf

22 years agono space after -I or Tru64 barfs
Andrew Tridgell [Sun, 6 May 2001 13:25:11 +0000 (13:25 +0000)]
no space after -I or Tru64 barfs

23 years agouse _S_IFLNK not S_IFLNK
Andrew Tridgell [Wed, 2 May 2001 11:13:21 +0000 (11:13 +0000)]
use _S_IFLNK not S_IFLNK

23 years agouse mkstemp on systems where it is secure
Andrew Tridgell [Wed, 2 May 2001 08:33:18 +0000 (08:33 +0000)]
use mkstemp on systems where it is secure

23 years agobetter pid file location
Andrew Tridgell [Wed, 2 May 2001 05:05:12 +0000 (05:05 +0000)]
better pid file location

23 years agouse %.0f instead of %ld
Andrew Tridgell [Fri, 13 Apr 2001 12:25:19 +0000 (12:25 +0000)]
use %.0f instead of %ld

23 years agoAdd the words "on destination machine" to the --compare-dist description
David Dykstra [Fri, 23 Mar 2001 15:12:52 +0000 (15:12 +0000)]
Add the words "on destination machine" to the --compare-dist description
in rsync.yo.  Re-ran yodl2man which I see pulled in a few other changes
from rsync.yo that hadn't yet made it into rsync.1.

23 years ago"rsync error" is better than "transfer error", especially for -h
Andrew Tridgell [Fri, 23 Mar 2001 03:46:56 +0000 (03:46 +0000)]
"rsync error" is better than "transfer error", especially for -h

23 years agogot rid of dependency on alloca in popt
Andrew Tridgell [Fri, 23 Mar 2001 03:44:50 +0000 (03:44 +0000)]
got rid of dependency on alloca in popt

23 years agoimproved error handling again. Now we report messages for the remote
Andrew Tridgell [Fri, 23 Mar 2001 01:26:04 +0000 (01:26 +0000)]
improved error handling again. Now we report messages for the remote
shell failing and propogate errors in a better fashion

23 years agonew error handling system
Andrew Tridgell [Thu, 22 Mar 2001 07:36:51 +0000 (07:36 +0000)]
new error handling system

we now give a non-0 exit code if *any* of the files we have been asked
to transfer fail to transfer

23 years agobetter error msg for "invalid uid" and "invalid gid"
Andrew Tridgell [Wed, 21 Mar 2001 23:44:48 +0000 (23:44 +0000)]
better error msg for "invalid uid" and "invalid gid"

23 years agoi hate makefiles that automatically run configure
Andrew Tridgell [Wed, 21 Mar 2001 23:36:23 +0000 (23:36 +0000)]
i hate makefiles that automatically run configure
:)

23 years agoI came up with a new way of avoiding the error handling lockup bug in
Andrew Tridgell [Wed, 21 Mar 2001 13:12:44 +0000 (13:12 +0000)]
I came up with a new way of avoiding the error handling lockup bug in
rsync. It isn't pretty, but it does work and should completely avoid
that class of lockup.

23 years agoCheck for alloca.h and mcheck.h, as included popt needs to know about
Martin Pool [Tue, 20 Mar 2001 05:26:27 +0000 (05:26 +0000)]
Check for alloca.h and mcheck.h, as included popt needs to know about
them.

23 years agoOops, fix edit mistake.
Martin Pool [Mon, 19 Mar 2001 08:19:11 +0000 (08:19 +0000)]
Oops, fix edit mistake.

23 years agoMore accurately, the uid/gid is set to -2, not "nobody".
Martin Pool [Sat, 17 Mar 2001 01:35:59 +0000 (01:35 +0000)]
More accurately, the uid/gid is set to -2, not "nobody".

23 years agoAdd some todo comments.
Martin Pool [Sat, 17 Mar 2001 01:34:22 +0000 (01:34 +0000)]
Add some todo comments.

23 years agoDon't unconditionally define _LARGEFILE_SOURCE, but instead include
Martin Pool [Sat, 17 Mar 2001 01:06:34 +0000 (01:06 +0000)]
Don't unconditionally define _LARGEFILE_SOURCE, but instead include
some autoconf-2.13 macros that make the appropriate settings.  Thanks
to Albert Chin <china@thewrittenword.com> and Paul Eggert
<eggert@twinsun.com>.

23 years agoDefine _LARGE_FILES to turn on LFS support on AIX (and some others?).
Martin Pool [Fri, 16 Mar 2001 05:23:33 +0000 (05:23 +0000)]
Define _LARGE_FILES to turn on LFS support on AIX (and some others?).

See http://www.rs6000.ibm.com/doc_link/en_US/a_doc_lib/aixprggd/genprogc/prg_lrg_files.htm

Thanks to Todd Willeat <TWilleat@MHP.SMHS.com>

23 years agoDoc.
Martin Pool [Fri, 16 Mar 2001 02:11:53 +0000 (02:11 +0000)]
Doc.

23 years agoAdd my name and a suggestion to read the FAQ for unanswered questions.
Martin Pool [Tue, 27 Feb 2001 01:49:19 +0000 (01:49 +0000)]
Add my name and a suggestion to read the FAQ for unanswered questions.

23 years agoExplain that the mktemp warning is harmless.
Martin Pool [Tue, 27 Feb 2001 01:46:34 +0000 (01:46 +0000)]
Explain that the mktemp warning is harmless.

If the autoconf inputs are changed, then try to reconfigure.  Don't
worry if we can't do it, though.

23 years agoAdd some brief notes on how to install.
Martin Pool [Sat, 24 Feb 2001 01:45:21 +0000 (01:45 +0000)]
Add some brief notes on how to install.

23 years agopopt-1.5 is const-correct.
Martin Pool [Sat, 24 Feb 2001 01:39:19 +0000 (01:39 +0000)]
popt-1.5 is const-correct.

23 years agoUpgrade from including popt1.2 to a version of popt1.5 trimmed down to
Martin Pool [Sat, 24 Feb 2001 01:37:48 +0000 (01:37 +0000)]
Upgrade from including popt1.2 to a version of popt1.5 trimmed down to
include only source and build from our Makefile.
Don't scan for libpopt if we're using our own; this makes
autoconf confused.

23 years agoUpgrade from popt 1.2 to a cut-down 1.5
Martin Pool [Sat, 24 Feb 2001 01:32:22 +0000 (01:32 +0000)]
Upgrade from popt 1.2 to a cut-down 1.5

23 years agoDoc.
Martin Pool [Fri, 23 Feb 2001 01:45:46 +0000 (01:45 +0000)]
Doc.

23 years agoChange from getopt to popt -- requires const-correctness on arguments.
Martin Pool [Fri, 23 Feb 2001 01:44:56 +0000 (01:44 +0000)]
Change from getopt to popt -- requires const-correctness on arguments.

23 years agoChange from getopt to popt.
Martin Pool [Fri, 23 Feb 2001 01:44:04 +0000 (01:44 +0000)]
Change from getopt to popt.
Add comments.
Show listening port number in startup log message.

23 years agoChange from getopt to popt.
Martin Pool [Fri, 23 Feb 2001 01:02:55 +0000 (01:02 +0000)]
Change from getopt to popt.
Add comment.

23 years agoChange from getopt to popt.
Martin Pool [Fri, 23 Feb 2001 01:02:31 +0000 (01:02 +0000)]
Change from getopt to popt.
Include more details in --version output: say whether symlinks and
hardlinks are supported.
When hardlink support is missing, explain whether the problem is on
the client or server.
When a bad option is encountered, don't just print it to stderr but
send it to the rsync log mechanism.  (However, server errors currently
seem to get lost in transit because of bugs in logging.)

23 years agoChange from getopt to popt.
Martin Pool [Fri, 23 Feb 2001 00:48:11 +0000 (00:48 +0000)]
Change from getopt to popt.
Automatically build included libpopt if there is none on the system,
or if --with-included-popt is specified.
Add --enable-debug.

23 years agoChange from getopt to popt.
Martin Pool [Fri, 23 Feb 2001 00:47:09 +0000 (00:47 +0000)]
Change from getopt to popt.
Automatically build included libpopt if there is none on the system.

23 years agoChange from getopt to popt.
Martin Pool [Fri, 23 Feb 2001 00:45:07 +0000 (00:45 +0000)]
Change from getopt to popt.

23 years agoAdd comments.
Martin Pool [Thu, 22 Feb 2001 13:02:39 +0000 (13:02 +0000)]
Add comments.
Better error message in the case of eof on read_timeout.

23 years agoNote about multiplexing.
Martin Pool [Thu, 22 Feb 2001 13:01:27 +0000 (13:01 +0000)]
Note about multiplexing.

23 years agoCheck in built-in copy of libpopt in preparation for switching
Martin Pool [Thu, 22 Feb 2001 13:01:09 +0000 (13:01 +0000)]
Check in built-in copy of libpopt in preparation for switching
from getopt

23 years agoDoc.
Martin Pool [Wed, 21 Feb 2001 08:25:07 +0000 (08:25 +0000)]
Doc.

23 years agoMore explanation of return values.
Martin Pool [Wed, 21 Feb 2001 08:16:45 +0000 (08:16 +0000)]
More explanation of return values.

23 years agoBetter message grammar.
Martin Pool [Wed, 21 Feb 2001 07:18:50 +0000 (07:18 +0000)]
Better message grammar.

23 years agoCall this 2.4.6dev so that we don't get bug reports claiming to be
Martin Pool [Wed, 14 Feb 2001 22:59:03 +0000 (22:59 +0000)]
Call this 2.4.6dev so that we don't get bug reports claiming to be
about 2.4.6.

23 years agoAdd table of exit values, from errcode.h.
Martin Pool [Wed, 14 Feb 2001 22:47:28 +0000 (22:47 +0000)]
Add table of exit values, from errcode.h.

23 years agoDocument shortcoming of "unrecognised option" message.
Martin Pool [Thu, 8 Feb 2001 03:28:19 +0000 (03:28 +0000)]
Document shortcoming of "unrecognised option" message.

23 years agoInclude strerror message when there's a socket error.
Martin Pool [Mon, 8 Jan 2001 10:25:00 +0000 (10:25 +0000)]
Include strerror message when there's a socket error.

23 years agoImproved error message.
Martin Pool [Mon, 8 Jan 2001 03:39:53 +0000 (03:39 +0000)]
Improved error message.

23 years agoIgnore generated files that are not stored in CVS.
Martin Pool [Mon, 8 Jan 2001 03:39:32 +0000 (03:39 +0000)]
Ignore generated files that are not stored in CVS.

23 years agoTypo fix from Jim Meyering
Martin Pool [Mon, 8 Jan 2001 01:10:58 +0000 (01:10 +0000)]
Typo fix from Jim Meyering

23 years agoBetter explain how the --blocking-io option works.
David Dykstra [Fri, 5 Jan 2001 17:57:11 +0000 (17:57 +0000)]
Better explain how the --blocking-io option works.

23 years agoAdd comments.
Martin Pool [Wed, 15 Nov 2000 05:53:45 +0000 (05:53 +0000)]
Add comments.

23 years agoDoc.
Martin Pool [Wed, 15 Nov 2000 03:16:06 +0000 (03:16 +0000)]
Doc.

23 years agoIn --version, say whether we have socketpair() or not
Martin Pool [Fri, 10 Nov 2000 03:41:47 +0000 (03:41 +0000)]
In --version, say whether we have socketpair() or not

23 years agoIgnore dummy output file
Martin Pool [Fri, 10 Nov 2000 03:41:17 +0000 (03:41 +0000)]
Ignore dummy output file

23 years agoIf an error occurs, print an explanatory string rather
Martin Pool [Fri, 10 Nov 2000 03:28:15 +0000 (03:28 +0000)]
If an error occurs, print an explanatory string rather
than just an RERR code.

23 years agoDoc.
Martin Pool [Fri, 10 Nov 2000 03:17:08 +0000 (03:17 +0000)]
Doc.

23 years agoDrop dead variable.
Martin Pool [Thu, 9 Nov 2000 09:45:19 +0000 (09:45 +0000)]
Drop dead variable.

23 years agoDocument getsockopt POSIX confusion.
Martin Pool [Thu, 9 Nov 2000 09:27:34 +0000 (09:27 +0000)]
Document getsockopt POSIX confusion.

23 years agoPrint a warning message in the version if the platform cannot support 32-bit ints
Martin Pool [Thu, 9 Nov 2000 09:05:14 +0000 (09:05 +0000)]
Print a warning message in the version if the platform cannot support 32-bit ints

23 years agoBetter error messages
Martin Pool [Thu, 9 Nov 2000 09:02:16 +0000 (09:02 +0000)]
Better error messages

23 years agoBetter error messages when unlink fails
Martin Pool [Wed, 8 Nov 2000 09:45:16 +0000 (09:45 +0000)]
Better error messages when unlink fails

23 years agoBetter error messages when unlink fails
Martin Pool [Wed, 8 Nov 2000 09:32:11 +0000 (09:32 +0000)]
Better error messages when unlink fails

23 years agoBetter error messages when unlink fails
Martin Pool [Wed, 8 Nov 2000 09:32:10 +0000 (09:32 +0000)]
Better error messages when unlink fails

23 years agoCorrect license name. Note new address of pserver. Correct documentation.
Martin Pool [Thu, 2 Nov 2000 11:38:13 +0000 (11:38 +0000)]
Correct license name.  Note new address of pserver.  Correct documentation.

23 years agoAdd some comments.
Martin Pool [Thu, 2 Nov 2000 11:37:34 +0000 (11:37 +0000)]
Add some comments.

23 years agofix bug in handling of :
Andrew Tridgell [Tue, 31 Oct 2000 10:59:50 +0000 (10:59 +0000)]
fix bug in handling of :

23 years agoDisplay a warning about pointlessly using --rsh with clientserver mode.
Martin Pool [Tue, 31 Oct 2000 01:05:42 +0000 (01:05 +0000)]
Display a warning about pointlessly using --rsh with clientserver mode.

23 years agoDraft documentation of the client-server protocol.
Martin Pool [Thu, 26 Oct 2000 08:05:36 +0000 (08:05 +0000)]
Draft documentation of the client-server protocol.

23 years agoPrint strerror when a system error occurs; add a new function rsyserr
Martin Pool [Thu, 26 Oct 2000 07:31:29 +0000 (07:31 +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.

23 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.

23 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.

23 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.