rsync/rsync.git
22 years agoCygwin doesn't have setgroups() so probe for the function in configure
David Dykstra [Wed, 27 Feb 2002 23:15:55 +0000 (23:15 +0000)]
Cygwin doesn't have setgroups() so probe for the function in configure
and don't try to call it if it doesn't exist.

22 years agoI had accidentally deleted the case for --include-from when I added
David Dykstra [Wed, 27 Feb 2002 22:49:57 +0000 (22:49 +0000)]
I had accidentally deleted the case for --include-from when I added
the --no-blocking-io and --no-whole-file options.  This adds it back in.

22 years agoTry out DocBook SGML to see if it's easier than Texinfo.
Martin Pool [Mon, 25 Feb 2002 20:07:11 +0000 (20:07 +0000)]
Try out DocBook SGML to see if it's easier than Texinfo.

22 years agoStart of Python code to generate likely-looking pseudo random file
Martin Pool [Mon, 25 Feb 2002 18:54:27 +0000 (18:54 +0000)]
Start of Python code to generate likely-looking pseudo random file
trees to reproducibly test performance on specified size sets.

22 years agoMerge Texinfo onto head.
Martin Pool [Mon, 25 Feb 2002 18:52:02 +0000 (18:52 +0000)]
Merge Texinfo onto head.

22 years agoAdd targets to build documentation from Texinfo.
Martin Pool [Mon, 25 Feb 2002 18:48:25 +0000 (18:48 +0000)]
Add targets to build documentation from Texinfo.

22 years agoMore discussion about zlib.
Martin Pool [Mon, 25 Feb 2002 18:28:37 +0000 (18:28 +0000)]
More discussion about zlib.

22 years agoScrappy notes on hot functions that should be fixed
Martin Pool [Mon, 25 Feb 2002 18:06:33 +0000 (18:06 +0000)]
Scrappy notes on hot functions that should be fixed

22 years agoWith -vv, client shows a message when opening a daemon connection via
Martin Pool [Sat, 23 Feb 2002 01:00:33 +0000 (01:00 +0000)]
With -vv, client shows a message when opening a daemon connection via
an HTTP proxy.  This parallels the recent addition of a log message
for opening ssh connections.

22 years agoWith -vv, client shows a message when opening a daemon connection.
Martin Pool [Sat, 23 Feb 2002 00:57:30 +0000 (00:57 +0000)]
With -vv, client shows a message when opening a daemon connection.
This parallels the recent addition of a log message for opening ssh
connections.

22 years agoAdd UNUSED macro that expands to a parameter attribute annotation on
Martin Pool [Sat, 23 Feb 2002 00:17:50 +0000 (00:17 +0000)]
Add UNUSED macro that expands to a parameter attribute annotation on
gcc, to quieten its worries about parameters that must always be
unused.

22 years agoDoc.
Martin Pool [Sat, 23 Feb 2002 00:12:11 +0000 (00:12 +0000)]
Doc.

22 years agoprint_child_argv can be static.
Martin Pool [Sat, 23 Feb 2002 00:05:06 +0000 (00:05 +0000)]
print_child_argv can be static.

22 years agoMake "make proto" work for VPATH builds.
Martin Pool [Sat, 23 Feb 2002 00:02:07 +0000 (00:02 +0000)]
Make "make proto" work for VPATH builds.

22 years agoRevert 1.134 -- this breaks Net/Free BSD.
Martin Pool [Thu, 21 Feb 2002 00:56:11 +0000 (00:56 +0000)]
Revert 1.134 -- this breaks Net/Free BSD.

22 years agoMake setgroups(0,0) unconditional -- accidentally thinking we have
Martin Pool [Thu, 21 Feb 2002 00:45:48 +0000 (00:45 +0000)]
Make setgroups(0,0) unconditional -- accidentally thinking we have
don't it on a machine that does have supplementary groups would be a
security hole.  If this breaks anything we'll fix it later.

22 years agoAdd bug # for #132272
Martin Pool [Thu, 21 Feb 2002 00:26:06 +0000 (00:26 +0000)]
Add bug # for #132272

