summaryrefslogtreecommitdiff
path: root/usr.bin/ftp/ftp.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-05-13 08:59:11 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-05-13 08:59:11 +0000
commit90abfee7c3e7d107aa9e413da56fe410110117cb (patch)
tree42d25bbf8e457741d1e4614bb2e235bcae91ddc4 /usr.bin/ftp/ftp.c
parent4c75d3e834458f406ab2ee8b601e6e74d6dc5bd8 (diff)
make signal handlers save/restore errno
Diffstat (limited to 'usr.bin/ftp/ftp.c')
-rw-r--r--usr.bin/ftp/ftp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/ftp/ftp.c b/usr.bin/ftp/ftp.c
index 342efadf7d0..359ee23fd1c 100644
--- a/usr.bin/ftp/ftp.c
+++ b/usr.bin/ftp/ftp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ftp.c,v 1.25 1998/02/10 02:13:10 weingart Exp $ */
+/* $OpenBSD: ftp.c,v 1.26 1998/05/13 08:59:07 deraadt Exp $ */
/* $NetBSD: ftp.c,v 1.27 1997/08/18 10:20:23 lukem Exp $ */
/*
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)ftp.c 8.6 (Berkeley) 10/27/94";
#else
-static char rcsid[] = "$OpenBSD: ftp.c,v 1.25 1998/02/10 02:13:10 weingart Exp $";
+static char rcsid[] = "$OpenBSD: ftp.c,v 1.26 1998/05/13 08:59:07 deraadt Exp $";
#endif
#endif /* not lint */
@@ -1256,9 +1256,11 @@ void
psummary(notused)
int notused;
{
+ int save_errno = errno;
if (bytes > 0)
ptransfer(1);
+ errno = save_errno;
}
void