[scp.c]
     Fixes potental double // within path.
     http://bugzilla.mindrot.org/show_bug.cgi?id=76
This commit is contained in:
Ben Lindstrom 2002-04-06 18:29:59 +00:00
parent 8d6017566c
commit de3895d580
2 changed files with 7 additions and 3 deletions

View File

@ -7,6 +7,10 @@
[sftp-client.c]
Fix occasional corruption on upload due to bad reuse of request id, spotted
by chombier@mac.com; ok markus@
- 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
- (bal) Slight update to OpenSC support. Better version checking. patch
by Juha Yrjölä <jyrjola@cc.hut.fi>
@ -8179,4 +8183,4 @@
- Wrote replacements for strlcpy and mkdtemp
- Released 1.0pre1
$Id: ChangeLog,v 1.2029 2002/04/06 18:19:38 mouring Exp $
$Id: ChangeLog,v 1.2030 2002/04/06 18:29:59 mouring Exp $

4
scp.c
View File

@ -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;