22 years agoPatch from Albert Chin to fix getaddrinfo on Tru64 UNIX 5.x.
Martin Pool [Tue, 19 Feb 2002 23:40:47 +0000 (23:40 +0000)]
Patch from Albert Chin to fix getaddrinfo on Tru64 UNIX 5.x.

22 years agoBump version to 2.5.3pre1
Martin Pool [Tue, 19 Feb 2002 02:16:37 +0000 (02:16 +0000)]
Bump version to 2.5.3pre1

22 years agoClean up error message
Martin Pool [Tue, 19 Feb 2002 01:41:20 +0000 (01:41 +0000)]
Clean up error message

22 years agoDoc
Martin Pool [Tue, 19 Feb 2002 01:39:11 +0000 (01:39 +0000)]
Doc

22 years agorsync prefix on mkdir and pushdir error messages.
Martin Pool [Tue, 19 Feb 2002 01:07:24 +0000 (01:07 +0000)]
rsync prefix on mkdir and pushdir error messages.

22 years agoDoc.
Martin Pool [Mon, 18 Feb 2002 23:36:10 +0000 (23:36 +0000)]
Doc.

22 years agoChange shell syntax to try to please Solaris
Martin Pool [Mon, 18 Feb 2002 23:09:50 +0000 (23:09 +0000)]
Change shell syntax to try to please Solaris

22 years agoFix error handling for failing to fork after accepting a connection --
Martin Pool [Mon, 18 Feb 2002 22:58:49 +0000 (22:58 +0000)]
Fix error handling for failing to fork after accepting a connection --
close fd, sleep, then try again.

22 years agoSolaris does not have diff -u.
Martin Pool [Mon, 18 Feb 2002 22:55:21 +0000 (22:55 +0000)]
Solaris does not have diff -u.

22 years agoMust use STRUCT_STAT not "struct stat" to be compatible with other
Martin Pool [Mon, 18 Feb 2002 22:49:00 +0000 (22:49 +0000)]
Must use STRUCT_STAT not "struct stat" to be compatible with other
rsync functions.

22 years agoCope with BSD systems on which mkdir() will not accept a trailing
Martin Pool [Mon, 18 Feb 2002 22:44:23 +0000 (22:44 +0000)]
Cope with BSD systems on which mkdir() will not accept a trailing
slash.

<http://www.opensource.apple.com/bugs/X/BSD%20Kernel/2734739.html>

22 years agoIf the daemon is unable to fork a child to accept a connection, print
Martin Pool [Mon, 18 Feb 2002 22:38:03 +0000 (22:38 +0000)]
If the daemon is unable to fork a child to accept a connection, print
an error message.  (Colin Walters)

22 years agoAdd -vvv trace statement to set_modtime to help with Debian bug
Martin Pool [Mon, 18 Feb 2002 22:25:55 +0000 (22:25 +0000)]
Add -vvv trace statement to set_modtime to help with Debian bug
#100295.

22 years agoThis test must specify --times because it compares listings that
Martin Pool [Mon, 18 Feb 2002 22:14:46 +0000 (22:14 +0000)]
This test must specify --times because it compares listings that
include mtimes.

22 years agoFix bug that made tls.o not be removed by 'make clean'.
Martin Pool [Mon, 18 Feb 2002 22:07:44 +0000 (22:07 +0000)]
Fix bug that made tls.o not be removed by 'make clean'.

22 years agoDoc:
Martin Pool [Mon, 18 Feb 2002 21:46:49 +0000 (21:46 +0000)]
Doc:

  #defiine lchown chown

could be bad on systems which have no lchown and where chown
follows symbollic links.  On such systems it might be better not to
try to chown symlinks at all.

22 years agoIgnore SIGPIPE and allow EPIPE to get through to the program so that
Martin Pool [Mon, 18 Feb 2002 20:06:57 +0000 (20:06 +0000)]
Ignore SIGPIPE and allow EPIPE to get through to the program so that
we don't get stuck in a recursive loop trying to report a broken pipe
across that same broken pipe.  Debian bug #128632 (Colin Walters)

