mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 03:50:31 +00:00
Merged revisions 97622 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 (closes issue #11718) ........ r97622 | qwell | 2008-01-09 14:28:43 -0600 (Wed, 09 Jan 2008) | 5 lines Correctly display a message if a command could not be found. Also fix a comment which may have led to this happening. Issue 11718, reported by kshumard. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97623 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1535,10 +1535,8 @@ int ast_cli_unregister_multiple(struct ast_cli_entry *e, int len)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*! \brief helper for final part of
|
/*! \brief helper for final part of handle_help
|
||||||
* handle_help. if locked = 0 it's just "help_workhorse",
|
* if locked = 1, assume the list is already locked
|
||||||
* otherwise assume the list is already locked and print
|
|
||||||
* an error message if not found.
|
|
||||||
*/
|
*/
|
||||||
static char *help1(int fd, char *match[], int locked)
|
static char *help1(int fd, char *match[], int locked)
|
||||||
{
|
{
|
||||||
@@ -1567,7 +1565,7 @@ static char *help1(int fd, char *match[], int locked)
|
|||||||
}
|
}
|
||||||
if (!locked)
|
if (!locked)
|
||||||
AST_RWLIST_UNLOCK(&helpers);
|
AST_RWLIST_UNLOCK(&helpers);
|
||||||
if (!locked && !found && matchstr[0])
|
if (!found && matchstr[0])
|
||||||
ast_cli(fd, "No such command '%s'.\n", matchstr);
|
ast_cli(fd, "No such command '%s'.\n", matchstr);
|
||||||
return CLI_SUCCESS;
|
return CLI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user