search for: sargc

Displaying 3 results from an estimated 3 matches for "sargc".

Did you mean: argc
2001 Nov 20
2
rsync server over SSH [includes code patches]
...retrieving revision 1.4 diff -c -b -r1.1.1.4 -r1.4 *** clientserver.c 2001/10/19 04:09:27 1.1.1.4 --- clientserver.c 2001/11/19 20:31:47 1.4 *************** *** 29,48 **** int start_socket_client(char *host, char *path, int argc, char *argv[]) { ! int fd, i; ! char *sargs[MAX_ARGS]; ! int sargc=0; ! char line[MAXPATHLEN]; char *p, *user=NULL; - extern int remote_version; - extern int am_sender; extern struct in_addr socket_address; - - if (argc == 0 && !am_sender) { - extern int list_only; - list_only = 1; - } if (*path == '/') { rprintf(FERROR,&q...
2004 Jul 12
2
[PATCH] Batch-mode rewrite
...n int write_batch; + extern int batch_fd; char *auth_user; *************** *** 97,109 **** return ret < 0? ret : client_run(fd, fd, -1, argc, argv); } ! int start_inband_exchange(char *user, char *path, int f_in, int f_out, int argc) { int i; char *sargs[MAX_ARGS]; int sargc = 0; char line[MAXPATHLEN]; char *p; if (argc == 0 && !am_sender) list_only = 1; --- 99,121 ---- return ret < 0? ret : client_run(fd, fd, -1, argc, argv); } ! /* start_inband_exchange() contains an unfortunate write_batch ! * hack/workaround. The issue here is t...
2001 Aug 22
1
@RSYNC EXIT / @RSYNC EOF
...than sending a proper EXIT command. Yuck. */ + kludge_around_eof= True; + if (!read_line(fd, line, sizeof(line)-1)) { return -1; } @@ -122,6 +127,7 @@ int start_socket_client(char *host, char rprintf(FINFO,"%s\n", line); } + kludge_around_eof = False; for (i=0;i<sargc;i++) { io_printf(fd,"%s\n", sargs[i]); Index: io.c =================================================================== RCS file: /data/cvs/rsync/io.c,v retrieving revision 1.85 diff -u -p -r1.85 io.c --- io.c 7 May 2001 06:59:37 -0000 1.85 +++ io.c 22 Aug 2001 04:15:12 -0000 @@ -2,6 +2...