22 years agoFix for rsync server processes hanging around after the client
Martin Pool [Mon, 18 Feb 2002 19:54:00 +0000 (19:54 +0000)]
Fix for rsync server processes hanging around after the client
unexpectedly disconnects.  (Colin Walters) (Debian bug #128632)

22 years agorwrite: Doc.
Martin Pool [Mon, 18 Feb 2002 19:51:12 +0000 (19:51 +0000)]
rwrite: Doc.

22 years agoDocument multiplex stuff.
Martin Pool [Mon, 18 Feb 2002 19:44:04 +0000 (19:44 +0000)]
Document multiplex stuff.

22 years agoDoc.
Martin Pool [Mon, 18 Feb 2002 19:10:28 +0000 (19:10 +0000)]
Doc.

22 years agoIf a daemon prints an error message of @ERROR, have the client treat the
David Dykstra [Mon, 18 Feb 2002 18:29:48 +0000 (18:29 +0000)]
If a daemon prints an error message of @ERROR, have the client treat the
message as an FERROR rather than an FINFO.

22 years agoAdd item about fixing "out of memory in flist_expand" on Sunos4.
David Dykstra [Thu, 14 Feb 2002 15:27:55 +0000 (15:27 +0000)]
Add item about fixing "out of memory in flist_expand" on Sunos4.

22 years agoAdded the two most important bug fixes to NEWS to make sure they're not
David Dykstra [Wed, 13 Feb 2002 18:57:06 +0000 (18:57 +0000)]
Added the two most important bug fixes to NEWS to make sure they're not
forgotten for the next release.

22 years agoPatch from Jos Backus <josb@cncdsl.com> to use HAVE_SOCKADDR_LEN rather
David Dykstra [Wed, 13 Feb 2002 18:45:17 +0000 (18:45 +0000)]
Patch from Jos Backus <josb@cncdsl.com> to use HAVE_SOCKADDR_LEN rather
than HAVE_SOCK_SIN_LEN around use of sin_len.  Correct usage was already
in place in clientname.c.

22 years agoSuggested patch from Jim Ogilvie <jogilvie@us.ibm.com> to print out the
David Dykstra [Wed, 13 Feb 2002 18:42:20 +0000 (18:42 +0000)]
Suggested patch from Jim Ogilvie <jogilvie@us.ibm.com> to print out the
system error message when mkstemp fails.

22 years agoReversing the order of maybe_emit_filelist_progress() and
David Dykstra [Wed, 13 Feb 2002 18:30:27 +0000 (18:30 +0000)]
Reversing the order of maybe_emit_filelist_progress() and
emit_filelist_progress() makes the native compilers on systems
including Solaris and Irix happier.

22 years agoSome systems, notably Sunos4, do not support realloc(NULL, n), so if
David Dykstra [Wed, 13 Feb 2002 18:06:36 +0000 (18:06 +0000)]
Some systems, notably Sunos4, do not support realloc(NULL, n), so if
nothing has yet been malloced in flist_expand(), call malloc instead of
realloc.  Problem introduced in revision 1.106 of flist.c on January 25.

22 years agoAt least change INO64_T and DEV64_T back to just 'int64', not
Martin Pool [Wed, 13 Feb 2002 02:57:55 +0000 (02:57 +0000)]
At least change INO64_T and DEV64_T back to just 'int64', not
'unsigned int64'.  This should fix some compile problems on machines
where int64 is not a simple integer type, but I'm not convinced it is
the ideal fix.

22 years agoFactor out code for filelist progress. Copy&paste considered harmful.
Martin Pool [Wed, 13 Feb 2002 02:44:31 +0000 (02:44 +0000)]
Factor out code for filelist progress.  Copy&paste considered harmful.

Add a little doc about potential optimization of stat() calls.

22 years agoAdd a test that --owner correctly propagates ownership of files for a
Martin Pool [Sat, 9 Feb 2002 07:43:13 +0000 (07:43 +0000)]
Add a test that --owner correctly propagates ownership of files for a
local transfer as root.

22 years agoAdd a test that --group correctly propagates groups of which the local
Martin Pool [Sat, 9 Feb 2002 07:42:37 +0000 (07:42 +0000)]
Add a test that --group correctly propagates groups of which the local
user is a member.

22 years agoAdd $preserve_scratch and $always_log so if you want to see details
Martin Pool [Sat, 9 Feb 2002 03:36:33 +0000 (03:36 +0000)]
Add $preserve_scratch and $always_log so if you want to see details
about successful tests, you can.

22 years agoOops -- have to call setgroups() before giving up root.
Martin Pool [Sat, 9 Feb 2002 03:30:22 +0000 (03:30 +0000)]
Oops -- have to call setgroups() before giving up root.

Doc some of the peculiarities about starting rsyncd as root vs
non-root.

22 years agoMake sure we call setgroups() after setuid(). (Ethan Benson)
Martin Pool [Sat, 9 Feb 2002 02:18:42 +0000 (02:18 +0000)]
Make sure we call setgroups() after setuid().  (Ethan Benson)

22 years agoRemove the "rsync:" prefixes on FINFO messages. Return the "building file
David Dykstra [Thu, 7 Feb 2002 16:36:12 +0000 (16:36 +0000)]
Remove the "rsync:" prefixes on FINFO messages.  Return the "building file
list ... done" to the way it was in 2.5.1 and before when not using -P.
Apply the file list progress messages when receiving files in addition to
sending files.

22 years agoMake batch mode actually work and add man page documentation. From Jos Backus.
David Dykstra [Wed, 6 Feb 2002 21:20:48 +0000 (21:20 +0000)]
Make batch mode actually work and add man page documentation.  From Jos Backus.

22 years agoMerge modified --with-rsh patch: we now determine the default
Martin Pool [Wed, 6 Feb 2002 04:37:09 +0000 (04:37 +0000)]
Merge modified --with-rsh patch: we now determine the default
remote-execution command as follows:

 1) if --with-rsh is specified, use that.

 2) otherwise if remsh is in the path, use that.

 3) otherwise use rsh

