rsync/rsync.git
20 years agoFix copyright.
Martin Pool [Mon, 8 Apr 2002 05:28:31 +0000 (05:28 +0000)]
Fix copyright.

20 years agoAdd more test cases.
Martin Pool [Mon, 8 Apr 2002 05:22:50 +0000 (05:22 +0000)]
Add more test cases.

Turn off -x.

20 years agoDoc.
Martin Pool [Mon, 8 Apr 2002 05:21:51 +0000 (05:21 +0000)]
Doc.

20 years agoAdd more test cases.
Martin Pool [Mon, 8 Apr 2002 05:19:41 +0000 (05:19 +0000)]
Add more test cases.

20 years agoFormatting cleanup.
Martin Pool [Mon, 8 Apr 2002 04:59:34 +0000 (04:59 +0000)]
Formatting cleanup.

20 years agoDoc.
Martin Pool [Mon, 8 Apr 2002 04:48:51 +0000 (04:48 +0000)]
Doc.

20 years agoA test suite that calls unsafe_symlink() directly to see how it
Martin Pool [Mon, 8 Apr 2002 04:47:01 +0000 (04:47 +0000)]
A test suite that calls unsafe_symlink() directly to see how it
handles different strings.

20 years agoSplit code out into separate files and remove some global variables to
Martin Pool [Mon, 8 Apr 2002 04:16:46 +0000 (04:16 +0000)]
Split code out into separate files and remove some global variables to
reduce symbol dependencies between files and therefore make it easier
to write unit tests.  The diff is large, but the actual code changes
are pretty small.

20 years agoTest harness for unsafe_symlink: just passes in argv[].
Martin Pool [Mon, 8 Apr 2002 04:13:43 +0000 (04:13 +0000)]
Test harness for unsafe_symlink: just passes in argv[].

20 years agoLittle stub module that replaces functions such as rprintf called from
Martin Pool [Mon, 8 Apr 2002 04:12:31 +0000 (04:12 +0000)]
Little stub module that replaces functions such as rprintf called from
many places with a redirector to stderr.  If you just want to test a
particular routine you can link to this rather than the whole framework.

20 years agoSplit code out into separate files and remove some global variables to
Martin Pool [Mon, 8 Apr 2002 04:10:20 +0000 (04:10 +0000)]
Split code out into separate files and remove some global variables to
reduce symbol dependencies between files and therefore make it easier
to write unit tests.  The diff is large, but the actual code changes
are pretty small.

20 years agoDon't generate code for zlib and popt.
Martin Pool [Mon, 8 Apr 2002 04:00:24 +0000 (04:00 +0000)]
Don't generate code for zlib and popt.

20 years agoDoc.
Martin Pool [Mon, 8 Apr 2002 03:43:54 +0000 (03:43 +0000)]
Doc.

20 years agoDoc.
Martin Pool [Mon, 8 Apr 2002 03:38:36 +0000 (03:38 +0000)]
Doc.

20 years agoRearrange code slightly to avoid util.c depending on main.c.
Martin Pool [Mon, 8 Apr 2002 03:37:19 +0000 (03:37 +0000)]
Rearrange code slightly to avoid util.c depending on main.c.

20 years agoTune doxygen output, remove warning.
Martin Pool [Mon, 8 Apr 2002 03:13:11 +0000 (03:13 +0000)]
Tune doxygen output, remove warning.

20 years agoDocument unsafe_symlink().
Martin Pool [Mon, 8 Apr 2002 03:10:01 +0000 (03:10 +0000)]
Document unsafe_symlink().

20 years agoClean up comments for Doxygen.
Martin Pool [Mon, 8 Apr 2002 03:03:04 +0000 (03:03 +0000)]
Clean up comments for Doxygen.

20 years agoDoc.
Martin Pool [Mon, 8 Apr 2002 02:41:23 +0000 (02:41 +0000)]
Doc.

20 years agoNote on debugging daemon
Martin Pool [Mon, 8 Apr 2002 02:39:00 +0000 (02:39 +0000)]
Note on debugging daemon

20 years agoNotes about logging.
Martin Pool [Mon, 8 Apr 2002 01:59:21 +0000 (01:59 +0000)]
Notes about logging.

20 years agoNote about two small bugs.
Martin Pool [Fri, 5 Apr 2002 07:25:06 +0000 (07:25 +0000)]
Note about two small bugs.

20 years agoTest more permutations.
Martin Pool [Fri, 5 Apr 2002 07:13:01 +0000 (07:13 +0000)]
Test more permutations.

20 years agoFix filenames.
Martin Pool [Fri, 5 Apr 2002 07:04:23 +0000 (07:04 +0000)]
Fix filenames.

20 years agoGet rid of testlink after use.
Martin Pool [Fri, 5 Apr 2002 07:00:53 +0000 (07:00 +0000)]
Get rid of testlink after use.

20 years agoTest case for --copy-unsafe-links, contributed by Vladimír Michl,
Martin Pool [Fri, 5 Apr 2002 06:57:47 +0000 (06:57 +0000)]
Test case for --copy-unsafe-links, contributed by Vladimír Michl,
converted to the test suite.  Thankyou!

It fails at the moment; I don't know if that's a test bug or an rsync bug.

20 years agoDoc
Martin Pool [Fri, 5 Apr 2002 06:17:50 +0000 (06:17 +0000)]
Doc

20 years agoFix completely braindead previous patch. Thanks Jos.
Martin Pool [Wed, 3 Apr 2002 06:55:24 +0000 (06:55 +0000)]
Fix completely braindead previous patch.  Thanks Jos.

20 years agoPatch from Zoong Pham and Albert Chin to improve detection of
Martin Pool [Wed, 3 Apr 2002 06:03:27 +0000 (06:03 +0000)]
Patch from Zoong Pham and Albert Chin to improve detection of
getaddrinfo on Tru64.

Also configure.in test for mkfifo and sys/un.h, although we don't
actually use that yet.

20 years agoChange code that writes s_count to a batch file to squish it into an
Martin Pool [Wed, 3 Apr 2002 05:55:54 +0000 (05:55 +0000)]
Change code that writes s_count to a batch file to squish it into an
int first -- a stopgap for compilers that reasonably complain about a
ternary that returns either a size_t or an int.

Really we should not write an int, but rather a larger type.  Somebody
more familiar with the batch code should look at it.

20 years agoSupport Doxygen pretty-printer
Martin Pool [Wed, 3 Apr 2002 04:29:19 +0000 (04:29 +0000)]
Support Doxygen pretty-printer

20 years agoCommit patch based on one from John L. Allen to fix "forward name
Martin Pool [Wed, 3 Apr 2002 02:33:42 +0000 (02:33 +0000)]
Commit patch based on one from John L. Allen to fix "forward name
lookup failed" on AIX 4.3.3.

When doing an name->addr lookup on the client address, there's no
point including the service name, because it can't be spoofed and it
apparently causes trouble when not present in /etc/services.

20 years agoRoll over version and news.
Martin Pool [Wed, 3 Apr 2002 02:13:42 +0000 (02:13 +0000)]
Roll over version and news.

20 years agoNote about --dry-run.
Martin Pool [Wed, 3 Apr 2002 00:10:11 +0000 (00:10 +0000)]
Note about --dry-run.

20 years agoRemove warning about "run autoconf". It tends to break too much with
Martin Pool [Tue, 2 Apr 2002 02:00:29 +0000 (02:00 +0000)]
Remove warning about "run autoconf".  It tends to break too much with
CVS.

20 years agoBump to 2.5.5.
Martin Pool [Tue, 2 Apr 2002 01:41:58 +0000 (01:41 +0000)]
Bump to 2.5.5.

20 years agoIf configured with --enable-maintainer-mode, then on receipt of a
Martin Pool [Wed, 27 Mar 2002 05:10:44 +0000 (05:10 +0000)]
If configured with --enable-maintainer-mode, then on receipt of a
fatal signal rsync will try to open an xterm running gdb, similarly to
Samba's "panic action" or GNOME's bug-buddy.

20 years agoImproved network error handling. (Greg A. Woods)
Martin Pool [Wed, 27 Mar 2002 01:03:13 +0000 (01:03 +0000)]
Improved network error handling.  (Greg A. Woods)

20 years agoShell scripts should explicitly "exit 0" for portability. Thanks Jos.
Martin Pool [Tue, 26 Mar 2002 10:36:45 +0000 (10:36 +0000)]
Shell scripts should explicitly "exit 0" for portability.  Thanks Jos.

20 years agoFix suggested by Jos for hands.test. Some of the functionality
Martin Pool [Tue, 26 Mar 2002 10:28:57 +0000 (10:28 +0000)]
Fix suggested by Jos for hands.test.  Some of the functionality
previously built into Phil's test was clashing with the runtests.sh
framework.  I think one of the core problems might be that scripts
which don't explicitly "exit 0" have return codes which vary depending
on the particular shell.  (c.f. the autoconf portability guide.)

This might break the Debian test suite but I'm afraid I don't know
enough about how it works yet.  Hopefully eventually it can become
just a wrapper around our 'make check'.

