diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2006-01-31 10:35:44 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2006-01-31 10:35:44 +0000 |
commit | 49095621e503f323a0fb062a81966bf0b3e29811 (patch) | |
tree | 5cf308c3d7293f4ca3b91d014bc9c8a87118c5c8 /usr.bin | |
parent | 6f4e06e996935810d1fcceef7b0e8c5e77d6989a (diff) |
"scp a b c" shouldn't clobber "c" when it is not a directory, report and
fix from biorn@; ok markus@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/ssh/scp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/scp.c b/usr.bin/ssh/scp.c index bacefe17708..d913838e20e 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.129 2006/01/31 10:19:02 djm Exp $"); +RCSID("$OpenBSD: scp.c,v 1.130 2006/01/31 10:35:43 djm Exp $"); #include "xmalloc.h" #include "atomicio.h" @@ -378,9 +378,9 @@ main(int argc, char **argv) if ((targ = colon(argv[argc - 1]))) /* Dest is remote host. */ toremote(targ, argc, argv); else { - tolocal(argc, argv); /* Dest is local host. */ if (targetshouldbedirectory) verifydir(argv[argc - 1]); + tolocal(argc, argv); /* Dest is local host. */ } /* * Finally check the exit status of the ssh process, if one was forked |