From: Joshua Colp Date: Sat, 14 Mar 2015 01:36:56 +0000 (+0000) Subject: core: Fix tab completion of "core set debug channel" CLI command. X-Git-Tag: 13.3.0-rc1~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=287a22435f7063e997312f954c635b85a8afdbe8;p=thirdparty%2Fasterisk.git 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 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@432945 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/cli.c b/main/cli.c index f0eb30e33a..85ac35f486 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], "");