[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.145 and 1.146

version 1.145, 2016/01/28 21:31:50 version 1.146, 2016/05/06 22:06:09
Line 1161 
Line 1161 
                                 pass = urldecode(pass);                                  pass = urldecode(pass);
                         }                          }
   
 #ifdef INET6  
                         /* check [host]:port, or [host] */                          /* check [host]:port, or [host] */
                         if (host[0] == '[') {                          if (host[0] == '[') {
                                 cp = strchr(host, ']');                                  cp = strchr(host, ']');
Line 1175 
Line 1174 
                                         cp = host;                                          cp = host;
                         } else                          } else
                                 cp = host;                                  cp = host;
 #else  
                         cp = host;  
 #endif  
   
                         /* split off host[:port] if there is */                          /* split off host[:port] if there is */
                         if (cp) {                          if (cp) {

Legend:
Removed from v.1.145  
changed lines
  Added in v.1.146