Index: scp.c =================================================================== RCS file: /cvs/src/usr.bin/ssh/scp.c,v retrieving revision 1.108 diff -u -r1.108 scp.c --- scp.c 18 Jul 2003 01:54:25 -0000 1.108 +++ scp.c 15 Sep 2003 19:48:14 -0000 @@ -417,7 +417,8 @@ } 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) {