From 815a8407c3c90d0a67cef8065ec11a61e9ff3ea4 Mon Sep 17 00:00:00 2001 From: dtucker Date: Mon, 22 Sep 2003 11:14:55 +0000 Subject: [PATCH] - 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 --- ChangeLog | 4 ++++ scp.c | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index c434763e..bd975418 100644 --- a/ChangeLog +++ b/ChangeLog @@ -64,6 +64,10 @@ - markus@cvs.openbsd.org 2003/09/19 11:33:09 [packet.c sshd.c] 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 - (djm) Bug #683: Remove reference to --with-ipv4-default from INSTALL; diff --git a/scp.c b/scp.c index 4f9247c2..a1f136a1 100644 --- a/scp.c +++ b/scp.c @@ -71,7 +71,7 @@ */ #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 "atomicio.h" @@ -426,7 +426,8 @@ toremote(char *targ, int argc, char **argv) } if (verbose_mode) fprintf(stderr, "Executing: %s\n", bp); - (void) system(bp); + if (system(bp) != 0) + errs = 1; (void) xfree(bp); } else { /* local to remote */ if (remin == -1) { -- 2.45.2