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], "");
 


-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

svn-commits mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/svn-commits

Reply via email to