diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | scp.c | 4 |
2 files changed, 7 insertions, 3 deletions
@@ -33,6 +33,10 @@ | |||
33 | fix local arbitrary command execution vulnerability on local/local and | 33 | fix local arbitrary command execution vulnerability on local/local and |
34 | remote/remote copies (CVE-2006-0225, bz #1094), patch by | 34 | remote/remote copies (CVE-2006-0225, bz #1094), patch by |
35 | t8m AT centrum.cz, polished by dtucker@ and myself; ok markus@ | 35 | t8m AT centrum.cz, polished by dtucker@ and myself; ok markus@ |
36 | - djm@cvs.openbsd.org 2006/01/31 10:35:43 | ||
37 | [scp.c] | ||
38 | "scp a b c" shouldn't clobber "c" when it is not a directory, report and | ||
39 | fix from biorn@; ok markus@ | ||
36 | - (djm) Sync regress tests to OpenBSD: | 40 | - (djm) Sync regress tests to OpenBSD: |
37 | - dtucker@cvs.openbsd.org 2005/03/10 10:20:39 | 41 | - dtucker@cvs.openbsd.org 2005/03/10 10:20:39 |
38 | [regress/forwarding.sh] | 42 | [regress/forwarding.sh] |
@@ -3794,4 +3798,4 @@ | |||
3794 | - (djm) Trim deprecated options from INSTALL. Mention UsePAM | 3798 | - (djm) Trim deprecated options from INSTALL. Mention UsePAM |
3795 | - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu | 3799 | - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu |
3796 | 3800 | ||
3797 | $Id: ChangeLog,v 1.4111 2006/01/31 11:06:41 djm Exp $ | 3801 | $Id: ChangeLog,v 1.4112 2006/01/31 11:11:37 djm Exp $ |
@@ -71,7 +71,7 @@ | |||
71 | */ | 71 | */ |
72 | 72 | ||
73 | #include "includes.h" | 73 | #include "includes.h" |
74 | RCSID("$OpenBSD: scp.c,v 1.129 2006/01/31 10:19:02 djm Exp $"); | 74 | RCSID("$OpenBSD: scp.c,v 1.130 2006/01/31 10:35:43 djm Exp $"); |
75 | 75 | ||
76 | #include "xmalloc.h" | 76 | #include "xmalloc.h" |
77 | #include "atomicio.h" | 77 | #include "atomicio.h" |
@@ -383,9 +383,9 @@ main(int argc, char **argv) | |||
383 | if ((targ = colon(argv[argc - 1]))) /* Dest is remote host. */ | 383 | if ((targ = colon(argv[argc - 1]))) /* Dest is remote host. */ |
384 | toremote(targ, argc, argv); | 384 | toremote(targ, argc, argv); |
385 | else { | 385 | else { |
386 | tolocal(argc, argv); /* Dest is local host. */ | ||
387 | if (targetshouldbedirectory) | 386 | if (targetshouldbedirectory) |
388 | verifydir(argv[argc - 1]); | 387 | verifydir(argv[argc - 1]); |
388 | tolocal(argc, argv); /* Dest is local host. */ | ||
389 | } | 389 | } |
390 | /* | 390 | /* |
391 | * Finally check the exit status of the ssh process, if one was forked | 391 | * Finally check the exit status of the ssh process, if one was forked |