If remsh is present, we always modify the order of parameters to suit
it.  This is a bit strange.

22 years agoDoc: Rusty's /*/* exclude hack produces spurious output with -vv.
Martin Pool [Wed, 6 Feb 2002 04:34:40 +0000 (04:34 +0000)]
Doc: Rusty's /*/* exclude hack produces spurious output with -vv.

22 years agoAdd --no-whole-file and --no-blocking-io options
David Dykstra [Tue, 5 Feb 2002 23:05:31 +0000 (23:05 +0000)]
Add --no-whole-file and --no-blocking-io options

22 years agoOnly print the command used to open connections with -vv, not just -v.
Martin Pool [Tue, 5 Feb 2002 00:37:53 +0000 (00:37 +0000)]
Only print the command used to open connections with -vv, not just -v.

22 years agoRoll over NEWS
Martin Pool [Tue, 5 Feb 2002 00:35:31 +0000 (00:35 +0000)]
Roll over NEWS

22 years agoOnly print the command used to open connections with -vv, not just -v.
Martin Pool [Tue, 5 Feb 2002 00:34:03 +0000 (00:34 +0000)]
Only print the command used to open connections with -vv, not just -v.

<Pine.LNX.4.33L2.0201301015260.11155-100000@phong.blorf.net>

22 years agoPatch from wayned so that add_exclude_list produces clearer debugging
Martin Pool [Tue, 5 Feb 2002 00:25:52 +0000 (00:25 +0000)]
Patch from wayned so that add_exclude_list produces clearer debugging
output with -vvv.

22 years agothe signed/unsigned change seems to have caused a logic bug on some
Andrew Tridgell [Sun, 3 Feb 2002 01:38:39 +0000 (01:38 +0000)]
the signed/unsigned change seems to have caused a logic bug on some
systems (only those without large file support perhaps?)

this fixes it

22 years agoBetter explanation of --force. It is applicable whenever --delete is
David Dykstra [Tue, 29 Jan 2002 21:52:57 +0000 (21:52 +0000)]
Better explanation of --force.  It is applicable whenever --delete is
not in effect.

22 years agoA more accurate description of --force as I know it.
David Dykstra [Mon, 28 Jan 2002 21:09:03 +0000 (21:09 +0000)]
A more accurate description of --force as I know it.

