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
If we turn off FLAG_HLINKED, set FLAG_HLINK_DONE so that any
[rsync/rsync.git]
/
socket.c
diff --git
a/socket.c
b/socket.c
index
9017007
..
51c07f7
100644
(file)
--- a/
socket.c
+++ b/
socket.c
@@
-300,7
+300,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;