summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--sftp.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index e900cb637..d0fde0fb3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -157,6 +157,8 @@
157 - (dtucker) [Makefile.in added roaming_client.c roaming_serv.c] Import new 157 - (dtucker) [Makefile.in added roaming_client.c roaming_serv.c] Import new
158 files for roaming and add to Makefile. 158 files for roaming and add to Makefile.
159 - (dtucker) [Makefile.in] .c files do not belong in the OBJ lines. 159 - (dtucker) [Makefile.in] .c files do not belong in the OBJ lines.
160 - (dtucker) [sftp.c] ifdef out the sftp completion bits for platforms that
161 don't have libedit.
160 162
16120091226 16320091226
162 - (tim) [contrib/cygwin/Makefile] Install ssh-copy-id and ssh-copy-id.1 164 - (tim) [contrib/cygwin/Makefile] Install ssh-copy-id and ssh-copy-id.1
diff --git a/sftp.c b/sftp.c
index 6a5ccc49d..c994887e3 100644
--- a/sftp.c
+++ b/sftp.c
@@ -1503,7 +1503,6 @@ prompt(EditLine *el)
1503{ 1503{
1504 return ("sftp> "); 1504 return ("sftp> ");
1505} 1505}
1506#endif
1507 1506
1508/* Display entries in 'list' after skipping the first 'len' chars */ 1507/* Display entries in 'list' after skipping the first 'len' chars */
1509static void 1508static void
@@ -1646,6 +1645,7 @@ complete_cmd_parse(EditLine *el, char *cmd, int lastarg, char quote,
1646 1645
1647 return count; 1646 return count;
1648} 1647}
1648#endif
1649 1649
1650/* 1650/*
1651 * Determine whether a particular sftp command's arguments (if any) 1651 * Determine whether a particular sftp command's arguments (if any)
@@ -1666,6 +1666,7 @@ complete_is_remote(char *cmd) {
1666 return -1; 1666 return -1;
1667} 1667}
1668 1668
1669#ifdef USE_LIBEDIT
1669/* Autocomplete a filename "file" */ 1670/* Autocomplete a filename "file" */
1670static int 1671static int
1671complete_match(EditLine *el, struct sftp_conn *conn, char *remote_path, 1672complete_match(EditLine *el, struct sftp_conn *conn, char *remote_path,
@@ -1838,6 +1839,7 @@ complete(EditLine *el, int ch)
1838 xfree(line); 1839 xfree(line);
1839 return ret; 1840 return ret;
1840} 1841}
1842#endif /* USE_LIBEDIT */
1841 1843
1842int 1844int
1843interactive_loop(struct sftp_conn *conn, char *file1, char *file2) 1845interactive_loop(struct sftp_conn *conn, char *file1, char *file2)