lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

LYNX-DEV lynx v2.6


From: Uros Juvan
Subject: LYNX-DEV lynx v2.6
Date: Fri, 21 Mar 1997 10:09:32 +0100

Hello.

I have problem with zmodem transfer of files using sz. When remote user
transfers file to his machine lynx just make infinite loops calling sz and
transfering file. (must be some kinda terminal lynx problem catching CR or LF
chars got from sz, when it finishes).
I'm using sz 3.44 02-11-97 for SYS III/V by Chuck Forsberg, Omen Technology INC

I also changed LYDownload.c code a bit replacing two portions of code, but
I think this is not the cause of problems, cos it won't work with original
LYDownload.c either:

definition:
char *exec_args[4];

1st change:
- -----
#else /* Unix: */
  /*
   *  Prevent spoofing of the shell.
   */
  cp = quote_pathname(buffer);
/*  sprintf(command,"%s %s %s", COPY_PATH, file, cp); */
!  exec_args[0] = COPY_PATH;
!  exec_args[1] = file;
!  exec_args[2] = buffer;
!  exec_args[3] = NULL;
!  if (pid = fork()) { /* parent */
!    waitpid(pid,NULL,WUNTRACED);
!  } else { /* child */
!    execvp(COPY_PATH,exec_args);
!  }
  FREE(cp);
  if (TRACE)
      fprintf(stderr,"command: %s\n",command);
/*  system(command); */

- -------

2nd change:
- -------
        stop_curses();
        if(TRACE)
            fprintf(stderr,"command: %s\n",command);
!  exec_args[0] = strtok(download_command->command," %");
!  exec_args[1] = file;
!  exec_args[2] = NULL;
!/*  exec_args[3] = NULL; */
!  if (pid = fork()) { /* parent */
!    waitpid(pid,NULL,WUNTRACED);
!  } else { /* child */
!    execvp(exec_args[0],exec_args);
!  }
/*        system(command); */

    fflush(stdout);

        start_curses();

- -------


Thank you for your time and help,
Uros


;
; To UNSUBSCRIBE:  Send a mail message to address@hidden
;                  with "unsubscribe lynx-dev" (without the
;                  quotation marks) on a line by itself.
;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]