search for: open_socket_out_wrap

Displaying 2 results from an estimated 2 matches for "open_socket_out_wrap".

2004 Dec 06
1
port and double-colon
...ing revision 1.132 diff -u -r1.132 clientserver.c --- clientserver.c 27 Nov 2004 18:24:12 -0000 1.132 +++ clientserver.c 6 Dec 2004 07:38:29 -0000 @@ -88,6 +88,9 @@ *p = '\0'; } + if (rsync_port == 0 && (rsync_port = lp_rsync_port()) == 0) + rsync_port = RSYNC_PORT; + fd = open_socket_out_wrapped(host, rsync_port, bind_address, default_af_hint); if (fd == -1) Index: options.c =================================================================== RCS file: /cvsroot/rsync/options.c,v retrieving revision 1.190 diff -u -r1.190 options.c --- options.c 27 Nov 2004 18:24:12 -0000 1.190...
2007 Aug 15
1
rsync 3 (cvs) segfault if $RSYNC_CONNECT_PROG is not set
...ket.c =================================================================== RCS file: /cvsroot/rsync/socket.c,v retrieving revision 1.130 diff -u -b -B -w -p -p -u -r1.130 socket.c --- socket.c 11 Aug 2007 16:20:56 -0000 1.130 +++ socket.c 15 Aug 2007 04:17:16 -0000 @@ -300,7 +300,7 @@ int open_socket_out_wrapped(char *host, { 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; Regar...