summaryrefslogtreecommitdiff
path: root/sftp.c
diff options
context:
space:
mode:
authordtucker <dtucker>2010-10-23 23:56:32 +0000
committerdtucker <dtucker>2010-10-23 23:56:32 +0000
commit38a3354e1db002a05e4bc6064becd60865cf8421 (patch)
treec7c4275b07c62448d04a0c9f223bd4c79a99a7be /sftp.c
parenta7a618f55e8fd42139d41803939961c9ac5cf956 (diff)
downloadopenssh-38a3354e1db002a05e4bc6064becd60865cf8421.tar.gz
- sthen@cvs.openbsd.org 2010/10/23 22:06:12
[sftp.c] escape '[' in filename tab-completion; fix a type while there. ok djm@
Diffstat (limited to 'sftp.c')
-rw-r--r--sftp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sftp.c b/sftp.c
index 1421fcb0..d605505e 100644
--- a/sftp.c
+++ b/sftp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sftp.c,v 1.130 2010/10/05 05:13:18 djm Exp $ */
+/* $OpenBSD: sftp.c,v 1.131 2010/10/23 22:06:12 sthen Exp $ */
/*
* Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org>
*
@@ -1725,6 +1725,7 @@ complete_match(EditLine *el, struct sftp_conn *conn, char *remote_path,
case '"':
case '\\':
case '\t':
+ case '[':
case ' ':
if (quote == '\0' || tmp2[i] == quote) {
if (el_insertstr(el, ins) == -1)
@@ -1854,7 +1855,7 @@ interactive_loop(struct sftp_conn *conn, char *file1, char *file2)
/* Tab Completion */
el_set(el, EL_ADDFN, "ftp-complete",
- "Context senstive argument completion", complete);
+ "Context sensitive argument completion", complete);
complete_ctx.conn = conn;
complete_ctx.remote_pathp = &remote_path;
el_set(el, EL_CLIENTDATA, (void*)&complete_ctx);