[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.107 and 1.108

version 1.107, 2019/11/18 04:37:35 version 1.108, 2022/09/15 12:47:10
Line 212 
Line 212 
                         }                          }
                 }                  }
 #endif /* !SMALL */  #endif /* !SMALL */
                 for (error = connect(s, res->ai_addr, res->ai_addrlen);                  error = timed_connect(s, res->ai_addr, res->ai_addrlen,
                     error != 0 && errno == EINTR; error = connect_wait(s))                      connect_timeout);
                         continue;  
                 if (error != 0) {                  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) {
Line 1509 
Line 1508 
                 } else                  } else
                         goto bad;                          goto bad;
   
                 for (error = connect(data, &data_addr.sa, data_addr.sa.sa_len);                  error = timed_connect(data, &data_addr.sa, data_addr.sa.sa_len,
                     error != 0 && errno == EINTR;                      connect_timeout);
                     error = connect_wait(data))  
                         continue;  
                 if (error != 0) {                  if (error != 0) {
                         if (activefallback) {                          if (activefallback) {
                                 (void)close(data);                                  (void)close(data);

Legend:
Removed from v.1.107  
changed lines
  Added in v.1.108