diff options
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | sftp.c | 4 |
2 files changed, 5 insertions, 1 deletions
@@ -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 | ||
161 | 20091226 | 163 | 20091226 |
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 |
@@ -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 */ |
1509 | static void | 1508 | static 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" */ |
1670 | static int | 1671 | static int |
1671 | complete_match(EditLine *el, struct sftp_conn *conn, char *remote_path, | 1672 | complete_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 | ||
1842 | int | 1844 | int |
1843 | interactive_loop(struct sftp_conn *conn, char *file1, char *file2) | 1845 | interactive_loop(struct sftp_conn *conn, char *file1, char *file2) |