From 51618e4b00c214bce6fc3c292b1eee5869e25aa7 Mon Sep 17 00:00:00 2001 From: ben Date: Tue, 10 Apr 2007 21:46:44 +0000 Subject: [PATCH] When we get an error writing to a local file, stop the download rather than pretending we just got -1 bytes. Not actually tested, but it looks pretty obvious. Bug reported by dking wang. git-svn-id: svn://svn.tartarus.org/sgt/putty@7459 cda61777-01e9-0310-a592-d414129be87e --- psftp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/psftp.c b/psftp.c index f8a2240e..e41112aa 100644 --- a/psftp.c +++ b/psftp.c @@ -463,6 +463,7 @@ int sftp_get_file(char *fname, char *outfname, int recurse, int restart) printf("error while writing local file\n"); ret = 0; xfer_set_error(xfer); + break; } wpos += wlen; } -- 2.11.0