22 years agoClarify the --force entry in the rsync man page.
David Dykstra [Mon, 28 Jan 2002 17:06:04 +0000 (17:06 +0000)]
Clarify the --force entry in the rsync man page.

22 years agoOops, version should be just 2.5.2.
Martin Pool [Fri, 25 Jan 2002 23:19:21 +0000 (23:19 +0000)]
Oops, version should be just 2.5.2.

22 years agoBump version to 2.5.3.
Martin Pool [Fri, 25 Jan 2002 23:16:18 +0000 (23:16 +0000)]
Bump version to 2.5.3.

22 years agoMore signedness fixes; should be harmless.
Martin Pool [Fri, 25 Jan 2002 23:07:33 +0000 (23:07 +0000)]
More signedness fixes; should be harmless.

22 years agoio_end_buffering doesn't need (or use) it's fd parameter: there's only
Martin Pool [Fri, 25 Jan 2002 23:01:50 +0000 (23:01 +0000)]
io_end_buffering doesn't need (or use) it's fd parameter: there's only
one multiplexed stream.

22 years agoDEV64_t and INO64_T should probably be unsigned
Martin Pool [Fri, 25 Jan 2002 23:00:21 +0000 (23:00 +0000)]
DEV64_t and INO64_T should probably be unsigned

22 years agocheck_name doesn't need a socklen_t, because it knows what is inside
Martin Pool [Fri, 25 Jan 2002 22:59:37 +0000 (22:59 +0000)]
check_name doesn't need a socklen_t, because it knows what is inside
each sockaddr type.

22 years agoAdd test case for device nodes. This test will be skipped unless you
Martin Pool [Fri, 25 Jan 2002 10:56:43 +0000 (10:56 +0000)]
Add test case for device nodes.  This test will be skipped unless you
run "make check" as root.

22 years agoWhen comparing directories, use `find .` to call diff, rather than
Martin Pool [Fri, 25 Jan 2002 10:55:59 +0000 (10:55 +0000)]
When comparing directories, use `find .` to call diff, rather than
diff -r.  Two reasons: diff -r might not work everywhere, and it also
might complain about nonregular files.

22 years agoAdd test_skipped function.
Martin Pool [Fri, 25 Jan 2002 10:47:47 +0000 (10:47 +0000)]
Add test_skipped function.

22 years agoNew --ignore-existing option, patch previously distributed with
Martin Pool [Fri, 25 Jan 2002 10:42:23 +0000 (10:42 +0000)]
New --ignore-existing option, patch previously distributed with
Vipul's Razor.  (Debian #124286)

