]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Remove color when executing commands via a remote console.
authorJason Parker <jparker@digium.com>
Thu, 10 Feb 2011 22:33:09 +0000 (22:33 +0000)
committerJason Parker <jparker@digium.com>
Thu, 10 Feb 2011 22:33:09 +0000 (22:33 +0000)
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

main/asterisk.c

index 6e69aacc5f8dcf28bc5a7184e645dcf6de796e27..58bccfcbbcda478fda022f379c07efe7d0da895b 100644 (file)
@@ -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':