summaryrefslogtreecommitdiff
path: root/scp.c
diff options
context:
space:
mode:
Diffstat (limited to 'scp.c')
-rw-r--r--scp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/scp.c b/scp.c
index 4f9247c2d..a1f136a1f 100644
--- a/scp.c
+++ b/scp.c
@@ -71,7 +71,7 @@
71 */ 71 */
72 72
73#include "includes.h" 73#include "includes.h"
74RCSID("$OpenBSD: scp.c,v 1.108 2003/07/18 01:54:25 deraadt Exp $"); 74RCSID("$OpenBSD: scp.c,v 1.109 2003/09/19 17:40:20 markus Exp $");
75 75
76#include "xmalloc.h" 76#include "xmalloc.h"
77#include "atomicio.h" 77#include "atomicio.h"
@@ -426,7 +426,8 @@ toremote(char *targ, int argc, char **argv)
426 } 426 }
427 if (verbose_mode) 427 if (verbose_mode)
428 fprintf(stderr, "Executing: %s\n", bp); 428 fprintf(stderr, "Executing: %s\n", bp);
429 (void) system(bp); 429 if (system(bp) != 0)
430 errs = 1;
430 (void) xfree(bp); 431 (void) xfree(bp);
431 } else { /* local to remote */ 432 } else { /* local to remote */
432 if (remin == -1) { 433 if (remin == -1) {