=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ftp/ftp.c,v retrieving revision 1.107 retrieving revision 1.108 diff -c -r1.107 -r1.108 *** src/usr.bin/ftp/ftp.c 2019/11/18 04:37:35 1.107 --- src/usr.bin/ftp/ftp.c 2022/09/15 12:47:10 1.108 *************** *** 1,4 **** ! /* $OpenBSD: ftp.c,v 1.107 2019/11/18 04:37:35 deraadt Exp $ */ /* $NetBSD: ftp.c,v 1.27 1997/08/18 10:20:23 lukem Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: ftp.c,v 1.108 2022/09/15 12:47:10 millert Exp $ */ /* $NetBSD: ftp.c,v 1.27 1997/08/18 10:20:23 lukem Exp $ */ /* *************** *** 212,220 **** } } #endif /* !SMALL */ ! for (error = connect(s, res->ai_addr, res->ai_addrlen); ! error != 0 && errno == EINTR; error = connect_wait(s)) ! continue; if (error != 0) { /* this "if" clause is to prevent print warning twice */ if (verbose && res->ai_next) { --- 212,219 ---- } } #endif /* !SMALL */ ! error = timed_connect(s, res->ai_addr, res->ai_addrlen, ! connect_timeout); if (error != 0) { /* this "if" clause is to prevent print warning twice */ if (verbose && res->ai_next) { *************** *** 1509,1518 **** } else goto bad; ! for (error = connect(data, &data_addr.sa, data_addr.sa.sa_len); ! error != 0 && errno == EINTR; ! error = connect_wait(data)) ! continue; if (error != 0) { if (activefallback) { (void)close(data); --- 1508,1515 ---- } else goto bad; ! error = timed_connect(data, &data_addr.sa, data_addr.sa.sa_len, ! connect_timeout); if (error != 0) { if (activefallback) { (void)close(data);