diff options
author | Darren Tucker <dtucker@zip.com.au> | 2007-02-19 22:13:39 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2007-02-19 22:13:39 +1100 |
commit | 0aa3dbb5088fc8c3ca722d901fd8db55a781546b (patch) | |
tree | b0f33a8a5cdfc2dbea5a94c189245bea42b319ee | |
parent | cb0e1753c74fdd4dff390f9e8fec16995b1cce53 (diff) |
- djm@cvs.openbsd.org 2007/01/22 11:32:50
[sftp-client.c]
return error from do_upload() when a write fails. fixes bz#1252: zero
exit status from sftp when uploading to a full device. report from
jirkat AT atlas.cz; ok dtucker@
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | sftp-client.c | 3 |
2 files changed, 8 insertions, 2 deletions
@@ -21,6 +21,11 @@ | |||
21 | - stevesk@cvs.openbsd.org 2007/01/21 01:45:35 | 21 | - stevesk@cvs.openbsd.org 2007/01/21 01:45:35 |
22 | [readconf.c] | 22 | [readconf.c] |
23 | spaces | 23 | spaces |
24 | - djm@cvs.openbsd.org 2007/01/22 11:32:50 | ||
25 | [sftp-client.c] | ||
26 | return error from do_upload() when a write fails. fixes bz#1252: zero | ||
27 | exit status from sftp when uploading to a full device. report from | ||
28 | jirkat AT atlas.cz; ok dtucker@ | ||
24 | 29 | ||
25 | 20070128 | 30 | 20070128 |
26 | - (djm) [channels.c serverloop.c] Fix so-called "hang on exit" (bz #52) | 31 | - (djm) [channels.c serverloop.c] Fix so-called "hang on exit" (bz #52) |
@@ -2716,4 +2721,4 @@ | |||
2716 | OpenServer 6 and add osr5bigcrypt support so when someone migrates | 2721 | OpenServer 6 and add osr5bigcrypt support so when someone migrates |
2717 | passwords between UnixWare and OpenServer they will still work. OK dtucker@ | 2722 | passwords between UnixWare and OpenServer they will still work. OK dtucker@ |
2718 | 2723 | ||
2719 | $Id: ChangeLog,v 1.4613 2007/02/19 11:12:53 dtucker Exp $ | 2724 | $Id: ChangeLog,v 1.4614 2007/02/19 11:13:39 dtucker Exp $ |
diff --git a/sftp-client.c b/sftp-client.c index 42eb2b41b..2746f3245 100644 --- a/sftp-client.c +++ b/sftp-client.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sftp-client.c,v 1.75 2006/10/22 02:25:50 djm Exp $ */ | 1 | /* $OpenBSD: sftp-client.c,v 1.76 2007/01/22 11:32:50 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org> | 3 | * Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org> |
4 | * | 4 | * |
@@ -1140,6 +1140,7 @@ do_upload(struct sftp_conn *conn, char *local_path, char *remote_path, | |||
1140 | close(local_fd); | 1140 | close(local_fd); |
1141 | xfree(data); | 1141 | xfree(data); |
1142 | xfree(ack); | 1142 | xfree(ack); |
1143 | status = -1; | ||
1143 | goto done; | 1144 | goto done; |
1144 | } | 1145 | } |
1145 | debug3("In write loop, ack for %u %u bytes at %llu", | 1146 | debug3("In write loop, ack for %u %u bytes at %llu", |