summaryrefslogtreecommitdiff
path: root/usr.bin/ssh
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2001-02-10 00:45:27 +0000
committerDamien Miller <djm@cvs.openbsd.org>2001-02-10 00:45:27 +0000
commit240348a3cb1fe5eb6b01fa1b15a413c9f2f32c51 (patch)
treee04cab28c7481e0662807a903c8439deaf452219 /usr.bin/ssh
parentbf5690e6609833792b41e01836f883828d0dca80 (diff)
check correct char in getput flags
Diffstat (limited to 'usr.bin/ssh')
-rw-r--r--usr.bin/ssh/sftp-int.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/sftp-int.c b/usr.bin/ssh/sftp-int.c
index 94132f64b50..9c3ebe5bf9c 100644
--- a/usr.bin/ssh/sftp-int.c
+++ b/usr.bin/ssh/sftp-int.c
@@ -28,7 +28,7 @@
/* XXX: recursive operations */
#include "includes.h"
-RCSID("$OpenBSD: sftp-int.c,v 1.19 2001/02/09 11:46:24 djm Exp $");
+RCSID("$OpenBSD: sftp-int.c,v 1.20 2001/02/10 00:45:26 djm Exp $");
#include "buffer.h"
#include "xmalloc.h"
@@ -203,7 +203,7 @@ parse_getput_flags(const char **cpp, int *pflag)
/* Check for flags */
if (cp[0] == '-' && cp[1] && strchr(WHITESPACE, cp[2])) {
- switch (*cp) {
+ switch (cp[1]) {
case 'P':
*pflag = 1;
break;