diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 1997-08-06 00:18:01 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 1997-08-06 00:18:01 +0000 |
commit | 2cc42eb6c340fb27ad8a95412f788354f0ed5a66 (patch) | |
tree | 931e347c5cc3c2cf449fca4c671427571546342c | |
parent | cd978aa2ad09c15091b77eca609bde7c060f9f43 (diff) |
Errno save/restore.
-rw-r--r-- | libexec/ftpd/ftpd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c index 6f6e90743d6..c8142761bcf 100644 --- a/libexec/ftpd/ftpd.c +++ b/libexec/ftpd/ftpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ftpd.c,v 1.43 1997/08/04 19:25:09 deraadt Exp $ */ +/* $OpenBSD: ftpd.c,v 1.44 1997/08/06 00:18:00 angelos Exp $ */ /* $NetBSD: ftpd.c,v 1.15 1995/06/03 22:46:47 mycroft Exp $ */ /* @@ -1781,6 +1781,7 @@ myoob(signo) int signo; { char *cp; + int save_errno = errno; /* only process if transfer occurring */ if (!transflag) @@ -1804,6 +1805,7 @@ myoob(signo) else reply(213, "Status: %qd bytes transferred", byte_count); } + errno = save_errno; } /* |