Commit Graph
1144 Commits
Author SHA1 Message Date
Martin Pool 2e1d43deb2 Ignore autoconf fluff. 2002-01-25 02:53:48 +00:00
Martin Pool 6780f72000 Add code to compare sin6_addrs. v2.5.2pre3 2002-01-25 02:45:09 +00:00
Martin Pool 39e01d2d4b 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.
2002-01-25 02:43:35 +00:00
Martin Pool f75502950b compare_addrinfo_sockaddr: Add code to compare AF_INET6 addresses. 2002-01-25 02:37:20 +00:00
Martin Pool 974f27e7e9 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.
2002-01-25 02:29:53 +00:00
Martin Pool af32f69eb0 Doc. 2002-01-25 02:15:58 +00:00
Martin Pool 0cd2f40764 The name resolution stuff is getting complicated -- split it out into
its own file.
2002-01-25 02:13:04 +00:00
Martin Pool 0d95824995 Verbose messages for spoof check... doesn't work on old linux libc? 2002-01-24 09:42:52 +00:00
Martin Pool bbc09ffba9 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.,
2002-01-24 08:52:28 +00:00
Martin Pool a4677968cf Message on successful configuration. 2002-01-24 08:50:35 +00:00
Martin Pool 03b1cddc31 Fix comment.
Bump version to 2.5.2pre3
2002-01-24 08:42:21 +00:00
Martin Pool 9c2dd04993 Name resolution on machines supporting IPv6 is improved. v2.5.2pre2 2002-01-24 08:20:51 +00:00
Martin Pool a84a93fafe ignore gmon.out 2002-01-24 08:19:28 +00:00
Martin Pool 5fdcc397b1 Fix getpeername call. 2002-01-24 08:16:27 +00:00
Martin Pool 5664871e5f size_t fix. 2002-01-24 08:09:46 +00:00
Martin Pool 55d9e0fada write_batch_csums_file: Opaque IO buffers should be void*. 2002-01-24 08:08:56 +00:00
Martin Pool 929e3011c6 Fix cast that was breaking HP/UX. 2002-01-24 08:07:35 +00:00
Martin Pool 07d70ff560 Move both calls to getpeername into a common wrapper function that
handles IPV4_MAPPED addresses.
2002-01-24 08:05:22 +00:00
Martin Pool 58c2960960 Must get declarations from addrinfo.h before prototypes. 2002-01-24 07:22:38 +00:00
Martin Pool 00d943d513 Another size_t warning 2002-01-24 05:57:49 +00:00
Martin Pool 71c780da06 check_name: Print out name *before* clobbering it. 2002-01-24 05:57:22 +00:00
Martin Pool 3b18cba889 Try to fix error on Solaris:
+ [ -f /export/home/build/build_farm/rsync/testtmp.symlink-ignore/to/referent ]
+ [ -d /export/home/build/build_farm/rsync/testtmp.symlink-ignore/to/from ]
+ [ -L /export/home/build/build_farm/rsync/testtmp.symlink-ignore/to/dangling ]
./testsuite/symlink-ignore.test: test: argument expected

Solaris says it supports -L, so I'm not sure what's happening...
2002-01-24 05:54:47 +00:00
Martin Pool 2974e20550 If name lookup fails, then show the relevant IP address in the error message. 2002-01-24 05:41:46 +00:00
Martin Pool 430d841a2c At the connections that just get a list of modules are not logged,
but they should be.
2002-01-24 04:49:07 +00:00
Martin Pool 31ec50d7da rsync_module: If host-based access fails, show the exact name/address
used for the check in the error message.  (Just in case...)
2002-01-24 04:41:09 +00:00
Martin Pool 5ad0e46f08 Show command used to start connection child. 2002-01-24 04:36:00 +00:00
Martin Pool 1b5814e338 indent -kr -i8 2002-01-24 04:26:55 +00:00
Martin Pool 255810c0d6 Doc.
Oops, connection program message was in the wrong place.
2002-01-24 04:24:12 +00:00
Martin Pool 5d2640376e Show helper program with -v when opening connection.
Doc.
2002-01-24 04:21:42 +00:00
Martin Pool d02984bbb7 Doc. 2002-01-24 04:19:41 +00:00
Martin Pool 0f9555207a Fix const 2002-01-24 04:07:07 +00:00
Martin Pool 885448d74c Unbreak the old behavior of using UNKNOWN as a hostname if any of the
addr->name->addr translations fail, because people might count on this
in "hosts deny" lines.
2002-01-24 04:03:06 +00:00
Martin Pool b14545b3ff Fix inverted sense of error check. 2002-01-24 03:31:28 +00:00
Martin Pool 9a5a86734f Refactor client_name() into smaller functions.
Better messages for DNS failure.

If we can get a reverse name for an IP address, but not confirm that
it is correct using a forward lookup then we still proceed to use the
name, but also emit a warning.
2002-01-24 03:28:20 +00:00
Martin Pool d1d1505045 Doc. 2002-01-24 03:03:20 +00:00
Martin Pool 144ce1dc21 Bump version to 2.5.2pre2. 2002-01-24 03:01:42 +00:00
Martin Pool aa126974ba log_formatted: Fill the log buffer with nuls to make sure we cannot
accidentally leave the string unterminated.
2002-01-24 02:41:38 +00:00
Martin Pool 707de53457 Another harmless size_t warning. 2002-01-24 02:33:45 +00:00
Martin Pool 10f83cf43d Doc. v2.5.2pre1 2002-01-23 08:08:48 +00:00
Martin Pool 59ee743c5f More size_t fixes. 2002-01-23 08:04:54 +00:00
Martin Pool d54765c442 Just for variety we have some socklen_t fixes too. 2002-01-23 07:57:43 +00:00
Martin Pool 91262d5d3e Refactor code in send_sums to remove repeated ternaries. 2002-01-23 07:54:13 +00:00
Martin Pool 1c09c743b1 indent -kr -i8 2002-01-23 07:52:52 +00:00
Martin Pool 06ce139fcc Fix more ints that ought to be size_t's. 2002-01-23 07:48:35 +00:00
Martin Pool fae5bb3183 Doc.
do_hard_links() actually only looks at the global hardlink table, so
it can be a (void) fn.  (Another gcc warning...)
2002-01-23 07:42:30 +00:00
Martin Pool 6fe25398d6 Fix another int that ought to be a size_t. 2002-01-23 07:36:23 +00:00
Martin Pool 909ce14fc4 indent -kr -i8 2002-01-23 07:34:26 +00:00
Martin Pool 935b920120 Another signedness fix to quieten Sun cc warning. 2002-01-23 07:32:29 +00:00
Martin Pool b31427cd4a Skip this for now; it's a known bug 2002-01-23 07:28:38 +00:00
Martin Pool e2e3379d79 Bump version to 2.5.2pre1. 2002-01-23 07:22:03 +00:00