[BACK]Return to fetch.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ftp

Diff for /src/usr.bin/ftp/fetch.c between version 1.51 and 1.52

version 1.51, 2004/09/16 04:39:16 version 1.52, 2005/04/05 22:37:00
Line 606 
Line 606 
 {  {
         char *xargv[5];          char *xargv[5];
         char *cp, *line, *host, *dir, *file, *portnum;          char *cp, *line, *host, *dir, *file, *portnum;
         char *user, *pass;          char *user, *pass, *pathstart;
         char *ftpproxy, *httpproxy;          char *ftpproxy, *httpproxy;
         int rval, xargc;          int rval, xargc;
         volatile int argpos;          volatile int argpos;
Line 719 
Line 719 
                         /* split off host[:port] if there is */                          /* split off host[:port] if there is */
                         if (cp) {                          if (cp) {
                                 portnum = strchr(cp, ':');                                  portnum = strchr(cp, ':');
                                   pathstart = strchr(cp, '/');
                                   /* : in path is not a port # indicator */
                                   if (portnum && pathstart &&
                                       pathstart < portnum)
                                           portnum = NULL;
   
                                 if (!portnum)                                  if (!portnum)
                                         ;                                          ;
                                 else {                                  else {

Legend:
Removed from v.1.51  
changed lines
  Added in v.1.52