[scp.c]
     error handling for remote-remote copy; #638; report Harald Koenig;
     ok millert, fgs, henning, deraadt
This commit is contained in:
Darren Tucker 2003-09-22 21:14:55 +10:00
parent aaa56cb804
commit 8654d16f0f
2 changed files with 8 additions and 3 deletions

View File

@ -64,6 +64,10 @@
- markus@cvs.openbsd.org 2003/09/19 11:33:09 - markus@cvs.openbsd.org 2003/09/19 11:33:09
[packet.c sshd.c] [packet.c sshd.c]
do not call packet_close on fatal; ok deraadt do not call packet_close on fatal; ok deraadt
- markus@cvs.openbsd.org 2003/09/19 17:40:20
[scp.c]
error handling for remote-remote copy; #638; report Harald Koenig;
ok millert, fgs, henning, deraadt
20030919 20030919
- (djm) Bug #683: Remove reference to --with-ipv4-default from INSTALL; - (djm) Bug #683: Remove reference to --with-ipv4-default from INSTALL;
@ -1200,4 +1204,4 @@
- Fix sshd BindAddress and -b options for systems using fake-getaddrinfo. - Fix sshd BindAddress and -b options for systems using fake-getaddrinfo.
Report from murple@murple.net, diagnosis from dtucker@zip.com.au Report from murple@murple.net, diagnosis from dtucker@zip.com.au
$Id: ChangeLog,v 1.3034 2003/09/22 11:13:59 dtucker Exp $ $Id: ChangeLog,v 1.3035 2003/09/22 11:14:55 dtucker Exp $

5
scp.c
View File

@ -71,7 +71,7 @@
*/ */
#include "includes.h" #include "includes.h"
RCSID("$OpenBSD: scp.c,v 1.108 2003/07/18 01:54:25 deraadt Exp $"); RCSID("$OpenBSD: scp.c,v 1.109 2003/09/19 17:40:20 markus Exp $");
#include "xmalloc.h" #include "xmalloc.h"
#include "atomicio.h" #include "atomicio.h"
@ -426,7 +426,8 @@ toremote(char *targ, int argc, char **argv)
} }
if (verbose_mode) if (verbose_mode)
fprintf(stderr, "Executing: %s\n", bp); fprintf(stderr, "Executing: %s\n", bp);
(void) system(bp); if (system(bp) != 0)
errs = 1;
(void) xfree(bp); (void) xfree(bp);
} else { /* local to remote */ } else { /* local to remote */
if (remin == -1) { if (remin == -1) {