=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ftp/ftp.c,v retrieving revision 1.92 retrieving revision 1.93 diff -u -r1.92 -r1.93 --- src/usr.bin/ftp/ftp.c 2015/09/27 05:25:01 1.92 +++ src/usr.bin/ftp/ftp.c 2015/12/05 22:14:04 1.93 @@ -1,4 +1,4 @@ -/* $OpenBSD: ftp.c,v 1.92 2015/09/27 05:25:01 guenther Exp $ */ +/* $OpenBSD: ftp.c,v 1.93 2015/12/05 22:14:04 krw Exp $ */ /* $NetBSD: ftp.c,v 1.27 1997/08/18 10:20:23 lukem Exp $ */ /* @@ -746,6 +746,7 @@ progressmeter(-1, remote); may_reset_noop_timeout(); oldintp = signal(SIGPIPE, SIG_IGN); + serrno = 0; switch (curtype) { case TYPE_I: @@ -1055,6 +1056,7 @@ } progressmeter(-1, remote); may_reset_noop_timeout(); + serrno = 0; switch (curtype) { case TYPE_I: