diff options
author | mouring <mouring@cvs.openbsd.org> | 2002-04-06 18:24:10 +0000 |
---|---|---|
committer | mouring <mouring@cvs.openbsd.org> | 2002-04-06 18:24:10 +0000 |
commit | f11cd25436a84bf310a0e19cd38952c1e943932a (patch) | |
tree | 6af0114c1d6e749ed1529564184c5349518c0721 /usr.bin/ssh | |
parent | 904dd847958e6e5a0802b1ef5c949022fd421f0e (diff) |
Fixes potental double // within path.
http://bugzilla.mindrot.org/show_bug.cgi?id=76
Diffstat (limited to 'usr.bin/ssh')
-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 f38a5e9d4c4..8374947bb2b 100644 --- a/usr.bin/ssh/scp.c +++ b/usr.bin/ssh/scp.c @@ -75,7 +75,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: scp.c,v 1.87 2002/03/30 17:45:46 deraadt Exp $"); +RCSID("$OpenBSD: scp.c,v 1.88 2002/04/06 18:24:09 mouring Exp $"); #include "xmalloc.h" #include "atomicio.h" @@ -756,7 +756,7 @@ sink(argc, argv) cursize = need; } (void) snprintf(namebuf, need, "%s%s%s", targ, - *targ ? "/" : "", cp); + strcmp(targ, "/") ? "/" : "", cp); np = namebuf; } else np = targ; |