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

Diff for /src/usr.bin/ftp/ftp.c between version 1.98 and 1.99

version 1.98, 2016/08/18 16:23:06 version 1.99, 2016/08/20 20:18:42
Line 219 
Line 219 
                         }                          }
                 }                  }
 #endif /* !SMALL */  #endif /* !SMALL */
                 error = connect_sync(s, res->ai_addr, res->ai_addrlen);                  for (error = connect(s, res->ai_addr, res->ai_addrlen);
                 if (error) {                      error != 0 && errno == EINTR; error = connect_wait(s))
                           continue;
                   if (error != 0) {
                         /* this "if" clause is to prevent print warning twice */                          /* this "if" clause is to prevent print warning twice */
                         if (verbose && res->ai_next) {                          if (verbose && res->ai_next) {
                                 if (getnameinfo(res->ai_addr, res->ai_addrlen,                                  if (getnameinfo(res->ai_addr, res->ai_addrlen,
Line 1514 
Line 1516 
                 } else                  } else
                         goto bad;                          goto bad;
   
                 if (connect_sync(data, (struct sockaddr *)&data_addr,                  for (error = connect(data, (struct sockaddr *)&data_addr,
                             data_addr.su_len) < 0) {                      data_addr.su_len); error != 0 && errno == EINTR;
                       error = connect_wait(data))
                           continue;
                   if (error != 0) {
                         if (activefallback) {                          if (activefallback) {
                                 (void)close(data);                                  (void)close(data);
                                 data = -1;                                  data = -1;

Legend:
Removed from v.1.98  
changed lines
  Added in v.1.99