20 years agoUpdated spec file from Jason Haar. Seems to mostly just change the
Martin Pool [Tue, 26 Mar 2002 05:15:09 +0000 (05:15 +0000)]
Updated spec file from Jason Haar.  Seems to mostly just change the
path for manuals, and bumps the version.

20 years agoIgnore autoconf cache. (??)
Martin Pool [Tue, 26 Mar 2002 01:27:24 +0000 (01:27 +0000)]
Ignore autoconf cache. (??)

20 years agoJos points out that test -L is still broken on Solaris. Now we try up
Martin Pool [Tue, 26 Mar 2002 01:25:47 +0000 (01:25 +0000)]
Jos points out that test -L is still broken on Solaris.  Now we try up
front to detect a command that will work properly, and use that
consistently.

Also, in test report, show setting of $preserve_scratch.

Reset version.

20 years agoBump version to 2.5.5rc1.
Martin Pool [Mon, 25 Mar 2002 23:22:08 +0000 (23:22 +0000)]
Bump version to 2.5.5rc1.

20 years agoAdd note about possible hardlink bug.
Martin Pool [Mon, 25 Mar 2002 23:09:31 +0000 (23:09 +0000)]
Add note about possible hardlink bug.

20 years agoMake the situation w.r.t. dynamically linking zlib and libpopt clear.
Martin Pool [Mon, 25 Mar 2002 09:42:36 +0000 (09:42 +0000)]
Make the situation w.r.t. dynamically linking zlib and libpopt clear.

20 years agoAdd link to Apple bug.
Martin Pool [Mon, 25 Mar 2002 07:29:43 +0000 (07:29 +0000)]
Add link to Apple bug.

20 years agoDoc
Martin Pool [Mon, 25 Mar 2002 07:07:03 +0000 (07:07 +0000)]
Doc

20 years agoHm, strange off-by-one bug.
Martin Pool [Mon, 25 Mar 2002 06:59:17 +0000 (06:59 +0000)]
Hm, strange off-by-one bug.

20 years agoApparently the OS X port of gcc gags on __attribute__.
Martin Pool [Mon, 25 Mar 2002 06:49:08 +0000 (06:49 +0000)]
Apparently the OS X port of gcc gags on __attribute__.

20 years agoIf we discover a hardlink with -vv say what it's a link to.
Martin Pool [Mon, 25 Mar 2002 06:27:44 +0000 (06:27 +0000)]
If we discover a hardlink with -vv say what it's a link to.

20 years agoFix from Jos for batch mode on Solaris.
Martin Pool [Mon, 25 Mar 2002 06:06:29 +0000 (06:06 +0000)]
Fix from Jos for batch mode on Solaris.

20 years agoDisambiguate hard link messages.
Martin Pool [Mon, 25 Mar 2002 05:54:31 +0000 (05:54 +0000)]
Disambiguate hard link messages.

20 years agoApparently SGI make doesn't like $< in non-implicit rules.
Martin Pool [Mon, 25 Mar 2002 04:36:56 +0000 (04:36 +0000)]
Apparently SGI make doesn't like $< in non-implicit rules.

20 years agoDoc.
Martin Pool [Mon, 25 Mar 2002 04:04:23 +0000 (04:04 +0000)]
Doc.

20 years agoNote about mkdir bug.
Martin Pool [Mon, 25 Mar 2002 03:56:38 +0000 (03:56 +0000)]
Note about mkdir bug.

20 years agoAdd a test case for trim_trailing_slashes, and make it handle other cases.
Martin Pool [Mon, 25 Mar 2002 03:51:17 +0000 (03:51 +0000)]
Add a test case for trim_trailing_slashes, and make it handle other cases.

20 years agoCode that was meant to trim trailing slashes from mkdir() paths
Martin Pool [Mon, 25 Mar 2002 03:29:47 +0000 (03:29 +0000)]
Code that was meant to trim trailing slashes from mkdir() paths
actually did not; fix it.

20 years agoNeed to also delete getgroups when cleaning.
Martin Pool [Mon, 25 Mar 2002 03:26:28 +0000 (03:26 +0000)]
Need to also delete getgroups when cleaning.

20 years agoDefine NGROUPS if not already done.
Martin Pool [Mon, 25 Mar 2002 03:18:36 +0000 (03:18 +0000)]
Define NGROUPS if not already done.

20 years agoClean testtmp*, because we now put tests in their own directories.
Martin Pool [Mon, 25 Mar 2002 03:16:35 +0000 (03:16 +0000)]
Clean testtmp*, because we now put tests in their own directories.

