From: Jason Parker Date: Thu, 10 Feb 2011 22:33:09 +0000 (+0000) Subject: Remove color when executing commands via a remote console. X-Git-Tag: 1.4.41-rc1~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af36e55080847cb9c550ea33f5f41234255104ef;p=thirdparty%2Fasterisk.git Remove color when executing commands via a remote console. Essentially this makes '-x' imply '-n' on rasterisk. This was done in a different and incomplete way previously, which I'll be reverting shortly. (issue #18776) Reported by: alecdavis git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@307534 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/asterisk.c b/main/asterisk.c index 6e69aacc5f..58bccfcbbc 100644 --- a/main/asterisk.c +++ b/main/asterisk.c @@ -2836,7 +2836,7 @@ int main(int argc, char *argv[]) ast_set_flag(&ast_options, AST_OPT_FLAG_TIMESTAMP); break; case 'x': - ast_set_flag(&ast_options, AST_OPT_FLAG_EXEC); + ast_set_flag(&ast_options, AST_OPT_FLAG_EXEC | AST_OPT_FLAG_NO_COLOR); xarg = ast_strdupa(optarg); break; case 'C':