diff options
author | mouring <mouring> | 2002-04-06 18:29:59 +0000 |
---|---|---|
committer | mouring <mouring> | 2002-04-06 18:29:59 +0000 |
commit | 64dec42662fcb54e7030a781a713df3e1769582f (patch) | |
tree | 45182701e0831827e170c2093e552dfd3b31ee64 /scp.c | |
parent | 707c8ef26e42ba58a91c106c3d13d91623167602 (diff) | |
download | openssh-64dec42662fcb54e7030a781a713df3e1769582f.tar.gz |
- mouring@cvs.openbsd.org 2002/04/06 18:24:09
[scp.c]
Fixes potental double // within path.
http://bugzilla.mindrot.org/show_bug.cgi?id=76
Diffstat (limited to 'scp.c')
-rw-r--r-- | scp.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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" @@ -774,7 +774,7 @@ sink(argc, argv) cursize = need; } (void) snprintf(namebuf, need, "%s%s%s", targ, - *targ ? "/" : "", cp); + strcmp(targ, "/") ? "/" : "", cp); np = namebuf; } else np = targ; |