Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Disable TAB completion during username entry

--HG--
extra : convert_revision : svn%3Abef2e6be-9598-11dd-8950-3d966a63a0de/trunk%4099
  • Loading branch information...
commit 2a9b7e11814242dfe76e71a818238baff9477315 1 parent 5c00f0f
authored July 28, 2008
4  libcli/libcli.c
@@ -1521,7 +1521,7 @@ int cli_loop(struct cli_def *cli, int sockfd)
1521 1521
                 char *completions[128];
1522 1522
                 int num_completions = 0;
1523 1523
 
1524  
-                if (cli->state == STATE_PASSWORD || cli->state == STATE_ENABLE_PASSWORD)
  1524
+                if (cli->state == STATE_LOGIN || cli->state == STATE_PASSWORD || cli->state == STATE_ENABLE_PASSWORD)
1525 1525
                     continue;
1526 1526
 
1527 1527
                 if (cursor != l) continue;
@@ -1577,7 +1577,7 @@ int cli_loop(struct cli_def *cli, int sockfd)
1577 1577
             {
1578 1578
                 int history_found = 0;
1579 1579
 
1580  
-                if (cli->state == STATE_PASSWORD || cli->state == STATE_ENABLE_PASSWORD)
  1580
+                if (cli->state == STATE_LOGIN || cli->state == STATE_PASSWORD || cli->state == STATE_ENABLE_PASSWORD)
1581 1581
                     continue;
1582 1582
 
1583 1583
                 if (c == CTRL('P')) // Up
1  libcli/libcli.spec
@@ -41,6 +41,7 @@ rm -rf $RPM_BUILD_ROOT
41 41
 - Add support for compiling on WIN32 (Thanks Hamish Coleman)
42 42
 - Fix cli_build_shortest() length handling
43 43
 - Don't call cli_build_shortest() when registering every command
  44
+- Disable TAB completion during username entry
44 45
 
45 46
 * Fri Jun  2 2008 David Parrish <david@dparrish.com> 1.9.2-1
46 47
 - Add configurable timeout for cli_regular() - defaults to 1 second

0 notes on commit 2a9b7e1

Please sign in to comment.
Something went wrong with that request. Please try again.