]> andersk Git - openssh.git/commitdiff
- (dtucker) [sftp.c] ifdef out the sftp completion bits for platforms that
authordtucker <dtucker>
Fri, 8 Jan 2010 08:50:02 +0000 (08:50 +0000)
committerdtucker <dtucker>
Fri, 8 Jan 2010 08:50:02 +0000 (08:50 +0000)
   don't have libedit.

ChangeLog
sftp.c

index e900cb637e34561470bf0d914410e4453b6f1807..d0fde0fb3e0682ae2f8bb5ef834eb14f678b89fc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
  - (dtucker) [Makefile.in added roaming_client.c roaming_serv.c] Import new
    files for roaming and add to Makefile.
  - (dtucker) [Makefile.in] .c files do not belong in the OBJ lines.
+ - (dtucker) [sftp.c] ifdef out the sftp completion bits for platforms that
+   don't have libedit.
 
 20091226
  - (tim) [contrib/cygwin/Makefile] Install ssh-copy-id and ssh-copy-id.1
diff --git a/sftp.c b/sftp.c
index 6a5ccc49dda4f2d0885dfffbf10ded6ea228e770..c994887e3d4502b0f8565b14e1284c70fd274a7a 100644 (file)
--- a/sftp.c
+++ b/sftp.c
@@ -1503,7 +1503,6 @@ prompt(EditLine *el)
 {
        return ("sftp> ");
 }
-#endif
 
 /* Display entries in 'list' after skipping the first 'len' chars */
 static void
@@ -1646,6 +1645,7 @@ complete_cmd_parse(EditLine *el, char *cmd, int lastarg, char quote,
 
        return count;
 }
+#endif
 
 /*
  * Determine whether a particular sftp command's arguments (if any)
@@ -1666,6 +1666,7 @@ complete_is_remote(char *cmd) {
        return -1;
 }
 
+#ifdef USE_LIBEDIT
 /* Autocomplete a filename "file" */
 static int
 complete_match(EditLine *el, struct sftp_conn *conn, char *remote_path,
@@ -1838,6 +1839,7 @@ complete(EditLine *el, int ch)
        xfree(line);    
        return ret;
 }
+#endif /* USE_LIBEDIT */
 
 int
 interactive_loop(struct sftp_conn *conn, char *file1, char *file2)
This page took 0.063483 seconds and 5 git commands to generate.