Add "make cleantests"

20 years agoChange chgrp.test to use our getgroups rather than the system's.
Martin Pool [Mon, 25 Mar 2002 03:01:37 +0000 (03:01 +0000)]
Change chgrp.test to use our getgroups rather than the system's.

20 years agoInitial revision.
Martin Pool [Mon, 25 Mar 2002 02:58:59 +0000 (02:58 +0000)]
Initial revision.

20 years agoAdd our own little tool to call getgroups(2) because it's too hard to
Martin Pool [Mon, 25 Mar 2002 02:55:52 +0000 (02:55 +0000)]
Add our own little tool to call getgroups(2) because it's too hard to
find a portable shell command that does it.

20 years agoClean up text.
Martin Pool [Fri, 22 Mar 2002 22:36:22 +0000 (22:36 +0000)]
Clean up text.

20 years agoClean up text.
Martin Pool [Fri, 22 Mar 2002 22:33:49 +0000 (22:33 +0000)]
Clean up text.

20 years agoDoc permissions while testing.
Martin Pool [Fri, 22 Mar 2002 06:22:53 +0000 (06:22 +0000)]
Doc permissions while testing.

20 years agoRather than literally "nobody", try using uid/gid = 65534 as
Martin Pool [Fri, 22 Mar 2002 06:12:51 +0000 (06:12 +0000)]
Rather than literally "nobody", try using uid/gid = 65534 as
"nobody".  The existing code kind-of assumes this.

20 years agoBetter messages.
Martin Pool [Fri, 22 Mar 2002 06:09:09 +0000 (06:09 +0000)]
Better messages.

20 years agoProper messages for skipped tests.
Martin Pool [Fri, 22 Mar 2002 06:07:50 +0000 (06:07 +0000)]
Proper messages for skipped tests.

20 years agoIf tests are skipped, explain why.
Martin Pool [Fri, 22 Mar 2002 06:03:46 +0000 (06:03 +0000)]
If tests are skipped, explain why.

20 years agoMore sgml cleanups.
Martin Pool [Fri, 22 Mar 2002 06:02:28 +0000 (06:02 +0000)]
More sgml cleanups.

20 years agoDoc about checkit.
Martin Pool [Fri, 22 Mar 2002 05:59:12 +0000 (05:59 +0000)]
Doc about checkit.

20 years agoAdd /usr/xpg4/bin/ to PATH to help solaris.
Martin Pool [Fri, 22 Mar 2002 05:52:09 +0000 (05:52 +0000)]
Add /usr/xpg4/bin/ to PATH to help solaris.

20 years agoCope on systems without the whoami command.
Martin Pool [Fri, 22 Mar 2002 05:20:47 +0000 (05:20 +0000)]
Cope on systems without the whoami command.

20 years agoIf there's an error in start_socket_client, print an explanation as
Martin Pool [Fri, 22 Mar 2002 05:19:19 +0000 (05:19 +0000)]
If there's an error in start_socket_client, print an explanation as
well as failing.

Doc.

Trying to work out why daemon-gzip-download.test fails on SCO with

  rsync error: unexplained error (code 190) at main.c(886)

20 years agoDoc.
Martin Pool [Fri, 22 Mar 2002 05:14:44 +0000 (05:14 +0000)]
Doc.

20 years agoNotes on logging etc
Martin Pool [Fri, 22 Mar 2002 05:11:39 +0000 (05:11 +0000)]
Notes on logging etc

20 years agoDoc.
Martin Pool [Fri, 22 Mar 2002 05:08:53 +0000 (05:08 +0000)]
Doc.

20 years agoUse `id -G` rather than `groups` to get a list of groups for this
Martin Pool [Fri, 22 Mar 2002 05:06:36 +0000 (05:06 +0000)]
Use `id -G` rather than `groups` to get a list of groups for this
user, so that we can cope on systems like Cygwin that tend to have
group names containing spaces.

20 years ago * Make "make install-strip" works properly, and "make install"
Martin Pool [Wed, 20 Mar 2002 05:53:40 +0000 (05:53 +0000)]
* Make "make install-strip" works properly, and "make install"
      accepts a DESTDIR variable for help in building binary packages.
      (Peter Breitenlohner)

20 years agoPatch from Paul Haas:
Martin Pool [Wed, 20 Mar 2002 01:09:49 +0000 (01:09 +0000)]
Patch from Paul Haas:

    * Fix situation where failure to fork (e.g. because out of process
      slots) would cause rsync to kill all processes owned by the
      current user.  Yes, really!  (Paul Haas, Martin Pool)