22 years agoFix for device nodes. (dann frazier) (Debian #129135)
Martin Pool [Fri, 25 Jan 2002 10:39:08 +0000 (10:39 +0000)]
Fix for device nodes.  (dann frazier)   (Debian #129135)

22 years agoFix for device nodes. (dann frazier) (Debian #129135)
Martin Pool [Fri, 25 Jan 2002 10:28:13 +0000 (10:28 +0000)]
Fix for device nodes.  (dann frazier)   (Debian #129135)

22 years agoAnother DEV64_T change.
Martin Pool [Fri, 25 Jan 2002 10:16:11 +0000 (10:16 +0000)]
Another DEV64_T change.

22 years agoWith -vv, when the file list grows, show a message.
Martin Pool [Fri, 25 Jan 2002 10:12:36 +0000 (10:12 +0000)]
With -vv, when the file list grows, show a message.

22 years agoWith -vv, when the file list grows, show a message.
Martin Pool [Fri, 25 Jan 2002 10:12:02 +0000 (10:12 +0000)]
With -vv, when the file list grows, show a message.

22 years agoUndo overzealous deletion.
Martin Pool [Fri, 25 Jan 2002 10:09:00 +0000 (10:09 +0000)]
Undo overzealous deletion.

22 years agoAdd dummy show_flist_stats().
Martin Pool [Fri, 25 Jan 2002 10:06:36 +0000 (10:06 +0000)]
Add dummy show_flist_stats().

22 years agoFactor out code to grow the file list into a common location.
Martin Pool [Fri, 25 Jan 2002 10:05:49 +0000 (10:05 +0000)]
Factor out code to grow the file list into a common location.

22 years agoindent -kr -i8
Martin Pool [Fri, 25 Jan 2002 09:59:00 +0000 (09:59 +0000)]
indent -kr -i8

22 years agoAdd link to the message that introduced string_area.
Martin Pool [Fri, 25 Jan 2002 09:54:21 +0000 (09:54 +0000)]
Add link to the message that introduced string_area.

22 years agomallinfo is implemented.
Martin Pool [Fri, 25 Jan 2002 09:45:45 +0000 (09:45 +0000)]
mallinfo is implemented.

22 years agoNotes about flist.
Martin Pool [Fri, 25 Jan 2002 09:44:17 +0000 (09:44 +0000)]
Notes about flist.

22 years agoIgnore autoconf fluff.
Martin Pool [Fri, 25 Jan 2002 02:53:48 +0000 (02:53 +0000)]
Ignore autoconf fluff.

22 years agoAdd code to compare sin6_addrs.
Martin Pool [Fri, 25 Jan 2002 02:45:09 +0000 (02:45 +0000)]
Add code to compare sin6_addrs.

22 years agoBack out last change -- to see whether an address is spoofed, we don't
Martin Pool [Fri, 25 Jan 2002 02:43:35 +0000 (02:43 +0000)]
Back out last change -- to see whether an address is spoofed, we don't
want to look at the whole sockaddr, but rather just at the sin_addr
that it contains.

Also fix silly bug where ai_flags was set incorrectly for getaddrinfo.

22 years agocompare_addrinfo_sockaddr: Add code to compare AF_INET6 addresses.
Martin Pool [Fri, 25 Jan 2002 02:37:20 +0000 (02:37 +0000)]
compare_addrinfo_sockaddr: Add code to compare AF_INET6 addresses.

22 years agoSplit out code to compare addrinfo and sockaddr into it's own
Martin Pool [Fri, 25 Jan 2002 02:29:53 +0000 (02:29 +0000)]
Split out code to compare addrinfo and sockaddr into it's own
function.  The comparison cannot be done just byte-by-byte, because
different parts of the sockaddr will be meaningful depending on the
protocol.  It looks like on some systems the library sets the unused
parts to 0, but this is not reliable.  IPv6 not implemented yet.

22 years agoDoc.
Martin Pool [Fri, 25 Jan 2002 02:15:58 +0000 (02:15 +0000)]
Doc.

22 years agoThe name resolution stuff is getting complicated -- split it out into
Martin Pool [Fri, 25 Jan 2002 02:13:04 +0000 (02:13 +0000)]
The name resolution stuff is getting complicated -- split it out into
its own file.

22 years agoVerbose messages for spoof check... doesn't work on old linux libc?
Martin Pool [Thu, 24 Jan 2002 09:42:52 +0000 (09:42 +0000)]
Verbose messages for spoof check... doesn't work on old linux libc?

22 years agoWhen doing a name->addr translation to check for spoofing, give the
Martin Pool [Thu, 24 Jan 2002 08:52:28 +0000 (08:52 +0000)]
When doing a name->addr translation to check for spoofing, give the
resolver the address family of the original address as a hint, so that
we're more likely to find the correct A or AAAA record.,

22 years agoMessage on successful configuration.
Martin Pool [Thu, 24 Jan 2002 08:50:35 +0000 (08:50 +0000)]
Message on successful configuration.

22 years agoFix comment.
Martin Pool [Thu, 24 Jan 2002 08:42:21 +0000 (08:42 +0000)]
Fix comment.

Bump version to 2.5.2pre3

22 years agoName resolution on machines supporting IPv6 is improved.
Martin Pool [Thu, 24 Jan 2002 08:20:51 +0000 (08:20 +0000)]
Name resolution on machines supporting IPv6 is improved.

22 years agoignore gmon.out
Martin Pool [Thu, 24 Jan 2002 08:19:28 +0000 (08:19 +0000)]
ignore gmon.out