Displaying 2 results from an estimated 2 matches for "dash_l_set".
2004 Oct 13
0
[Bug 1924] New: unable to rsync between a PC with cygwin and a unix machine using rsh
...----------------------------------------------------
/* Start the remote shell. cmd may be NULL to use the default. */
static pid_t do_cmd(char *cmd, char *machine, char *user, char *path,
int *f_in, int *f_out)
{
int i, argc = 0;
char *args[100];
pid_t ret;
char *tok, *dir = NULL;
int dash_l_set = 0;
/* Start ofc PFC patched section
to handle the of the whole command under cygwin rsh
----------------------------------------------------
*/
char *other_args[100] ;
int other_argc = 0 ;
char the_cmd[1024] ;
/* End of PFC patched section */
if (!read_batch &&...
2004 May 29
1
[patch] Filename conversion
...5:54:47.000000000 +0200
+++ rsync-2.6.2-fnameconv.clean/main.c 2004-05-29 21:17:09.000000000 +0300
@@ -217,7 +217,7 @@ static pid_t do_cmd(char *cmd, char *mac
int *f_in, int *f_out)
{
int i, argc = 0;
- char *args[100];
+ char *args[MAX_ARGS];
pid_t ret;
char *tok, *dir = NULL;
int dash_l_set = 0;
@@ -232,8 +232,13 @@ static pid_t do_cmd(char *cmd, char *mac
if (!cmd)
goto oom;
- for (tok = strtok(cmd, " "); tok; tok = strtok(NULL, " "))
+ for (tok = strtok(cmd, " "); tok; tok = strtok(NULL, " ")) {
+ if (argc>=MAX_ARGS) {
+ rpr...