[asterisk-commits] file: branch 11 r432944 - /branches/11/main/cli.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Mar 13 20:36:19 CDT 2015


Author: file
Date: Fri Mar 13 20:36:18 2015
New Revision: 432944

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=432944
Log:
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-18708 #close
Reported by: Dave Cabot

Modified:
    branches/11/main/cli.c

Modified: branches/11/main/cli.c
URL: http://svnview.digium.com/svn/asterisk/branches/11/main/cli.c?view=diff&rev=432944&r1=432943&r2=432944
==============================================================================
--- branches/11/main/cli.c (original)
+++ branches/11/main/cli.c Fri Mar 13 20:36:18 2015
@@ -459,7 +459,7 @@
 				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], "");
 




More information about the asterisk-commits mailing list