Matt McCutchen
bb499bd7a0
Handle simultaneous arrival of multiple connections.
2009-01-13 09:42:54 -08:00
Wayne Davison
b3bf9b9df9
Update the copyright year.
2009-01-03 10:57:14 -08:00
Wayne Davison
9411292489
Fixed a bunch of "warn_unused_result" compiler warnings.
2008-11-09 18:56:21 -08:00
Wayne Davison
5dd14f0c33
Split up the ifuncs.h file into 3 .h files.
2008-09-01 19:11:36 -07:00
Wayne Davison
951e826b75
Added the --info=FLAGS an --debug=FLAGS options, which allows
...
fine-grained output control (in addition to the coarse -v).
2008-07-13 20:51:08 -07:00
Wayne Davison
1c3e6e8b26
Moved the setting of the socket options before the connect().
2008-04-15 08:34:17 -07:00
Wayne Davison
d3d07a5e86
Include 2008 in the copyright years.
2008-03-01 12:01:41 -08:00
Wayne Davison
ba22c9e219
Adding --contimeout=SECONDS option.
2007-11-28 00:28:26 -08:00
Wayne Davison
5621e5105a
Moved become_daemon() into clientserver.c.
2007-09-30 06:57:12 +00:00
Wayne Davison
1b42f628f4
Moved inline functions from rsync.h into ifuncs.h.
2007-09-22 16:52:58 +00:00
Wayne Davison
4eff3051a0
Fixed a null-pointer dereference pointed out by Olivier Thauvin.
2007-08-16 01:22:46 +00:00
Wayne Davison
e5f1a96ff8
Added support for a %H escape in the value of the RSYNC_CONNECT_PROG
...
environment variable.
2007-08-11 16:20:56 +00:00
Wayne Davison
8e41b68e8f
Tweaking the license text a bit more.
2007-07-10 13:55:49 +00:00
Wayne Davison
4fd842f98d
Switching to GPL 3.
2007-07-07 05:33:14 +00:00
Wayne Davison
332cf6df7c
The --iconv option has now made it to the trunk.
2007-04-26 05:53:13 +00:00
Wayne Davison
ba2133d6ad
Further modifications to the copyright comment section.
2007-02-04 14:54:58 +00:00
Wayne Davison
2dc7b8bd0e
Got rid of type-casting into isFOO() and toFOO() functions by
...
using static inline functions that take a signed char pointer.
2006-11-09 02:39:29 +00:00
Wayne Davison
0f5c1c193a
Need to include netinet/tcp.h to get TCP_NODELAY defined.
2006-10-31 19:21:57 +00:00
Wayne Davison
e7c67065c0
Updated the FSF's address to an even newer one.
2006-04-25 23:51:12 +00:00
Wayne Davison
0f78b81511
- Updated the address for the FSF in the opening comment.
...
- Standardized the format of the opening comment, including adding a
brief description of what's in the file for those that lacked it.
- Added some missing copyright lines.
- Some minor whitespace tweaks (in a few of the files).
2006-04-25 20:23:34 +00:00
Wayne Davison
5899b8cf3e
Moved the include of netinet/ip.h here along with its apparent
...
prerequisite, netinet/in_systm.h .
2006-04-11 00:48:28 +00:00
Wayne Davison
e2d774cdd7
Improved the bind()-failure message to mention what family failed.
2006-04-02 21:15:37 +00:00
Wayne Davison
5c6d46329b
If open_socket_in() fails, we now log the reasons why.
2006-03-22 17:48:59 +00:00
Wayne Davison
8030b28ff8
Make extra sure that authbuf can't overflow.
2006-03-07 08:46:29 +00:00
Wayne Davison
6854bf69a8
Call base4_encode() with "1" for its new "pad" arg so that the
...
Proxy-Authorization header is properly padded with trailing '='
chars.
2006-03-06 18:22:26 +00:00
Wayne Davison
44e604f416
Simplified the conditional prior to the SIGACTION code.
2006-02-03 18:46:38 +00:00
Wayne Davison
2b28968dfb
Call SIGACTION() instead of signal().
2006-02-02 02:39:25 +00:00
Wayne Davison
86fc7e6880
Got rid of a superfluous newline.
2005-11-10 16:47:52 +00:00
Wayne Davison
8ee6adefe3
Call logfile_close() and logfile_reopen() (tweaked function names).
2005-04-14 16:08:12 +00:00
Wayne Davison
4313d6f9c0
Changed the bind_address local variables to be named bind_addr
...
in order to avoid confusion with the bind_address global.
2005-04-05 05:52:49 +00:00
Wayne Davison
b31c92edcc
- Look for last '@' in a user@host spec.
2005-03-01 03:39:32 +00:00
Wayne Davison
1da05366ad
The daemon loop needs to call log_open() because it called log_close().
2005-02-18 17:34:09 +00:00
Wayne Davison
4f5b0756df
John E. Malmberg convinced me to standardize on #ifs for defined
...
values instead of non-zero.
2005-02-14 00:53:43 +00:00
Wayne Davison
4ccfd96cfe
Tweaked one or more warning messages.
2005-01-31 19:13:19 +00:00
Wayne Davison
92e1aeede7
Got rid of an unreachable free() call.
2005-01-28 21:07:05 +00:00
Wayne Davison
25ff04417e
Use "#if" (not "#ifdef") for configure-defined macros.
2005-01-28 18:50:49 +00:00
Wayne Davison
4c8f6b6a06
No need to call log_open() in start_accept_loop() because
...
rsync_module() calls log_init() before it gives up its privileges.
2005-01-28 17:33:57 +00:00
Wayne Davison
880570f228
Added a missing newline to an error message.
2005-01-27 21:45:32 +00:00
Wayne Davison
eb8ffa9040
Actually, since the close calls shouldn't fail (now that listener
...
is properly set to -1 on close), we don't really need to play the
save-errno game after all.
2004-09-16 17:22:31 +00:00
Wayne Davison
ab217f7ffa
- Set "listener" to -1 after we close it so that the error-handler
...
doesn't try to re-close it.
- Set blocking I/O before the second (final) connect() call.
2004-09-16 17:09:46 +00:00
Wayne Davison
dcd08dc51c
Restored the code in the IPV6_V6ONLY section that checks the
...
return value from setsockopt() with one improvement: if the
user has used --ipv6 (-6) we don't discard the IPv6 socket.
This should help people using older Linux kernels that don't
implement IPv6 support quite right.
2004-06-20 19:51:19 +00:00
Wayne Davison
d62bcc17f3
Changed rprintf() calls that included strerror() to use rsyserr().
2004-05-15 19:31:10 +00:00
Wayne Davison
c5bf99a1c2
Correct a typo.
2004-05-06 21:29:36 +00:00
Wayne Davison
2c7d63c765
- Updated the comments for open_socket_in().
...
- Changed open_socket_in() to return an array of ints with a trailing -1
value to indicate the end of the list.
- Use the out_of_memory() routine to complain about no memory.
- Undid the recent IPV6_V6ONLY change, as I think it would prevent the
use of IPv6 sockets on some older systems.
- If we get an EADDRINUSE error and this is not the first socket in the
list, suggest that the user try --ipv4 or --ipv6.
- When forking, the child now closes all the open bound sockets, not just
one of them (I'm not talking about the fd from accept(), obviously).
2004-05-06 21:26:46 +00:00
Wayne Davison
d8d36af452
If we need to set IPV6_V6ONLY but setsockopt() fails, close the
...
socket and skip it.
2004-05-05 22:17:48 +00:00
Wayne Davison
df5cd107a5
Moved (and expanded) a verbose message from clientserver.c to socket.c
...
to solve an old FIXME comment.
2004-04-14 16:51:48 +00:00
Wayne Davison
cb984e620e
In sigchild_handler(), finish with waitpid() before reinitializing
...
the SIGCHLD handling.
2004-03-29 16:30:53 +00:00
Wayne Davison
16f72adc49
Changed HAVE_SOCKADDR_SIN_LEN to HAVE_SOCKADDR_IN_LEN.
2004-03-16 01:26:31 +00:00
Wayne Davison
ac7aa92290
Use new HAVE_SOCKADDR_SIN_LEN define (replaces HAVE_SOCKADDR_LEN).
2004-02-27 07:22:40 +00:00
Wayne Davison
893c4cc056
Use new stringjoin() function.
2004-01-20 04:56:20 +00:00