diff options
Diffstat (limited to 'scp.c')
-rw-r--r-- | scp.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -45,7 +45,7 @@ | |||
45 | */ | 45 | */ |
46 | 46 | ||
47 | #include "includes.h" | 47 | #include "includes.h" |
48 | RCSID("$OpenBSD: scp.c,v 1.32 2000/06/20 01:39:44 markus Exp $"); | 48 | RCSID("$OpenBSD: scp.c,v 1.33 2000/07/13 23:19:31 provos Exp $"); |
49 | 49 | ||
50 | #include "ssh.h" | 50 | #include "ssh.h" |
51 | #include "xmalloc.h" | 51 | #include "xmalloc.h" |
@@ -889,7 +889,10 @@ bad: run_err("%s: %s", np, strerror(errno)); | |||
889 | run_err("%s: set mode: %s", | 889 | run_err("%s: set mode: %s", |
890 | np, strerror(errno)); | 890 | np, strerror(errno)); |
891 | } | 891 | } |
892 | (void) close(ofd); | 892 | if (close(ofd) == -1) { |
893 | wrerr = YES; | ||
894 | wrerrno = errno; | ||
895 | } | ||
893 | (void) response(); | 896 | (void) response(); |
894 | if (setimes && wrerr == NO) { | 897 | if (setimes && wrerr == NO) { |
895 | setimes = 0; | 898 | setimes = 0; |
@@ -1015,7 +1018,7 @@ run_err(const char *fmt,...) | |||
1015 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 1018 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
1016 | * SUCH DAMAGE. | 1019 | * SUCH DAMAGE. |
1017 | * | 1020 | * |
1018 | * $OpenBSD: scp.c,v 1.32 2000/06/20 01:39:44 markus Exp $ | 1021 | * $OpenBSD: scp.c,v 1.33 2000/07/13 23:19:31 provos Exp $ |
1019 | */ | 1022 | */ |
1020 | 1023 | ||
1021 | char * | 1024 | char * |