diff options
author | Joshua Colp <jcolp@digium.com> | 2015-03-14 01:37:24 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2015-03-14 01:37:24 +0000 |
commit | b3fa35786f0120694f0814d22a07765b7e21d4f4 (patch) | |
tree | b59eef1a9b93cd5c5a28a6c540e85d893c63cc34 /main/cli.c | |
parent | b4cc056067b7576dd5843045c89443b58828082b (diff) |
core: Fix tab completion of "core set debug channel" CLI command.
The "core set debug channel" CLI command mistakenly had source filenames
added to its tab completion. This occurred because the CLI generator fell back
to the "core set debug" command which permits setting debug at a source
filename level.
ASTERISK-21038 #close
Reported by: Richard Kenner
........
Merged revisions 432944 from http://svn.asterisk.org/svn/asterisk/branches/11
........
Merged revisions 432945 from http://svn.asterisk.org/svn/asterisk/branches/13
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@432946 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/cli.c')
-rw-r--r-- | main/cli.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/cli.c b/main/cli.c index c30ad5ed6..1d9d82ce8 100644 --- a/main/cli.c +++ b/main/cli.c @@ -487,7 +487,7 @@ static char *handle_debug(struct ast_cli_entry *e, int cmd, struct ast_cli_args return ast_strdup("atleast"); } #if !defined(LOW_MEMORY) - } else if ((a->pos == 4 && !atleast && strcasecmp(argv3, "off")) + } else if ((a->pos == 4 && !atleast && strcasecmp(argv3, "off") && strcasecmp(argv3, "channel")) || (a->pos == 5 && atleast)) { const char *pos = S_OR(a->argv[a->pos], ""); |