Also, add a little more documentation and paranoia to make sure we
never call kill(2) with a negative pid.

20 years agoNow that whole_file and no_whole_file are separate variables, have the
David Dykstra [Tue, 19 Mar 2002 20:16:42 +0000 (20:16 +0000)]
Now that whole_file and no_whole_file are separate variables, have the
--whole-file and --no-whole-file options set/reset both variables so if
more than one option is specified the last one will be the one honored.

20 years agoClean up sgml.
Martin Pool [Tue, 19 Mar 2002 05:52:34 +0000 (05:52 +0000)]
Clean up sgml.

Add note about building with gcc.

20 years agotodo: Versions of read() and write() that corrupt the stream, or abruptly fail
Martin Pool [Tue, 19 Mar 2002 05:23:04 +0000 (05:23 +0000)]
todo: Versions of read() and write() that corrupt the stream, or abruptly fail

20 years agoFix --help layout.
Martin Pool [Tue, 19 Mar 2002 05:09:19 +0000 (05:09 +0000)]
Fix --help layout.

20 years agoFix overly long line in version.
Martin Pool [Tue, 19 Mar 2002 05:01:36 +0000 (05:01 +0000)]
Fix overly long line in version.

20 years agoFollow advice from GPL to insert a disclaimer of warranty in the
Martin Pool [Tue, 19 Mar 2002 05:00:05 +0000 (05:00 +0000)]
Follow advice from GPL to insert a disclaimer of warranty in the
version and help information.

20 years agoDoc: Pipe program that makes slow/jerky connections.
Martin Pool [Tue, 19 Mar 2002 04:14:30 +0000 (04:14 +0000)]
Doc: Pipe program that makes slow/jerky connections.

20 years agoInclude all fields in the options table to quieten gcc warnings about
Martin Pool [Tue, 19 Mar 2002 04:10:07 +0000 (04:10 +0000)]
Include all fields in the options table to quieten gcc warnings about
missing initializers.

20 years agoIntentional test of assert :_)
Martin Pool [Tue, 19 Mar 2002 03:59:51 +0000 (03:59 +0000)]
Intentional test of assert :_)

20 years agoPrevious solution for --no-whole-file would probably break when
Martin Pool [Tue, 19 Mar 2002 03:39:42 +0000 (03:39 +0000)]
Previous solution for --no-whole-file would probably break when
connecting to old servers that don't have --no-whole-file.

Instead, we handle no_whole_file and whole_file separately, without
the magic -1 value.  We don't modify no_whole_file after
initialization.

20 years agoSending --no-whole-file is no good because it will not work with old
Martin Pool [Tue, 19 Mar 2002 03:27:33 +0000 (03:27 +0000)]
Sending --no-whole-file is no good because it will not work with old
versions of rsync.

20 years agoTypo.
Martin Pool [Tue, 19 Mar 2002 03:23:08 +0000 (03:23 +0000)]
Typo.

20 years agoFix --whole-file problem that caused it to be the default even for
Martin Pool [Tue, 19 Mar 2002 03:21:53 +0000 (03:21 +0000)]
Fix --whole-file problem that caused it to be the default even for
remote connections.  (Frank Schulz)

<http://lists.samba.org/pipermail/rsync/2002-March/006526.html>

Also, add documentation for whole_file and add assertions that the
value is valid.

20 years agoNeed a test for "refuse options"
Martin Pool [Sat, 16 Mar 2002 09:26:33 +0000 (09:26 +0000)]
Need a test for "refuse options"

20 years agoNote about 100295@bugs.debian.org
Martin Pool [Sat, 16 Mar 2002 09:11:56 +0000 (09:11 +0000)]
Note about 100295@bugs.debian.org

20 years agoMake sure that freeaddrinfo is called on all code paths leading away
Martin Pool [Sat, 16 Mar 2002 09:00:44 +0000 (09:00 +0000)]
Make sure that freeaddrinfo is called on all code paths leading away
from a call to getaddrinfo.  (Dave Dykstra)
<20011219085021.A23107@lucent.com>

20 years agoDoc: Note from Dave Dykstra that getaddrinfo calls must be paired with
Martin Pool [Sat, 16 Mar 2002 08:23:08 +0000 (08:23 +0000)]
Doc: Note from Dave Dykstra that getaddrinfo calls must be paired with
freeaddrinfo().

20 years agoAdd more rules for make distclean.
Martin Pool [Sat, 16 Mar 2002 08:21:15 +0000 (08:21 +0000)]
Add more rules for make distclean.