| CODENOTIFIER | HelpYou are not signed inSign in |
Project: Putty
Revision: 8117
Author: jacob
Date: 11 Jul 2008 15:24:56
Changes:Replicate r8110 from PSFTP to PSCP, and various other minor patchery from
Roger Picton.
| ... | ...@@ -252,8 +252,14 @@ | |
| 252 | 252 | static void ssh_scp_init(void) |
| 253 | 253 | { |
| 254 | 254 | while (!back->sendok(backhandle)) { |
| 255 | if (ssh_sftp_loop_iteration() < 0) | |
| 255 | if (back->exitcode(backhandle) >= 0) { | |
| 256 | errs++; | |
| 257 | return; | |
| 258 | } | |
| 259 | if (ssh_sftp_loop_iteration() < 0) { | |
| 260 | errs++; | |
| 256 | 261 | return; /* doom */ |
| 262 | } | |
| 257 | 263 | } |
| 258 | 264 | |
| 259 | 265 | /* Work out which backend we ended up using. */ |
| ... | ...@@ -467,7 +473,7 @@ | |
| 467 | 473 | back->provide_logctx(backhandle, logctx); |
| 468 | 474 | console_provide_logctx(logctx); |
| 469 | 475 | ssh_scp_init(); |
| 470 | if (verbose && realhost != NULL) | |
| 476 | if (verbose && realhost != NULL && errs == 0) | |
| 471 | 477 | tell_user(stderr, "Connected to %s\n", realhost); |
| 472 | 478 | sfree(realhost); |
| 473 | 479 | } |