diff options
Diffstat (limited to 'sftp-client.c')
-rw-r--r-- | sftp-client.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sftp-client.c b/sftp-client.c index a48d56e69..ffff0fe5a 100644 --- a/sftp-client.c +++ b/sftp-client.c | |||
@@ -28,7 +28,7 @@ | |||
28 | /* XXX: copy between two remote sites */ | 28 | /* XXX: copy between two remote sites */ |
29 | 29 | ||
30 | #include "includes.h" | 30 | #include "includes.h" |
31 | RCSID("$OpenBSD: sftp-client.c,v 1.43 2003/04/08 20:21:29 itojun Exp $"); | 31 | RCSID("$OpenBSD: sftp-client.c,v 1.44 2003/06/28 16:23:06 deraadt Exp $"); |
32 | 32 | ||
33 | #include "openbsd-compat/sys-queue.h" | 33 | #include "openbsd-compat/sys-queue.h" |
34 | 34 | ||
@@ -71,10 +71,10 @@ send_msg(int fd, Buffer *m) | |||
71 | 71 | ||
72 | /* Send length first */ | 72 | /* Send length first */ |
73 | PUT_32BIT(mlen, buffer_len(m)); | 73 | PUT_32BIT(mlen, buffer_len(m)); |
74 | if (atomicio(write, fd, mlen, sizeof(mlen)) <= 0) | 74 | if (atomicio(vwrite, fd, mlen, sizeof(mlen)) <= 0) |
75 | fatal("Couldn't send packet: %s", strerror(errno)); | 75 | fatal("Couldn't send packet: %s", strerror(errno)); |
76 | 76 | ||
77 | if (atomicio(write, fd, buffer_ptr(m), buffer_len(m)) <= 0) | 77 | if (atomicio(vwrite, fd, buffer_ptr(m), buffer_len(m)) <= 0) |
78 | fatal("Couldn't send packet: %s", strerror(errno)); | 78 | fatal("Couldn't send packet: %s", strerror(errno)); |
79 | 79 | ||
80 | buffer_clear(m); | 80 | buffer_clear(m); |
@@ -875,7 +875,7 @@ do_download(struct sftp_conn *conn, char *remote_path, char *local_path, | |||
875 | fatal("Received more data than asked for " | 875 | fatal("Received more data than asked for " |
876 | "%u > %u", len, req->len); | 876 | "%u > %u", len, req->len); |
877 | if ((lseek(local_fd, req->offset, SEEK_SET) == -1 || | 877 | if ((lseek(local_fd, req->offset, SEEK_SET) == -1 || |
878 | atomicio(write, local_fd, data, len) != len) && | 878 | atomicio(vwrite, local_fd, data, len) != len) && |
879 | !write_error) { | 879 | !write_error) { |
880 | write_errno = errno; | 880 | write_errno = errno; |
881 | write_error = 1; | 881 | write_error = 1; |