=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ftp/ftp.c,v retrieving revision 1.59 retrieving revision 1.60 diff -u -r1.59 -r1.60 --- src/usr.bin/ftp/ftp.c 2005/11/13 20:26:09 1.59 +++ src/usr.bin/ftp/ftp.c 2006/01/10 18:12:46 1.60 @@ -1,4 +1,4 @@ -/* $OpenBSD: ftp.c,v 1.59 2005/11/13 20:26:09 deraadt Exp $ */ +/* $OpenBSD: ftp.c,v 1.60 2006/01/10 18:12:46 moritz Exp $ */ /* $NetBSD: ftp.c,v 1.27 1997/08/18 10:20:23 lukem Exp $ */ /* @@ -60,7 +60,7 @@ */ #if !defined(lint) && !defined(SMALL) -static char rcsid[] = "$OpenBSD: ftp.c,v 1.59 2005/11/13 20:26:09 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: ftp.c,v 1.60 2006/01/10 18:12:46 moritz Exp $"; #endif /* not lint and not SMALL */ #include @@ -200,7 +200,9 @@ warn("connect to address %s", hbuf); } cause = "connect"; + error = errno; close(s); + errno = error; s = -1; continue; }