Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added the relnamecache structure and improved some variable names.
[rsync/rsync.git]
/
socket.c
diff --git
a/socket.c
b/socket.c
index
9017007
..
ca8c561
100644
(file)
--- a/
socket.c
+++ b/
socket.c
@@
-25,6
+25,7
@@
* emulate it using the KAME implementation. */
#include "rsync.h"
* emulate it using the KAME implementation. */
#include "rsync.h"
+#include "ifuncs.h"
#include <netinet/in_systm.h>
#include <netinet/ip.h>
#include <netinet/tcp.h>
#include <netinet/in_systm.h>
#include <netinet/ip.h>
#include <netinet/tcp.h>
@@
-300,7
+301,7
@@
int open_socket_out_wrapped(char *host, int port, const char *bind_addr,
{
char *prog = getenv("RSYNC_CONNECT_PROG");
{
char *prog = getenv("RSYNC_CONNECT_PROG");
- if (strchr(prog, '%')) {
+ if (
prog &&
strchr(prog, '%')) {
int hlen = strlen(host);
int len = strlen(prog) + 1;
char *f, *t;
int hlen = strlen(host);
int len = strlen(prog) + 1;
char *f, *t;