summaryrefslogtreecommitdiff
path: root/usr.bin/ssh
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2003-09-19 17:40:21 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2003-09-19 17:40:21 +0000
commit37aac99deb3660e1296406e98fe4424fc382ef9b (patch)
tree992191d3e38cb7b1e8590fae387c3a2b4045e8d9 /usr.bin/ssh
parentb34275c9ab51577aa9b42d0d6f02bd492b04c7f2 (diff)
error handling for remote-remote copy; #638; report Harald Koenig;
ok millert, fgs, henning, deraadt
Diffstat (limited to 'usr.bin/ssh')
-rw-r--r--usr.bin/ssh/scp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/ssh/scp.c b/usr.bin/ssh/scp.c
index 7ceeea8f771..8ca8a483b05 100644
--- a/usr.bin/ssh/scp.c
+++ b/usr.bin/ssh/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"
@@ -417,7 +417,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) {